jamesstill / ScheduleWidget

ScheduleWidget handles recurring events for calendars
MIT License
42 stars 39 forks source link

Alarms/Reminders Support #3

Closed chobo2 closed 11 years ago

chobo2 commented 12 years ago

Hi

Almost every modern day calendar has reminders. Is there any timeline when ScheduleWidget will have support for recurring reminders?

jamesstill commented 12 years ago

Great idea. It might be tough to implement because SW is a stateless engine. It's not like a Windows Service that polls for data or anything like that. You instantiate a Schedule object and pass it into the engine and it spits out calendar dates. It might be a better idea to have a separate process for reminders. Maybe someone else has an opinion?

chobo2 commented 12 years ago

Hi

I was thinking more SW would just find all reminder dates and not handle when to send out the reminders. For instance in Goolge Calendar you can set a email to be sent 5 days before event.

I was thinking SW would figure out all occurrences when a reminder might be sent out. For instance today is 28/09/2012 and we have a reminder in 5 days before. For each occurrence of the event if SW new to take that day it calculated and minus 5 to figure out that the 23 would be the reminder date.

Of course multiple reminders could be set and they could be down to the minute and not only day.