PDA

View Full Version : Thoughts on approach for maintaining a schedule.



kwaugh
August 26th, 2009, 06:47 AM
I'm looking for folks thoughts on the best way to edit/maintain a schedule. For discussion purposes, assume a thermostat schedule. The requirement is that via NR or the web, to have a means to control daily and weekly schedules for events to occur.

The NR/Web aspect is crucial, as the schedule must be maintained by the 'customer' via touchscreen or web browser.

So, using ther thermostat example for each day of the week, you would set a number of time points where the thermostat temp would be changed. The 3 aspects I'm looking for input on are:

a) Visual - how to represent the sched. Sounds like sliders would be a good approach.
b) Storage - how to store the schedule. would there be a database (loose use of term) for each schedule event or is there a better way to represent it?
c) Processing - how to most efficiently process the schedule? Will I need to poll every minute to see if it's time to execute an event.

This has been bugging me for a while and before I start building I thought I'd see what the forums backroom boffins might have come up with to make my job easier!

Thanks!

K