hue/wrapper-sensor-battery.sh

9 lines
331 B
Bash
Raw Normal View History

2019-11-06 22:07:26 +01:00
#!/bin/sh
PATH=$PATH:/usr/local/bin
#
# Easy invocation of python script
# Add the following to crontab:
2019-11-06 22:12:36 +01:00
# @daily /<path-to-your-script>/wrapper-sensor-battery.sh
2019-11-06 22:07:26 +01:00
#
2019-11-06 22:08:34 +01:00
(/home/mischa/hue/get-sensors.py $(cat /home/mischa/hue-bridge) $(cat /home/mischa/hue-token) -b 60) | mail -s "Hue Battery Status" $(cat /home/mischa/email-address)