9 lines
312 B
Bash
9 lines
312 B
Bash
|
#!/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)
|