GCal Service: getting calender events regardless of content

I’d like to fetch events from my Google calender with GCal Service, regardless of the content.

I installed and configured the gcal1 misc service as explained in the doc. And after Setting the log to TRACE for IO I get this:

2017-11-09 11:00:13.392 [DEBUG] [openhab.io.gcal.auth.GCalGoogleOAuth] - Got calendar openHAB2 CalendarID: xxx@gmail.com
2017-11-09 11:00:13.394 [DEBUG] [io.gcal.internal.GCalEventDownloader] - Downloading calendar feed for time interval: 2017-11-09T11:00:13.394+01:00 to  2017-11-09T11:02:13.394+01:00 
2017-11-09 11:00:13.404 [DEBUG] [openhab.io.gcal.auth.GCalGoogleOAuth] - Loaded credential
2017-11-09 11:00:13.406 [DEBUG] [openhab.io.gcal.auth.GCalGoogleOAuth] - device access token: xxx
2017-11-09 11:00:13.408 [DEBUG] [openhab.io.gcal.auth.GCalGoogleOAuth] - device refresh_token: xxx
2017-11-09 11:00:13.410 [DEBUG] [openhab.io.gcal.auth.GCalGoogleOAuth] - device expires_in: 1510222459562
2017-11-09 11:00:13.657 [DEBUG] [io.gcal.internal.GCalEventDownloader] - found 1 calendar events to process
2017-11-09 11:00:13.659 [DEBUG] [io.gcal.internal.GCalEventDownloader] - given event content doesn't match regular expression to extract start-, end commands - using whole content as startCommand (Das ist ein Test)

Is there some way I can Access the metadata of this Event:

  • startdate
  • enddate
  • start and type of notification
  • Event Location
  • Event Content

What I like to achieve is to read out some calendar entries, I can’t for some reason add some OH-related action in the content. But I’d like to use that information in a rule.

What I’d like to do is:

  • read via tts the content, if the notification is due.
  • determine, wether the entry is school holiday: cange the holiday status to true.

See the Google Calendar Scheduler docs.

But I don’t think this will do most of what you want anyway. The CalDAV binding probably gets closer.

hmm… I’m not sure, how long the Google ICAL feature will last.
but interestingly enough, the .ics file now contains the reminders. Last time I checked, they weren’t present, but now it seems, they are:

BEGIN:VEVENT
DTSTART;VALUE=DATE:20171231
DTEND;VALUE=DATE:20180108
DTSTAMP:20171109T124723Z
UID:xxx@google.com
CLASS:PRIVATE
CREATED:20171031T123253Z
DESCRIPTION:
LAST-MODIFIED:20171031T123253Z
LOCATION:
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Berghütte
TRANSP:OPAQUE
BEGIN:VALARM
ACTION:DISPLAY
DESCRIPTION:This is an event reminder
TRIGGER:-P0DT0H10M0S
END:VALARM
BEGIN:VALARM
ACTION:EMAIL
DESCRIPTION:This is an event reminder
SUMMARY:Alarm notification
ATTENDEE:mailto:xxx@gmail.com
TRIGGER:-P0DT0H10M0S
END:VALARM
END:VEVENT
BEGIN:VEVENT

the VALARM-data weren’t there last time! :wink: I’ll hava a look! - but I don’t think VALARM is included… :anguished: