We have moved at community.getvera.com

Author Topic: GCAL3 - General Discussion  (Read 173403 times)

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - Version 2.6
« Reply #660 on: June 03, 2017, 04:13:37 am »
Try this - it should force an update to version V2.6

http://<your vera IP>:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=CreatePlugin&PluginNum=7016&Version=33436

Offline Stephan

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: GCAL3 - Version 2.6
« Reply #661 on: June 05, 2017, 11:32:07 pm »
Sorry Stuart, is there a remote link as well since I'm not at sight?

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - Version 2.6
« Reply #662 on: June 06, 2017, 09:10:09 am »
Sorry Stuart, is there a remote link as well since I'm not at sight?

The question of a remote link is not a plugin question but a general vera question.  In general, it's difficult due to security constraints.   You could write some Lua code that interrogates some remote data and performs the action locally.

Understanding what you want to do might provide a better answer.

Offline LibraSun

  • Hero Member
  • *****
  • Posts: 574
  • Karma: +2/-0
Re: GCAL3 - Version 2.6
« Reply #663 on: July 10, 2017, 06:31:05 pm »
I'm hoping Stuart will update us all once the recent kink (presumably introduced by the roll-out of a Vera UI7 update during the past several weeks?) gets resolved, that is stopping GCal3 from initiating on new installs, at least on the VeraPlus I've been testing it with.

Thanks for all you do, Stuart, and for your tireless support of this useful plug-in!! Good luck...
Vera Model I running UI4 (Firmware 1.1.1338), died in 2015
Vera Plus running UI7 (Firmware 1.7.2935)

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - Version 2.6
« Reply #664 on: July 10, 2017, 06:57:39 pm »
I have sent an email with lots of details to vera.  No reply yet.  I also checked my other, much simpler, plugin (GetLog) and have the same issue.  That particular plugin has not changed since Nov last year.  So it's looking like vera are back into the "crowd sources QA" business.

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - Version 2.6
« Reply #665 on: July 11, 2017, 03:14:16 pm »
Vera got back to me today to say that their development staff  have identified and fixed the problem and will include the fix in the next update.  They neglected to say when that would be.  I asked - waiting on a reply.

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - Version 2.6
« Reply #666 on: July 14, 2017, 03:47:44 am »
Dev are saying 1-2 weeks for a beta firmware patch.

Offline RitterIwan

  • Sr. Newbie
  • *
  • Posts: 36
  • Karma: +0/-0
Re: GCAL3 - Version 2.6
« Reply #667 on: July 26, 2017, 10:41:26 am »
Hello,

it is possible to install 2.4 again?
When I used 2.4 everything worked like a charm.
Now (with 2.6) it always says "CalendarID not set". But I set the ID felt like 1000 times...
The CalendarID includes the tag "<iframe>", right?

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - Version 2.6
« Reply #668 on: July 26, 2017, 11:13:44 am »
Hello,

it is possible to install 2.4 again?
When I used 2.4 everything worked like a charm.
Now (with 2.6) it always says "CalendarID not set". But I set the ID felt like 1000 times...
The CalendarID includes the tag "<iframe>", right?

Unfortunately - going back to 2.4 will not help.  Almost any plugin where you change a parameter through the plugins user interface would be affected.  This is entirely a problem because Vera broke their code with the latest firmware release.  It is not something that I can code around.  Vera have a long history of poor quality testing -- about two years ago we received assurances that they had / would improve.  It seemed like they did improve but now I'm not so sure.  This problem was very basic in their code  and would have been caught be having some very simple tests (like installing just about any plugin and setting it up).

I informed them of the problem about two weeks ago and (lets be fair) to their credit they understood and fixed the problem (so they say) at their end.  I was informed that they would push out the fix in the next firmware release (beta version) which is about now.  Just why they needed two weeks is a mystery - I would have thought an emergency patch would have made sense given the problem was so fundamental.  All I can guess at is they thought that not many would notice so why advertise the fact that they screwed up ....

Two days ago I asked for an update and it seems they are back to their old tricks of not replying to emails .....

Offline RitterIwan

  • Sr. Newbie
  • *
  • Posts: 36
  • Karma: +0/-0
Re: GCAL3 - Version 2.6
« Reply #669 on: July 26, 2017, 04:44:26 pm »
Hello Stewart,

thanks a lot for your quick reply. I really appriciate your clear answer.
I share your experiences with asking Vera to fix bugs. So I decided not to wait.
After having a look to the lua code of your plugin I stored the CalendarId straight in the json file containing the variables. (xxxGCalVariables)
It seems to work.

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - Version 2.6
« Reply #670 on: July 26, 2017, 11:15:26 pm »
Hello Stewart,

thanks a lot for your quick reply. I really appriciate your clear answer.
I share your experiences with asking Vera to fix bugs. So I decided not to wait.
After having a look to the lua code of your plugin I stored the CalendarId straight in the json file containing the variables. (xxxGCalVariables)
It seems to work.

Yes!! - that should work just fine.  Not a process for everyone ....   8)

I escalated again to Vera -- will see what they reply with tomorrow ......  or the next day ......   or the next.

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - Version 2.6
« Reply #671 on: July 27, 2017, 01:27:43 pm »
Just an update -- looks like Vera are back to their old tricks ......

They released a beta update yesterday.  I applied the update and - guess what -   NO FIX!


Offline RitterIwan

  • Sr. Newbie
  • *
  • Posts: 36
  • Karma: +0/-0
Re: GCAL3 - Version 2.6
« Reply #672 on: July 28, 2017, 07:57:33 am »
They even not added it on the list of "know issues".
Apart from that this list is far away from being complete...

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - Version 2.6
« Reply #673 on: August 01, 2017, 06:50:23 pm »
So I have to apologize to Vera.  The fix worked.  For some reason the firmware update did not work.  Vera, to their credit double checked with my plugin and confirmed the fix.  I reapplied the firmware update and it's working.

Note that this is beta firmware.  If you want to get GCal3 working (or working again) then this is for you.  Here is the link to the beta firmware -- make sure you use the url that applies to your hardware.

http://support.getvera.com/customer/portal/articles/2846009-ui7-%E2%96%BE-beta-software-update-%E2%96%BE-version-7-0-22b-1-7-963-1-7-3014-1-7-3015-1-7-3016-%E2%96%BE-july-26-2017

Offline RoffeRuff

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: error 403
« Reply #674 on: October 22, 2017, 07:05:20 pm »
Hi Stuart,
after adding the plugin and setting up my calendar, I can see the calendar shown in the calendar tab. But in the Controll tab, the next event shows "Http error code: 403".
What might be the cause of this Problem? The calendar itself has all permission rights.
Thanks!
The problem is likely permissions in the calendar or  credentials. First thing to do is use the test calendar and test credentials to make sure everything is working properly.  The try your calendar and credentials.
I realize you said permissions were good but when u try ur calendar again. Make sure you follow the instruction in the first post very carefully.  I'd say 9/10 people with issues like this "fat fingered" a step.  Google is unforgiving 😂 but pretty secure 😑🤐

I'm also stuck in the 403-swamp. I have tried switching for the Test-Cal and Test-Json, and they work. Any idea on where to start looking when it comes to calendar permissions? I've gone over the guides from scratch with new service owner-account, generated keys, added e-mail as full permission user in calendar etc. but I just can't get around this 403-issue. The log isn't helping me much either but maybe someone in here can understand it better:

Code: [Select]
50 10/23/17 0:53:24.100 luup_log:246: GCal3 device: 246 - Running Version  V2.6: <0x74c8c520>
50 10/23/17 0:53:24.101 luup_log:246: GCal3 device: 246 - local function: GCalMain called with fromSetArmed <0x74c8c520>
06 10/23/17 0:53:24.101 Device_Variable::m_szValue_set device: 246 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was: Retry number 1 now: Checking variables #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x74c8c520>
50 10/23/17 0:53:24.101 luup_log:246: GCal3 device: 246 - local function: setupVariables <0x74c8c520>
50 10/23/17 0:53:24.102 luup_log:246: GCal3 device: 246 - Function getVariables <0x74c8c520>
50 10/23/17 0:53:24.102 luup_log:246: GCal3 device: 246 - local function: readfromFile <0x74c8c520>
50 10/23/17 0:53:24.118 luup_log:246: GCal3 device: 246 - Command /bin/ls /etc/cmh-ludl/GCal3/246GCalVariables returned 0 <0x74c8c520>
50 10/23/17 0:53:24.119 luup_log:246: GCal3 device: 246 - local function: makejson <0x74c8c520>
50 10/23/17 0:53:24.127 luup_log:246: GCal3 device: 246 - local function: setVariables <0x74c8c520>
50 10/23/17 0:53:24.133 luup_log:246: GCal3 device: 246 - local function: writetofile <0x74c8c520>
06 10/23/17 0:53:24.134 Device_Variable::m_szValue_set device: 246 service: urn:srs-com:serviceId:GCalIII variable: gc_Variables was: [ { "CalendarID": "https://calendar.google.com/calendar/embed?src=ntj19ftpkjo279s8lc0kntmmhg%40group.calendar.google.com", "gCal": "true" } ] now: [ { "CalendarID": "https://calendar.google.com/calendar/embed?src=ntj19ftpkjo279s8lc0kntmmhg%40group.calendar.google.com", "gCal": "true" } ] #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x74c8c520>
06 10/23/17 0:53:24.134 Device_Variable::m_szValue_set device: 246 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: IgnoreTripTime was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x74c8c520>
06 10/23/17 0:53:24.134 Device_Variable::m_szValue_set device: 246 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEvent was: Http error code: 403 now:  #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x74c8c520>
06 10/23/17 0:53:24.135 Device_Variable::m_szValue_set device: 246 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was: Checking variables now:  #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x74c8c520>
50 10/23/17 0:53:24.135 luup_log:246: GCal3 device: 246 - local function: makeBoolean <0x74c8c520>
06 10/23/17 0:53:24.135 Device_Variable::m_szValue_set device: 246 service: urn:srs-com:serviceId:GCalIII variable: gc_exactKeyword was: true now: true #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x74c8c520>
50 10/23/17 0:53:24.136 luup_log:246: GCal3 device: 246 - local function: makeBoolean <0x74c8c520>
06 10/23/17 0:53:24.136 Device_Variable::m_szValue_set device: 246 service: urn:srs-com:serviceId:GCalIII variable: gc_ignoreKeyword was: false now: false #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x74c8c520>
50 10/23/17 0:53:24.136 luup_log:246: GCal3 device: 246 - local function: makeBoolean <0x74c8c520>
06 10/23/17 0:53:24.136 Device_Variable::m_szValue_set device: 246 service: urn:srs-com:serviceId:GCalIII variable: gc_triggerNoKeyword was: false now: false #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x74c8c520>
50 10/23/17 0:53:24.137 luup_log:246: GCal3 device: 246 - local function: makeBoolean <0x74c8c520>
06 10/23/17 0:53:24.137 Device_Variable::m_szValue_set device: 246 service: urn:srs-com:serviceId:GCalIII variable: gc_ignoreAllDayEvent was: false now: false #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x74c8c520>
50 10/23/17 0:53:24.137 luup_log:246: GCal3 device: 246 - local function: makeBoolean <0x74c8c520>
06 10/23/17 0:53:24.137 Device_Variable::m_szValue_set device: 246 service: urn:srs-com:serviceId:GCalIII variable: gc_retrip was: true now: true #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x74c8c520>
50 10/23/17 0:53:24.137 luup_log:246: GCal3 device: 246 - local function: makejson <0x74c8c520>
06 10/23/17 0:53:24.138 Device_Variable::m_szValue_set device: 246 service: urn:srs-com:serviceId:GCalIII variable: gc_jsonEvents was: [ { "eventDescription": "Occurs at 00:00 GMT", "eventParameter": "", "eventName": "TEST 00:00 GMT", "eventEnd": 1508720400, "eventStart": 1508716800 }, { "eventDescription": "Occurs at 04:00 GMT", "eventParameter": "", "eventName": "TEST 04:00 GMT", "eventEnd": 1508734800, "eventStart": 1508731200 }, { "eventDescription": "This event finished at midnight MST", "eventParameter": "", "eventName": "TEST FINISH MIDNIGHT MST", "eventEnd": 1508738400, "eventStart": 1508736600 }, { "eventDescription": "This event starts at midnight MST", "eventParameter": "", "eventName": "TEST START MIDNIGHT MST", "eventEnd": 1508742000, "eventStart": 1508738400 }, { "eventDescription": "This event overlaps the 12:00 GMT Event", "eventParameter": "", "eventName": "TEST OVERLAP", "eventEnd": 1508761800, "eventStart": 1508758200 }, { "eventDescription": "Occurs at 12:00 GMT", "eventParameter": "", "eventName": "TEST 12:00 GMT", "eventEnd": 1508763600, "eventStart": 1508760000 }, { "eventDescription": "Occurs at 16:00 GMT", "eventParameter": "", "eventName": "TEST 16:00 GMT", "eventEnd": 1508778000, "eventStart": 1508774400 }, { "eventDescription": "Occurs at 20:00 GMT", "eventParameter": "", "eventName": "TEST 20:00 GMT", "eventEnd": 1508792400, "eventStart": 1508788800 } ] now: [ { "eventDescription": "Occurs at 00:00 GMT", "eventParameter": "", "eventName": "TEST 00:00 GMT", "eventEnd": 1508720400, "eventStart": 1508716800 }, { "eventDescription": "Occurs at 04:00 GMT", "eventParameter": "", "eventName": "TEST 04:00 GMT", "eventEnd": 1508734800, "eventStart": 1508731200 }, { "eventDescription": "This event finished at midnight MST", "eventParameter": "", "eventName": "TEST FINISH MIDNIGHT MST", "eventEnd": 1508738400, "eventStart": 1508736600 }, { "eventDescription": "This event starts at midnight MST", "eventParameter": "", "eventName": "TEST START MIDNIGHT MST", "eventEnd": 1508742000, "eventStart": 1508738400 }, { "eventDescription": "This event overlaps the 12:00 GMT Event", "eventParameter": "", "eventName": "TEST OVERLAP", "eventEnd": 1508761800, "eventStart": 1508758200 }, { "eventDescription": "Occurs at 12:00 GMT", "eventParameter": "", "eventName": "TEST 12:00 GMT", "eventEnd": 1508763600, "eventStart": 1508760000 }, { "eventDescription": "Occurs at 16:00 GMT", "eventParameter": "", "eventName": "TEST 16:00 GMT", "eventEnd": 1508778000, "eventStart": 1508774400 }, { "eventDescription": "Occurs at 20:00 GMT", "eventParameter": "", "eventName": "TEST 20:00 GMT", "eventEnd": 1508792400, "eventStart": 1508788800 } ] #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x74c8c520>
50 10/23/17 0:53:24.139 luup_log:246: GCal3 device: 246 - local function: makejson <0x74c8c520>
06 10/23/17 0:53:24.139 Device_Variable::m_szValue_set device: 246 service: urn:srs-com:serviceId:GCalIII variable: gc_jsonActiveEvents was: [  ] now: [  ] #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x74c8c520>
06 10/23/17 0:53:24.139 Device_Variable::m_szValue_set device: 246 service: urn:srs-com:serviceId:GCalIII variable: gc_ActiveEvents was:  now:  #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x74c8c520>
06 10/23/17 0:53:24.139 Device_Variable::m_szValue_set device: 246 service: urn:srs-com:serviceId:GCalIII variable: gc_displaystatus was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x74c8c520>
50 10/23/17 0:53:24.140 luup_log:246: GCal3 device: 246 - local function: makejson <0x74c8c520>
06 10/23/17 0:53:24.140 Device_Variable::m_szValue_set device: 246 service: urn:srs-com:serviceId:GCalIII variable: gc_Variables was: [ { "CalendarID": "https://calendar.google.com/calendar/embed?src=ntj19ftpkjo279s8lc0kntmmhg%40group.calendar.google.com", "gCal": "true" } ] now: [ { "CalendarID": "https://calendar.google.com/calendar/embed?src=ntj19ftpkjo279s8lc0kntmmhg%40group.calendar.google.com", "gCal": "true" } ] #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x74c8c520>
06 10/23/17 0:53:24.140 Device_Variable::m_szValue_set device: 246 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was:  now: Variable check complete #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x74c8c520>
06 10/23/17 0:53:24.140 Device_Variable::m_szValue_set device: 246 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEvent was:  now: Connecting  ... #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x74c8c520>
06 10/23/17 0:53:24.141 Device_Variable::m_szValue_set device: 246 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was: Variable check complete now:  #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x74c8c520>
50 10/23/17 0:53:24.141 luup_log:246: GCal3 device: 246 -  ************** ARMED STATUS : 0 ***************** <0x74c8c520>
50 10/23/17 0:53:24.141 luup_log:246: GCal3 device: 246 - local function: setTrippedOff: 1 <0x74c8c520>
06 10/23/17 0:53:24.141 Device_Variable::m_szValue_set device: 246 service: urn:srs-com:serviceId:GCalIII variable: gc_Value was:  now:  #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x74c8c520>
06 10/23/17 0:53:24.142 Device_Variable::m_szValue_set device: 246 service: urn:srs-com:serviceId:GCalIII variable: gc_TrippedEvent was:  now:  #hooks: 0 upnp: 0 skip: 0 v:0xe90420/NONE duplicate:0 <0x74c8c520>
06 10/23/17 0:53:24.142 Device_Variable::m_szValue_set device: 246 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: LastTrip was: 1508712789 now: 1508712804 #hooks: 0 upnp: 0 skip: 0 v:0xd7e3e8/NONE duplicate:0 <0x74c8c520>
06 10/23/17 0:53:24.142 Device_Variable::m_szValue_set device: 246 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xd7e2b0/NONE duplicate:0 <0x74c8c520>
50 10/23/17 0:53:24.143 luup_log:246: GCal3 device: 246 - **** Event-End  not Tripped **** <0x74c8c520>
50 10/23/17 0:53:24.143 luup_log:246: GCal3 device: 246 - local function: setVariables <0x74c8c520>
50 10/23/17 0:53:24.148 luup_log:246: GCal3 device: 246 - local function: writetofile <0x74c8c520>
06 10/23/17 0:53:24.150 Device_Variable::m_szValue_set device: 246 service: urn:srs-com:serviceId:GCalIII variable: gc_Variables was: [ { "CalendarID": "https://calendar.google.com/calendar/embed?src=ntj19ftpkjo279s8lc0kntmmhg%40group.calendar.google.com", "gCal": "true" } ] now: [ { "CalendarID": "https://calendar.google.com/calendar/embed?src=ntj19ftpkjo279s8lc0kntmmhg%40group.calendar.google.com", "gCal": "true" } ] #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x74c8c520>
06 10/23/17 0:53:24.150 Device_Variable::m_szValue_set device: 246 service: urn:srs-com:serviceId:GCalIII variable: gc_displaystatus was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1