We have moved at community.getvera.com

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

Offline garycooper

  • Sr. Newbie
  • *
  • Posts: 34
  • Karma: +0/-0
Re: GCAL3 - V 1.4 Released
« Reply #405 on: November 04, 2015, 09:15:36 pm »
OK - I just did some tests ---   you are lucky !   I get 3 and 4 notifications !!!

What version of the plugin are you using, what model vera and what UI release level ?

In Rel 1.4 I'm thinking (pretty sure)  I introduced a bug that accounts for some of the excess notifications I am seeing and can probably fix that soon.

I'm on UI5 veraLite. I installed it from Mios Marketplace 4 days ago so this is the last version.

Thanks !!

Offline simonclark

  • Full Member
  • ***
  • Posts: 147
  • Karma: +6/-9
Re: GCAL3 - V 1.4 Released
« Reply #406 on: November 05, 2015, 04:36:31 pm »
Hi,  I have set this up tonight on UI7 and pretty sure I followed everything on the instructions.  It all went smoothly and I entered the calendar ID and set it and then went to the calendar tab and can see the calendar, and still can.  However it now says Start up ...Waiting for another process claiming: GCalMain   when I press check and the variables show no data, whereas I have a upcoming event today. 

Any ideas?  I have google apps account on my own domain if that makes any difference?

Thanks

Offline simonclark

  • Full Member
  • ***
  • Posts: 147
  • Karma: +6/-9
Re: GCAL3 - V 1.4 Released
« Reply #407 on: November 05, 2015, 05:12:39 pm »
This is in the debug file.  I have tried the trick of deleting the folder and reuploading from the interface and restarting, but I only get the sem file created, even when I then reenter the calendar ID.  I saw that its basically the private key from another thread and so created my own but that doesnt work either. 

Code: [Select]
06 11/05/15 22:08:31.796 Device_Variable::m_szValue_set device: 318 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEvent was: Start up ... now: Checking ... #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x71272520>
06 11/05/15 22:08:31.797 Device_Variable::m_szValue_set device: 318 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was: Waiting for another process claiming: GCalMain now:  #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x71272520>
06 11/05/15 22:08:31.798 Device_Variable::m_szValue_set device: 318 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Armed was: 1 now: 1 #hooks: 0 upnp: 0 skip: 0 v:0xa3be90/NONE duplicate:1 <0x71272520>
06 11/05/15 22:08:32.101 Device_Variable::m_szValue_set device: 318 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEvent was: Checking ... now: Start up ... #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x72f8a520>
06 11/05/15 22:08:32.102 Device_Variable::m_szValue_set device: 318 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was:  now: . #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x72f8a520>
06 11/05/15 22:08:32.102 Device_Variable::m_szValue_set device: 318 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was: . now: Waiting for another process claiming: GCalMain #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x72f8a520>

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - V 1.4 Released
« Reply #408 on: November 05, 2015, 05:20:32 pm »
Try a reboot - that should clear the problem.  I have some code that's supposed to stop some internal plugin functions from stepping on each other -- seems it's doing too good a job  8)

Let me know how the reboot goes.

I'll take a closer look at the code tonight as I wasn't completely happy with it because this sort of lock was a possibility but difficult to reproduce in testing  ....

Offline simonclark

  • Full Member
  • ***
  • Posts: 147
  • Karma: +6/-9
Re: GCAL3 - V 1.4 Released
« Reply #409 on: November 05, 2015, 05:24:58 pm »
I have restarted luup and rebooted several times.  I had just created a new security json file from google and set it all up again but sounds like thats not the problem. 

Does it sound like it could work if the reboot happens to run things so the functions dont get in each others way? 

And anything to do after the reboot or just press check?

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - V 1.4 Released
« Reply #410 on: November 05, 2015, 05:35:02 pm »
After a reboot - you do not have to press check as it will check the calendar for events at the end of the startup.

Without pressing "check" and after a reboot - what does it say on the plugin panel ?  We may be chasing a couple of things here -  ....   so lets take this a step at a time.

Offline simonclark

  • Full Member
  • ***
  • Posts: 147
  • Karma: +6/-9
Re: GCAL3 - V 1.4 Released
« Reply #411 on: November 05, 2015, 05:50:27 pm »
On the dashboard it says Fatal Error: credentials.  I still only have the sem file.  No pem file. 

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - V 1.4 Released
« Reply #412 on: November 05, 2015, 06:01:53 pm »
ok - we are getting somewhere  :)

upload the json credentials file and reboot.   BTW what have you named the credentials file ?  The default is GCal3.json

Offline simonclark

  • Full Member
  • ***
  • Posts: 147
  • Karma: +6/-9
Re: GCAL3 - V 1.4 Released
« Reply #413 on: November 05, 2015, 06:12:07 pm »
No idea what was different that time but yes I uploaded the json file again and let it restart.  I was also playing in google calendar at the same time and deleted the sharing and recreated it.  And now it works. 

I still dont have a pem file created though...

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - V 1.4 Released
« Reply #414 on: November 05, 2015, 06:19:22 pm »
Where are you looking to see if there is a pem file ?   What tool ?  It will not work unless there is a pem file (I promise).

Offline simonclark

  • Full Member
  • ***
  • Posts: 147
  • Karma: +6/-9
Re: GCAL3 - V 1.4 Released
« Reply #415 on: November 05, 2015, 06:30:18 pm »
I am using winscp and looking in etc/cmh-ludl/GCal3.   I have refreshed and reconnected a few times and still dont see it.  Unless its hidden?

Offline simonclark

  • Full Member
  • ***
  • Posts: 147
  • Karma: +6/-9
Re: GCAL3 - V 1.4 Released
« Reply #416 on: November 05, 2015, 06:31:11 pm »
and as if winscp read that post... on that refresh I now see all 3 files.  So yes, they are there for it to be working, but no idea why they werent on any of the other previous attempts. 

After 3 hours of trying I finally have it setup so that my morning Sonos TTS scene can tell me the day's events, except I will be wishing it will say I have a lie in after this late night!  But glad its now working.  Thanks for your help .
« Last Edit: November 05, 2015, 06:41:37 pm by simonclark »

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - V 1.4 Released
« Reply #417 on: November 05, 2015, 06:44:03 pm »
I just looked at the documentation (which was written for UI5)... UI7 behaves slightly differently and so a reboot after uploading the json credentials file is the safest way to go.  I'm hoping to find time to update the documents for UI7 but .....

Glad it is working now. 

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - V 1.4 Released
« Reply #418 on: November 06, 2015, 05:16:55 pm »
OK - I just did some tests ---   you are lucky !   I get 3 and 4 notifications !!!

What version of the plugin are you using, what model vera and what UI release level ?

In Rel 1.4 I'm thinking (pretty sure)  I introduced a bug that accounts for some of the excess notifications I am seeing and can probably fix that soon.

I'm on UI5 veraLite. I installed it from Mios Marketplace 4 days ago so this is the last version.

Thanks !!

Ok - I was wrong, I had not introduced a bug ... it was there all along ....   a nuance of the logic I was using to try and accommodation restarts (of vera), rechecks of the calendar, luup timer calls into the future and the like .....  it can get a little tricky .....

I've created a notification request tracking approach that should solve the issue.  I've run it through a few test cycles and so far so good.   I'd appreciate it if you would give it a try ...   just upload the attached file to your vera and let me know how it goes.

« Last Edit: December 07, 2015, 12:09:28 am by Stuart »

Offline garycooper

  • Sr. Newbie
  • *
  • Posts: 34
  • Karma: +0/-0
Re: GCAL3 - V 1.4 Released
« Reply #419 on: November 08, 2015, 05:23:10 am »
OK - I just did some tests ---   you are lucky !   I get 3 and 4 notifications !!!

What version of the plugin are you using, what model vera and what UI release level ?

In Rel 1.4 I'm thinking (pretty sure)  I introduced a bug that accounts for some of the excess notifications I am seeing and can probably fix that soon.

I'm on UI5 veraLite. I installed it from Mios Marketplace 4 days ago so this is the last version.

Thanks !!

Ok - I was wrong, I had not introduced a bug ... it was there all along ....   a nuance of the logic I was using to try and accommodation restarts (of vera), rechecks of the calendar, luup timer calls into the future and the like .....  it can get a little tricky .....

I've created a notification request tracking approach that should solve the issue.  I've run it through a few test cycles and so far so good.   I'd appreciate it if you would give it a try ...   just upload the attached file to your vera and let me know how it goes.

i just tested it looks to be good.

Thank you very much