hue/wrapper-daylight-trigger.sh

12 lines
364 B
Bash
Executable File

#!/bin/sh
PATH=$PATH:/usr/local/bin
#
# Easy invocation of python script
# Add the following to crontab:
# */5 * * * * /<path-to-your-script>/wrapper-daylight-trigger.sh
#
# ambient light sensor 52 to check
# light 7 to control
# scene dimmed
/home/mischa/hue/daylight-trigger.py $(cat /home/mischa/hue-bridge2) $(cat /home/mischa/hue-token2) -s 52 -l 7 -a dimmed