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.
- …