myweather/scripts/temperature.sh

4 lines
123 B
Bash
Raw Normal View History

2017-01-06 14:36:16 +00:00
TEMP=`python /home/pi/myweather/tmperature.py |head -1`
mosquitto_pub -h mqtt.unixweb.de -p 1883 -t abcde/temp1 -m $TEMP