Added Scripts for MQTT
This commit is contained in:
3
scripts/pressure.sh
Executable file
3
scripts/pressure.sh
Executable 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
3
scripts/temperature.sh
Executable 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
|
Reference in New Issue
Block a user