add wrapper for sensors

This commit is contained in:
mischa 2019-11-06 22:07:26 +01:00
parent 11ae94c0e5
commit f5d6f37bc0
1 changed files with 8 additions and 0 deletions

8
wrapper-sensor-battery.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
PATH=$PATH:/usr/local/bin
#
# Easy invocation of python script
# Add the following to crontab:
# @daily /<path-to-your-script>/wrapper-sensors-battery.sh
#
(/home/mischa/hue/get-sensors.py 10.0.0.174 $(cat /home/mischa/hue-token) -b 60) | mail -s "Hue Battery Status" $(cat /home/mischa/email-address)