I got past the credentials error by not using the path,ie just passing the json file that I have in the same folder :
store = Storage(self.args[“client_secret_file”])
but then I got
2018-06-03 22:40:07.912559 WARNING AppDaemon: Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/appdaemon/appdaemon.py”, line 1575, in init_object
init()
File “/config/appdaemon/apps/calendar.py”, line 35, in initialize
self.controleer_agenda(self)
File “/config/appdaemon/apps/calendar.py”, line 44, in controleer_agenda
credentials = self.get_credentials()
File “/config/appdaemon/apps/calendar.py”, line 257, in get_credentials
credentials = tools.run_flow(flow, store, flags)
NameError: name ‘flags’ is not defined
so, I searched that and added empty flags:
flags = tools.argparser.parse_args(args=[])
and now I get:
018-06-03 22:41:03.074904 INFO hoofdagenda: no valid credentials, so get them
Your browser has been opened to visit:
https://accounts.google.com/o/oauth2/auth?client_id=xxxxxxxx.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2F&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar.readonly&access_type=offline&response_type=code
If your browser is on a different machine then exit and re-run this
application with the command-line parameter
–noauth_local_webserver
I open that in the browser authorize HA, but finally it returns to localhost:8080 that doesn’t exist.
Strange thing is that I had already authorized HA to view my calendar when I installed the calendar component directly in HA and that worked.
I am lost with this … see you tomorrow, good night!