Last active
December 30, 2015 16:59
-
-
Save spikeheap/7858014 to your computer and use it in GitHub Desktop.
A sample crontab to run heating control
This file contains hidden or 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
# Update the time from the RTC hourly | |
0 * * * * hwclock -s | |
# Post sensor readings to emoncms | |
* * * * * /root/ryan_scripts/tempToEmon.sh > /dev/null | |
* * * * * /root/ryan_scripts/heatingStateToEmon.sh > /dev/null | |
# Every morning, 6:30 to 7:00 | |
30 6 * * * /root/ryan_scripts/switchHeatingOn.sh > /dev/null | |
0 7 * * * /root/ryan_scripts/switchHeatingOff.sh > /dev/null | |
# Mon, Fri 6pm to 7pm | |
0 18 * * 1,5 /root/ryan_scripts/switchHeatingOn.sh > /dev/null | |
0 19 * * 1,5 /root/ryan_scripts/switchHeatingOff.sh > /dev/null | |
# Tues, Weds, Thur 22:20 to 23:00 | |
20 22 * * 2,3,4 /root/ryan_scripts/switchHeatingOn.sh > /dev/null | |
0 23 * * 2,3,4 /root/ryan_scripts/switchHeatingOff.sh > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment