Created
December 25, 2013 17:21
-
-
Save AlexKovax/8125059 to your computer and use it in GitHub Desktop.
This is a crontab that uses a builtin Z-Way server and wget to do some basic home automation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Edit this file to introduce tasks to be run by cron. | |
# | |
# For example, you can run a backup of all your user accounts | |
# at 5 a.m every week with: | |
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ | |
# | |
# For more information see the manual pages of crontab(5) and cron(8) | |
# | |
# m h dom mon dow command | |
####################### | |
## HEATING | |
#turn on: wget -q -O /dev/null 'http://192.168.0.4:8083/ZWaveAPI/Run/devices[3].instances[0].SwitchBinary.Set(255)' | |
#turn off: wget -q -O /dev/null 'http://192.168.0.4:8083/ZWaveAPI/Run/devices[3].instances[0].SwitchBinary.Set(0)' | |
#turn on at 7:00am on week days | |
0 7 * * 1,2,3,4,5 wget -q -O /dev/null 'http://192.168.0.4:8083/ZWaveAPI/Run/devices[3].instances[0].SwitchBinary.Set(255)' | |
#turn on at 9:00am on weekends | |
0 9 * * 0,6 wget -q -O /dev/null 'http://192.168.0.4:8083/ZWaveAPI/Run/devices[3].instances[0].SwitchBinary.Set(255)' | |
#turn off at 9:00am on week days | |
0 9 * * 1,2,3,4,5 wget -q -O /dev/null 'http://192.168.0.4:8083/ZWaveAPI/Run/devices[3].instances[0].SwitchBinary.Set(0)' | |
#turn on at 6:00pm on week days | |
0 18 * * 1,2,3,4,5 wget -q -O /dev/null 'http://192.168.0.4:8083/ZWaveAPI/Run/devices[3].instances[0].SwitchBinary.Set(255)' | |
#turn off at 11:45pm every night | |
55 23 * * * wget -q -O /dev/null 'http://192.168.0.4:8083/ZWaveAPI/Run/devices[3].instances[0].SwitchBinary.Set(0)' | |
~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment