Skip to content

3DJupp/PaPiRus-MQTT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 

Repository files navigation

PaPiRus-MQTT

MQTT Dashboard utilizing an ePaper / eInk Display on a Raspberry Pi (i prefer the Raspberry Pi Zero W, because i only need one cable) 20170326_133457

First, install the driver, install all necessary stuff and papirus-mqtt.py to /home/pi

Setup PaPiRus and PaPiRus-MQTT

curl -sSL https://ci8.de/papirus-mqtt | sudo bash
Select your screen size

For the Papirus Zero, there are two sizes at the moment
papirus-zero-sizes
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
Troubleshooting

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

OpenHAB Items

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]"}

Autostart:

Add this line to your /etc/rc.local right before the exit 0

python /home/pi/papirus-mqtt.py &