With the Inbox module we have the ability to bind a function to inbox event, i.e. sms received.
e.g. code
i = inbox.Inbox()
i.bind(read_sms)
I think it would be very useful to be able to bind to calendar events in the same way.
e.g imaginary code
ce = event.Calendar()
ca = alarm.Calendar()
ce.bind(calendar_event_magic)
ca.bind(calendar_alarm_magic)
The bind trigger points could be(in order of my personal priority)
- Event time reached
- Calendar alarm activated
- Event happening today
- Event happening this hour
Binding to calendar would allow us to us the calendar as a crude system maintained cron. Jobs could be written to calendar in say – json, and then watched for with calendar bind.
Thanks
Dave