obvious bug in original example code
Added example file to turn relays on or off based on time of day.