MQTT Dashboard utilizing an ePaper / eInk Display on a Raspberry Pi (i prefer the Raspberry Pi Zero W, because i only need one cable)
First, install the driver, install all necessary stuff and papirus-mqtt.py to /home/pi
curl -sSL https://ci8.de/papirus-mqtt | sudo bash
For the Papirus Zero, there are two sizes at the moment
Execute the following to set the screen resolution.
sudo papirus-set [1.44 | 1.9 | 2.0 | 2.6 | 2.7 ]
or
sudo papirus-config
papirus-set and papirus-config are useful, when you want to fix issues with the driver on a previously working raspian installation.
run papirus-config disable the driver, papirus-set with the correct resolution and then reactivate the driver in papirus-config.
Further information can be found on: https://github.com/PiSupply/PaPiRus
I use OpenHAB to push Data to my MQTT Broker
Those items have i created for it (once they receive an update, it will be sent to the MQTT Broker)
I recommend to Push the Data not to often, but at least once a minute (correct time on screen)
Group e_paper "E Paper Display Items"
Number ep_power "Cumulated Wattage" (e_paper) {mqtt=">[openhab:epaper/power:state:*:default]"}
Number ep_consumption "Consumption 24h" (e_paper) {mqtt=">[openhab:epaper/cons_d:state:*:default]"}
Number ep_consumption_hour "Consumption 1h" (e_paper) {mqtt=">[openhab:epaper/cons_h:state:*:default]"}
Number ep_temperature_indoor "Cumulated Temperature Indoor" (e_paper) {mqtt=">[openhab:epaper/temp_indoor:state:*:default]"}
Number ep_temperature_outdoor "Cumulated Temperature Outdoor" (e_paper) {mqtt=">[openhab:epaper/temp_outdoor:state:*:default]"}
Number ep_humidity_indoor "Cumulated Humidity Indoor" (e_paper) {mqtt=">[openhab:epaper/humi_indoor:state:*:default]"}
Number ep_humidity_outdoor "Cumulated Humidity Outdoor" (e_paper) {mqtt=">[openhab:epaper/humi_outdoor:state:*:default]"}
Number ep_download "Current Download" (e_paper) {mqtt=">[openhab:epaper/download:state:*:default]"}
Number ep_upload "Current Upload" (e_paper) {mqtt=">[openhab:epaper/upload:state:*:default]"}
Add this line to your /etc/rc.local right before the exit 0
python /home/pi/papirus-mqtt.py &