Question

I'm looking for a JavaScript / NodeJS library to parse a GoogleCalendar JSON Feed with recurring events. I need to know at least next event(s) from now.

Reccuring events do not have gd$when attributes but gd$recurrence with given content (RFC 5545):

DTSTART;TZID=Europe/Paris:20121210T082000\r\nDTEND;TZID=Europe/Paris:20121210T085000\r\nRRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR\r\nBEGIN:VTIMEZONE\r\nTZID:Europe/Paris\r\nX-LIC-LOCATION:Europe/Paris\r\nBEGIN:DAYLIGHT\r\nTZOFFSETFROM:+0100\r\nTZOFFSETTO:+0200\r\nTZNAME:CEST\r\nDTSTART:19700329T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nTZOFFSETFROM:+0200\r\nTZOFFSETTO:+0100\r\nTZNAME:CET\r\nDTSTART:19701025T030000\r\nRRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r\nEND:STANDARD\r\nEND:VTIMEZONE\r\n

I found a rules parser on github but rules seems not working and parsing is a pain.

Was it helpful?

Solution

According to Google v2 API I have to use custom parameters

  • futureevents = true
  • or singleevents = true
  • with recurrence-expansion-end
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top