I want to use this binding to show one calendar events is BasicUI (the next event which is the closer to the actual time)
However I don’t know how to setup this binding. The documentation seems to refer to openHab 1.x versions, since as I know there is no openhab.cfg file in 2.x
I have found a caldavPersonal.config and caldavio.config files in userdata\config\org\openhab but I think this is not what I’m looking for.
Where I have to define my calendars and its settings?
My caldav configuration files
Located in /conf/services
caldavcommand.cfg:
# see CalDAV IO Binding
# Used to execute commands if events starts or ends with an easy notation in the event description.
# commaseperated (e. g. openhab, anothercalendar)
caldavCommand:readCalendars=openhab_tasks
caldavio.cfg:
################################### CalDAV IO Binding ###################################
#
# Used to connect to Cal DAV.
# Path to the calendar
caldavio:openhab_tasks:url=https://www.google.com/calendar/dav/xxxxxxxxxxxxxxxxxxxxxxxxxxx@group.calendar.google.com/events
# Username for the calendar
caldavio:openhab_tasks:username=xxxxxxxxxxxxxxx
# Password for the calendar
caldavio:openhab_tasks:password=xxxxxxxxxxxxx
# Reload interval unit is minutes.
# Defines how often the calendar should be reloaded from server.
# Default is 60 minutes
caldavio:openhab_tasks:reloadInterval=60
# This defines which events are relevant for execution. Unit is in minutes.
# Default is 1 Day (1440 minutes)
caldavio:openhab_tasks:preloadTime=2879 #2 days -1 minute
# A caldav Server is just a webdav Server which list files. Some servers does not use the valid timestamp for modifications.
# If your calendar does not provide correct timestamps you have to set this false.
# Default is true
#<calendarId>:lastModifiedFileTimeStampValid=
# SSL verification can be disabled, if you don't want to import the server certificate
# into the java keystore. This is just needed for self-signed certificates, where the
# certificate path cannot be verified. Default is false. Do not set to true if no SSL is used.
#<calendarId>:disableCertificateVerification=
# Timezone for events which does not have a timeZone information.
# Normally this is not required
#timeZone=
# Charset which should be used for reading an event.
#charset=UTF-8
However I tried to set it up, but I miserably failed…
Where I can get these kind of link from a Google Calendar? I couldn’t find it, just an embed link…
I have tried to setup, but I get this 401-Unauthorized exception.
I have provided my username (email) and password. Maybe it’s because I have two-factor authentication? Should I use it with an application password?
Secondly, this is a shared calendar and I’m not the owner of this calendar. This can be a problem?
I believe the app password will work for you. You use app passwords for things that can’t handle the 2 factor usually. I had to use it when I setup cal-dev on my iphone several years ago. Now, I think apple handles everything with no issue.
Yes it seems that it works with app password. I don’t get any 401 exception.
However it doesn’t show up in my sitemap. I just want to see the next event name and date.
Maybe @vzorglub can you help?