Ask HN: Best API format for recurring schedules?
I'm trying to develop a standard by which people can submit recurring schedules for things like thermostats and access codes for smart locks for seam.co. I couldn't find any standard for recurring schedules other than the iCalendar format, which seems a bit unwieldy for a JSON API.
Cron is a bit limited, e.g. doesn't represent ranges of time.
This seems like a really common problem, anybody solving this in their work today?
5 comments
[ 3.0 ms ] story [ 23.7 ms ] threadLooks like it has a decent API for this: https://developers.google.com/calendar/api/guides/recurringe...
Edit: also this: https://developers.google.com/calendar/api/v3/reference/even...
https://icalendar.org/iCalendar-RFC-5545/3-8-5-3-recurrence-...
https://jakubroztocil.github.io/rrule/
https://github.com/jakubroztocil/rrule
All best with your project