Totally new to the electric imp,
I am trying to make a timer function for a project.
I want to activate pin2 between 09:00 and 21:00
And I want to activate pin9 from 09:00 to 09:10, 13:00 to 13:10, 17:00 to 17:10 and 21:00 to 21:10.
I wish to activate both timers using a URL
Any suggestions or tips are much appreciated
Be aware that the time() function returns UTC, which is probably different from your local time. The server logs appear to display in local time, but that is apparently browser magic using your browser locale, and it is not available to the imp.
You can either add the local time offset in code, or (much more complicated) call a service to find your location then use that to find your local time. Daylight saving is another complication, and you must plan whether you will just tweak an offset in code for these factors, or provide an interface to display and adjust the local time.