Added Scripts for MQTT

This commit is contained in:
Joachim Hummel
2017-01-06 15:36:16 +01:00
parent 0a52df619c
commit 25c6442bb4
3 changed files with 63 additions and 0 deletions

3
scripts/pressure.sh Executable file
View File

@ -0,0 +1,3 @@
PRESS1=`python /home/pi/myweather/pressure.py`
mosquitto_pub -h mqtt.unixweb.de -p 1883 -t abcde/p1 -m $PRESS1

3
scripts/temperature.sh Executable file
View File

@ -0,0 +1,3 @@
TEMP=`python /home/pi/myweather/tmperature.py |head -1`
mosquitto_pub -h mqtt.unixweb.de -p 1883 -t abcde/temp1 -m $TEMP