https://harizanov.com/2015/02/wifi-thermostat-with-weekly-scheduler/
WiFi Thermostat with weekly scheduler