2 PATH=$PATH:/usr/local/bin
4 # Easy invocation of python script
5 # Add the following to crontab:
6 # @daily /<path-to-your-script>/wrapper-sensors-battery.sh
8 result=$(/home/mischa/hue/get-sensors.py bridge1 -b 20)
9 result2=$(/home/mischa/hue/get-sensors.py bridge2 -b 20)
11 if [[ -n "$result" ]]; then
12 echo "${result}" | mail -s "Hue Battery Status bridge1" $(cat /home/mischa/hue-email)
14 if [[ -n "$result2" ]]; then
15 echo "${result2}" | mail -s "Hue Battery Status bridge2" $(cat /home/mischa/hue-email)