You will get a count of the mail and packages coming to you that today and an animated GIF of the actual mail. This can also be pushed to your iPhone / IOS device as an image.
This is based off the excellent work and code by skalavala.
Requirements:
-
Sign up for USPS Informed Delivery
-
ImageMagick installed
-
Python MQTT Paho installed (sudo pip install paho-mqtt)
-
MQTT Server (Mosquitto or built into HA)
-
Home Assistant accessible from internet (to serve GIF image)
Setup:
Add the ha-config.yaml config sections to the appropriate sections of your configuration.yaml file. Edit the still_image_url to the internal IP of your Home Assistant server.
Add the usps-nodered.py to your scripts directory and edit the file to include your MQTT setup, and your e-mail setup. The script works by checking your email for the daily USPS digest. I use gmail, so I create a filter and label in gmail to automatically hide these and modified the ‘folder’ variable to look at that filter.
Add the flow from node-red-flow.js to your Node-RED setup. You can kick off the inject node manually to see if it is working. The flow only checks email in the morning as that is when the typical USPS digest arrives. Edit the function node to include your hostname and the notify node to include your phone.
If it all works, it will look something like this: