We have moved at community.getvera.com

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

Offline tmuscedere

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: GCAL3 - V 1.3 Released - Now with Overlapping Event Notification
« Reply #360 on: August 06, 2015, 10:46:30 am »
Can anyone give me some help with the problem i am having?

I am running UI7. On the main control screen it shows the next event and the time the event will happen. But when I click on the calendar tab it is blank and does not show the calendar. obviously it is communicating with the calender from the main control tab. Any ideas what could be causing this? thanks.

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - V 1.3 Released - Now with Overlapping Event Notification
« Reply #361 on: August 07, 2015, 12:31:32 am »
Can anyone give me some help with the problem i am having?

I am running UI7. On the main control screen it shows the next event and the time the event will happen. But when I click on the calendar tab it is blank and does not show the calendar. obviously it is communicating with the calender from the main control tab. Any ideas what could be causing this? thanks.

I think this is a question of the permissions on your calendar.

The calendar display does not try to pass any credentials, its just invoking a url.  So if your browser session is not logged in to google, that can prevent the calendar tab from displaying.  I'm guessing this the issue you described.   Try logging onto you google account (in another browser tab) and then take a look a the calendar display again.

Other things can get in the way too - like:
Are you accessing a regular google calendar as opposed to an iCal calendar ?
What browser are you using?
Sometimes the vera interface does not refresh fully and needs an F5 to help it along.



Offline vio

  • Sr. Newbie
  • *
  • Posts: 47
  • Karma: +0/-0
Re: GCAL3 - V 1.3 Released - Now with Overlapping Event Notification
« Reply #362 on: August 17, 2015, 05:30:20 pm »
Hi,

I have an issue with GCal3. After doing all steps, still not working. Error is Access or Calendar Error
Logs are:
50   08/18/15 0:24:47.110   luup_log:205: GCal3 V 1.3:local function:  checkGCal <0x73904520>
50   08/18/15 0:24:47.110   luup_log:205: GCal3 V 1.3:Checking semaphore <0x73904520>
50   08/18/15 0:24:47.131   luup_log:205: GCal3 V 1.3:Command /bin/ls /etc/cmh-ludl/GCal3/GCal3.sem returned 0 <0x73904520>
50   08/18/15 0:24:47.132   luup_log:205: GCal3 V 1.3:Semaphore file returned 0 <0x73904520>
50   08/18/15 0:24:47.136   luup_log:205: GCal3 V 1.3:Device xxx requested semaphore <0x73904520>
50   08/18/15 0:24:47.156   luup_log:205: GCal3 V 1.3:Command /bin/ls /etc/cmh-ludl/GCal3/GCal3.sem returned 0 <0x73904520>
50   08/18/15 0:24:47.157   luup_log:205: GCal3 V 1.3:Device xxx claimed semaphore <0x73904520>
50   08/18/15 0:24:47.159   luup_log:205: GCal3 V 1.3:StartMin is 2015-08-17T21:00:00Z StartMax is 2015-08-18T21:24:00Z <0x73904520>
50   08/18/15 0:24:47.160   luup_log:205: GCal3 V 1.3:End of day is 2015-08-18T23:59:59 <0x73904520>
50   08/18/15 0:24:47.160   luup_log:205: GCal3 V 1.3:local function: requestCalendar <0x73904520>
50   08/18/15 0:24:47.161   luup_log:205: GCal3 V 1.3:local function: get_access_token <0x73904520>
50   08/18/15 0:24:47.544   luup_log:205: GCal3 V 1.3:Token Info request status: HTTP/1.1 400 Bad Request <0x73904520>
50   08/18/15 0:24:47.544   luup_log:205: GCal3 V 1.3:Getting a new token <0x73904520>
50   08/18/15 0:24:47.965   luup_log:205: GCal3 V 1.3:The token request did not provide an access token <0x73904520>
06   08/18/15 0:24:47.966   Device_Variable::m_szValue_set device: xxx service: urn:srs-com:serviceId:GCalIII variable: gc_NextEvent was: The CalendarID is set now: Fatal error - access token #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x73904520>
06   08/18/15 0:24:47.966   Device_Variable::m_szValue_set device: 205 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was: . now: . #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x73904520>
50   08/18/15 0:24:47.967   luup_log:205: GCal3 V 1.3:Fatal error trying to get access token <0x73904520>
50   08/18/15 0:24:47.971   luup_log:205: GCal3 V 1.3:Device xxx released the semaphore - reason: calendar check complete <0x73904520>
06   08/18/15 0:24:47.972   Device_Variable::m_szValue_set device: 205 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEvent was: Fatal error - access token now: Access or Calendar Error #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x73904520>
06   08/18/15 0:24:47.972   Device_Variable::m_szValue_set device: 205 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was: . now: 8 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x73904520>
06   08/18/15 0:24:47.974   Device_Variable::m_szValue_set device: 205 service: urn:srs-com:serviceId:GCalIII variable: gc_lastCheck was: 2015-08-18 at 00:23:54 now: 2015-08-18 at 00:24:47 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x73904520>
06   08/18/15 0:24:47.976   Device_Variable::m_szValue_set device: 205 service: urn:srs-com:serviceId:GCalIII variable: gc_nextCheck was: 2015-08-18 at 00:24:54 now: 2015-08-18 at 00:25:47 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x73904520>
50   08/18/15 0:24:47.977   luup_log:205: GCal3 V 1.3:Next check will be in 60 sec on 2015-08-18 at 00:25:47 <0x73904520>

Can anybody help?
Regards

Offline vio

  • Sr. Newbie
  • *
  • Posts: 47
  • Karma: +0/-0
Re: GCAL3 - V 1.3 Released - Now with Overlapping Event Notification
« Reply #363 on: August 17, 2015, 05:42:06 pm »
Please ignore my last comment. I did a mistake uploading the GCal3.json using scp, not with lump upload.
My bad,
Regards

Offline davidw

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: GCAL3 - V 1.3 Released - Now with Overlapping Event Notification
« Reply #364 on: August 27, 2015, 09:19:15 pm »
Please switch to the regular google link and see what happens.

Stuart, I am stuck. My google calendar is set to US/Pacific. My Vera is set to US/Pacific. It shows the right time in UI5. But an event in my calendar on Aug 27 at 5:37pm shows up in Gcal3 as 01:37 Aug 28 to 02:37 Aug 28 (UTC). How can I get the time to be Pacific?

I am not sure what you mean by switch to the regular google link. I have tried all the ICS and HTML URLs I find in Google Calendar Settings. The events show up when I use the Private ICS, but the timezone is UTC and the events don't fire.

« Last Edit: August 27, 2015, 09:24:48 pm by dwertheimer »

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - V 1.3 Released - Now with Overlapping Event Notification
« Reply #365 on: August 29, 2015, 10:32:51 am »
Please switch to the regular google link and see what happens.

Stuart, I am stuck. My google calendar is set to US/Pacific. My Vera is set to US/Pacific. It shows the right time in UI5. But an event in my calendar on Aug 27 at 5:37pm shows up in Gcal3 as 01:37 Aug 28 to 02:37 Aug 28 (UTC). How can I get the time to be Pacific?

I am not sure what you mean by switch to the regular google link. I have tried all the ICS and HTML URLs I find in Google Calendar Settings. The events show up when I use the Private ICS, but the timezone is UTC and the events don't fire.

My guess is you may be using some form of iCal link and the specification of iCal allows all manner of date time representations -- Depending on who created the iCal then it can be inconsistent  -- I do not attempt to figure them all out.

If you are using a google calendar you should not have that issue provided you use the link.  When you copy it from the google calendar setup it's in the section called Embed this calendar and will look something like this:

<iframe src="https://www.google.com/calendar/embed?src=jiofwhpohg887fh08h0qhqrnd;%40group.calendar.google.com&ctz=America/Denver" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>





Offline davidw

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: GCAL3 - V 1.3 Released - Now with Overlapping Event Notification
« Reply #366 on: September 09, 2015, 10:21:18 am »
This worked for a few days and now stopped working.

I used that link, something like this: (changed slightly):
https://www.google.com/calendar/embed?src=[deleted]%40group.calendar.google.com%26ctz=America/Los_Angeles
[replaced the & with %26]

In the 2nd tab, it shows the calendar, so that link seems to work fine:
http://o7.no/1g9qjjb

But the front of the device shows access or calendar error and it doesn't load the events:
http://o7.no/1L1sFh1
« Last Edit: September 09, 2015, 10:48:28 am by davidw »

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - V 1.3 Released - Now with Overlapping Event Notification
« Reply #367 on: September 09, 2015, 04:11:30 pm »
This worked for a few days and now stopped working.

I used that link, something like this: (changed slightly):
https://www.google.com/calendar/embed?src=[deleted]%40group.calendar.google.com%26ctz=America/Los_Angeles
[replaced the & with %26]

In the 2nd tab, it shows the calendar, so that link seems to work fine:
http://o7.no/1g9qjjb

But the front of the device shows access or calendar error and it doesn't load the events:
http://o7.no/1L1sFh1

Did you copy the entire link
<iframe ........</iframe>  including the "<" at the start and the ">" at the end without changing anything ?  The plugin code extracts the relevant bits and makes changes necessary for the google api (which is different to the calendar display).

Since it was once working -- I'd go back and make sure the input (Calendar ID) is correctly entered (cut and paste <iframe ..... /iframe>) through the control tab.  Make sure you do not enter it directly into the advanced tab.

The error is telling us that there was no return of events from the query to google.


Offline davidw

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: GCAL3 - V 1.3 Released - Now with Overlapping Event Notification
« Reply #368 on: September 09, 2015, 10:15:54 pm »
Thanks, Stuart. Just did that again, but still not working. Here are the two sides of the string:
http://o7.no/1EWHFeJ
http://o7.no/1OAPlU8

2nd tab still works fine:
http://o7.no/1OAPuHk

What do you recommend?


Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - V 1.3 Released - Now with Overlapping Event Notification
« Reply #369 on: September 09, 2015, 11:41:14 pm »
At this point we need a log file.  I suspect a credential or connection issue.  Can you set gc_debug to 3,  reboot and then set the calendar is again, when you get the error can you PM me the log and I'll take a look.

Before you do that, the other quick thing to check is that you have set the permissions on the calendar correctly.

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: GCAL3 - V 1.3 Released - Now with Overlapping Event Notification
« Reply #370 on: September 10, 2015, 12:00:03 pm »
Stuart,

Quick question regarding GCAL events being pushed to a calendar (which has worked flawlessly for me so far !). IF my internet connection is down and an event is queued to push, will the plugin re-attempt until it can successfully write the event ?

Much appreciated...
openLuup, AltUI, Zway and HomeWave, enough said...

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - V 1.3 Released - Now with Overlapping Event Notification
« Reply #371 on: September 10, 2015, 12:42:26 pm »
Stuart,

Quick question regarding GCAL events being pushed to a calendar (which has worked flawlessly for me so far !). IF my internet connection is down and an event is queued to push, will the plugin re-attempt until it can successfully write the event ?

Much appreciated...

Glad to hear all is well.  From what I can tell the current version is very stable and it's only been setup nuances that cause concern.

Unfortunately - the answer to your question is "no". As it currently is, it's a 'one-shot' call and if it fails ... it fails .... there is no queue as such.  I'll take a look to see what might be done (to implement it properly) - it's not that hard but once you start down that path there's an extra level of detail ...

Unfortunately I'm very busy at work so no promises as to when.

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: GCAL3 - V 1.3 Released - Now with Overlapping Event Notification
« Reply #372 on: September 10, 2015, 01:05:13 pm »
Yeah, setups can be difficult and anyone having issues must turn to the Info Viewer plugin and carefully observe what's happening.  I think at first I had some issues setting up the push but it was just me being stupid about using the proper calendar id. So now I have a 'scheduler' and an 'event' calendar which overlay each other (color coded). Doorbell, lock pin entries/exits (lock button pushed), garage door (opened,closed), motion sensors etc. have all been pushing data perfectly.

Appreciate (as always) the fast response AND you looking into making faulty internet connections a not so bad kind of thing...

Stuart,

Quick question regarding GCAL events being pushed to a calendar (which has worked flawlessly for me so far !). IF my internet connection is down and an event is queued to push, will the plugin re-attempt until it can successfully write the event ?

Much appreciated...

Glad to hear all is well.  From what I can tell the current version is very stable and it's only been setup nuances that cause concern.

Unfortunately - the answer to your question is "no". As it currently is, it's a 'one-shot' call and if it fails ... it fails .... there is no queue as such.  I'll take a look to see what might be done (to implement it properly) - it's not that hard but once you start down that path there's an extra level of detail ...

Unfortunately I'm very busy at work so no promises as to when.
openLuup, AltUI, Zway and HomeWave, enough said...

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - V 1.3 Released - Now with Overlapping Event Notification
« Reply #373 on: September 18, 2015, 02:53:40 pm »
@ CudaNet

You might want to try this version (2 files updated).  I've tested it to the extent that I don't seem to have broken anything :-)  i.e.  it works with my test scenes (that create events).  I have not tested it with simulated internet failure - but it should (when the internet is returned) post any pending "adds" that were requested up to the time the network failed.   It will also attempt (not guaranteed - since I've not tested) to accept additional "adds" while the internet is down.

Let me know how it goes.

One thing - I've noticed a tendency for vera to "double post" events sometimes - scene triggers twice.....  It's not clear to me exactly why, other than it seems to happen when I've been testing and maybe added / deleted calendar events by hand .....

« Last Edit: October 25, 2015, 09:58:46 pm by Stuart »

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: GCAL3 - V 1.3 Released - Now with Overlapping Event Notification
« Reply #374 on: September 18, 2015, 04:33:02 pm »
Sweet,

I'll load this up tonight when I get home. I was just thinking about this too, this weekend I was going to dual WAN my network just so I wouldn't lose my internet connection.

Can't say I've ever noticed double posts (assuming I'm following you this late in the day) either upstream or down (triggers).. I'll give this a round of tests whereby I down my link, invoke some issues (fridge power loss, doorbell etc..) and let it queue before re-establishing the link... Can't bring my internet down too long though so can't speak to real world events that may leave some without a network for hours...

Much appreciated !

@ CudaNet

You might want to try this version (2 files updated).  I've tested it to the extent that I don't seem to have broken anything :-)  i.e.  it works with my test scenes (that create events).  I have not tested it with simulated internet failure - but it should (when the internet is returned) post any pending "adds" that were requested up to the time the network failed.   It will also attempt (not guaranteed - since I've not tested) to accept additional "adds" while the internet is down.

Let me know how it goes.

One thing - I've noticed a tendency for vera to "double post" events sometimes - scene triggers twice.....  It's not clear to me exactly why, other than it seems to happen when I've been testing and maybe added / deleted calendar events by hand .....
openLuup, AltUI, Zway and HomeWave, enough said...