21:23:46.128 DEBUG o.o.i.g.i.GCalEventDownloader[:197]- Downloading calendar feed for time interval: 2014-11-17T20:23:46.128Z to 2014-11-17T20:25:46.12821:23:46.461 ERROR o.o.i.g.i.GCalEventDownloader[:209]- downloading CalenerEventFeed throws exception: Forbidden
Forbidden
Error 403
Yep I am seeing the same issue - as of 4-5 hours ago.They have obviously changed something!
--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/LbqKLEdlDCk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.
--
--
For the OAuth 2.0 you can define your own application id under your own google user. there is no need for openHAB to supply one.
After completing the OAuth flow for desktop application you will end up with a secret (in the form of a json file downloaded from the developers console) and credentials which can also be stored to a file.
This flow we will have to complete outside of openHAB with maybe a command line utility.
In my work place we have just upgraded our google calendar connector to use v3 api and funny I didn't do the connection when my fish feeder didn't work this morning (of course it is controlled my openHAB)
Thanks Gael for your works.
Marco
--
Try removing the old one from/plugins and putting the new version in /addons.
Hi avi,
Thanks for your work. This evening or tomorrow I'll try to obtain urk and file.
Marco
--
start {send TEST ON} end {send TEST OFF}
root@OpenHAB:~# tail -f /opt/openhab/logs/openhab.log | grep -i gcal10:57:04.669 DEBUG o.o.i.g.internal.GCalActivator[:42]- Google Calendar IO has been stopped.10:57:10.456 DEBUG o.o.i.g.internal.GCalActivator[:34]- Google Calendar IO has been started.10:57:10.494 DEBUG o.o.i.g.internal.GCalActivator[:34]- Google Calendar IO has been started.
<logger name="org.openhab.io.gcal" level="TRACE" />
On my side with openhAB 1.5.1 it works with no issues on the primary calendar. Maybe try on your primary and check if it is picking anything.
<logger name="org.openhab.io.gcal" level="TRACE" />
root@OpenHAB:~# tail -f /opt/openhab/logs/openhab.log | grep -i gcal
11:47:22.434 DEBUG o.o.i.g.internal.GCalActivator[:34]- Google Calendar IO has been started.11:47:22.466 DEBUG o.o.i.g.i.GCalEventDownloader[:581]- *** loading secretsfilepath: /opt/openhab/gcal_store/client_secrets.json and credentialsdatastorefolder: /opt/openhab/gcal_store11:47:22.466 DEBUG o.o.i.g.i.GCalEventDownloader[:592]- *** no gcal:calendarid was provided. Using the primary calendar11:47:22.466 DEBUG o.o.i.g.i.GCalEventDownloader[:606]- ===== initilaize the the user credentials =====json file: /opt/openhab/gcal_store/client_secrets.json credentials folder: /opt/openhab/gcal_store11:47:22.590 DEBUG o.o.i.g.i.GCalEventDownloader[:627]- ===== end initilaize the the user credentials =====
<logger name="org.openhab.io.gcal" level="TRACE" />
--
--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/LbqKLEdlDCk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.
com.google.api.client.auth.oauth2.TokenResponseException: 400 Bad Request
20:48:28.268 ERROR o.o.i.g.i.GCalEventDownloader[:640] - gcal: unable to set up authorization code flow =====
java.io.EOFException: null
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2325)
My config file is set to:
gcal:calendarid=<calendarid>@group.calendar.google.com
gcal:secretsfilepath=/opt/openhab1.5/client_secrets.json
gcal:credentialsdatastorefolder=/opt/openhab1.5/gcal_store
/opt/openhab1.5/gcal_store
Please configure a separate appender and logger for the gcal in the logback.xml and send me the --
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/LbqKLEdlDCk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.
Yes, it works fine
Have someone tested this bindings with OpenHAB 1.6.0?Thanks
--
it is not the calendar id. Its a code that is used to get the user crefentials and complete the OAuth 2.0 flow.
Did you receive any errors when running the command? Please post the command output.
gcal:secretsfilepath=C:/Users/Martin/openhab/configurations/gcal/client_secret.json
gcal:credentialsdatastorefolder=C:/Users/Martin/openhab/configurations/gcal
in logs:
05:41:42.690 WARN c.g.a.c.u.s.FileDataStoreFactory[:134]- unable to change permissions for everybody: C:\Users\Martin\openhab\configurations\gcal
05:41:42.692 WARN c.g.a.c.u.s.FileDataStoreFactory[:139]- unable to change permissions for owner: C:\Users\Martin\openhab\configurations\gcal
05:41:42.712 ERROR o.o.i.g.i.GCalEventDownloader[:627]- gcal: unable to load client secret =====
java.io.FileNotFoundException: Invalid file path
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileReader.<init>(Unknown Source)
at org.openhab.io.gcal.internal.GCalEventDownloader.updated(GCalEventDownloader.java:625)
at org.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:183)
at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36)
--
--
--
2015-01-01 13:45:36.999 [DEBUG] [io.gcal.internal.GCalActivator] - Google Calendar IO has been started.
2015-01-01 13:45:37.042 [DEBUG] [g.internal.GCalEventDownloader] - gcal: loading secretsfilepath: /opt/openhab/configurations/client_secret_1046674961202-3u64hqvl8gj5jq4gnqt7c9a8cg7peb6o.apps.googleusercontent.com.json and credentialsdatastorefolder: /opt/openhab/configurations
2015-01-01 13:45:37.042 [DEBUG] [g.internal.GCalEventDownloader] - gcal: calendarid was provided. Using the primary calendar
2015-01-01 13:45:37.042 [DEBUG] [g.internal.GCalEventDownloader] - gcal:===== initilaize the the user credentials =====
json file: /opt/openhab/configurations/client_secret_1046674961202-3u64hqvl8gj5jq4gnqt7c9a8cg7peb6o.apps.googleusercontent.com.json credentials folder: /opt/openhab/configurations
2015-01-01 13:45:37.115 [DEBUG] [g.internal.GCalEventDownloader] - gcal: ===== end initilaize the the user credentials =====
2015-01-01 13:45:37.115 [DEBUG] [g.internal.GCalEventDownloader] - gcal: loading client secret =====
2015-01-01 13:45:37.151 [DEBUG] [g.internal.GCalEventDownloader] - gcal: setting up authorization code flow =====
2015-01-01 13:45:37.173 [DEBUG] [g.internal.GCalEventDownloader] - gcal: trying to load credentials =====
2015-01-01 13:45:37.183 [DEBUG] [g.internal.GCalEventDownloader] - gcal: create calendar service with loaded Credential
2015-01-01 13:45:37.191 [DEBUG] [g.internal.GCalEventDownloader] - gcal:the client calendar service was created successfully
2015-01-01 13:45:37.191 [DEBUG] [g.internal.GCalEventDownloader] - gcal: End of configuration loading
2015-01-01 13:45:37.191 [INFO ] [.service.AbstractActiveService] - Google Calender Event-Downloader has been started
2015-01-01 13:45:37.928 [DEBUG] [g.internal.GCalEventDownloader] - gcal: feed contains no events ...
start {
send BY_Wall_S ON
}
end {
send BY_Wall_S OFF
}