Hi guys, still very new to vera so I am hoping you can help me with this. I have installed the google calendar plugin and set it up successfully with everything working well on one GCal3 sensor device checking my calendar and PLEG running some actions fine. I have now created a second GCal3 sensor device which will check my wife's calendar so I can have PLEG do other stuff for her. My question is where do I put the credentials for this second one and how do I point this pointer to it. I have tried to search and can't seem to find any instructions on how to do this. Can someone please help with where I can find this or point me in the right direction.
Your search was successful - there is no capability for a second set of credentials :-(
You could create a second calendar under your credentials ( I do this for testing) and point a second plugin at that -- not the best I know ....
Part of this is historic and ties into the way some of the original authentication code was implemented. I did a major restructure of that code a while back but have not revisited the idea of different credentials tied to different plugin instances. I'll take a look - I suspect it might be trivial to implement - and let you know.
@ veramoyo --
The changes were pretty simple. I did some testing but would like you to do some too (if you are willing).
I'm assuming you have already setup a calendar - got a credentials file and set calendar permission for your wife's calendar (in the same way as you would have for your own). Se note below about using a different name than GCal3.json for this second calendar and it's credentials.
Attached are two files to upload to vera. Once that's done - you should not see any difference.
Create a new plugin. There is a new new variable called gc_credentialFile . The default is GCal3.json. Change this value to a different file with an extension of ".json" (e.g. "somename.json").
Then reboot. You should now have a message of "Fatal error: credentials" on the plugin you changed. The other plugins should work fine.
Next upload the credentials file ( "somename.json") to vera and reboot again. The plugin you changed should now have a message "The CalendarID is not set". Go to the control tab - enter the ID, click "set" and all should be well .....