Using the Raspberry Pi to replace a programmable thermostat