Ok - I just gave it a try, here’s my story!
at first, I found it on the Jenkins and used this one:
console
I tried to install it via the console
bundle:install https://openhab.ci.cloudbees.com/job/openHAB1-Addons/lastSuccessfulBuild/artifact/bundles/io/org.openhab.io.gcal/target/org.openhab.io.gcal-1.10.0-SNAPSHOT.jar
it worked at first but with bundle:start
I got
bundle:start 209
Error executing command: Error executing command on bundles:
Error starting bundle 209: Invalid operation on a fragment.
so I uninstalled it again.
copy in addon
so, I copied it in the addons-folder
[20:56:53] pi@openHABian2:/usr/share/openhab2/addons$ sudo wget https://openhab.ci.cloudbees.com/job/openHAB1-Addons/lastSuccessfulBuild/artifact/bundles/io/org.openhab.io.gcal/target/org.openhab.io.gcal-1.10.0-SNAPSHOT.jar
Then I added in the gcal.cfg
(got the Client_id and Client_secret from the Credentials-section of the API-Manager at https://console.developers.google.com/apis/credentials
client_id=xxx-yyy.apps.googleusercontent.com
client_secret=zzz
calendar_name=Familienkalender
after restarting OH2 Service I get These:
210 | Active | 80 | 1.10.0.201702240212 | openHAB Google Calendar
2017-02-24 20:57:21.740 [WARN ] [openhab.io.gcal.auth.GCalGoogleOAuth] - getCredential got exception: 401 Unauthorized
2017-02-24 20:57:21.742 [ERROR] [io.gcal.internal.GCalEventDownloader] - Cannnot obtain credential based on provided client_id/client_secret
2017-02-24 20:57:21.745 [ERROR] [org.apache.felix.configadmin ] - [org.osgi.service.cm.ManagedService, id=341, bundle=210/file:/usr/share/openhab2/addons/org.openhab.io.gcal-1.10.0-SNAPSHOT.jar]: Updating property Credential error of configuration org.openhab.gcal caused a problem: Cannnot obtain credential based on provided client_id/client_secret
org.osgi.service.cm.ConfigurationException: Credential error : Cannnot obtain credential based on provided client_id/client_secret
at org.openhab.io.gcal.internal.GCalEventDownloader.updated(GCalEventDownloader.java:557)[210:org.openhab.io.gcal:1.10.0.201702240212]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1461)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1417)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109)[3:org.apache.felix.configadmin:1.8.12]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
I didn’t get the message @watou got in GCAL bindings - refreshed version
So what type of OAUTH2 did you guys configure for your GCAL? I used “Web Application”, but there are more Application types, perhaps this one is it?
- Web application
- Android
- Chrome App
- iOS
- PlayStation 4
- Other