We have moved at community.getvera.com

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

Offline hansibal

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: GCAL3 - Google Calendar 3
« Reply #30 on: August 30, 2014, 10:01:09 am »
Attached is a patched file.  There was a problem with the semaphore and that certainly affected Hansibal , quite likely Borat and likely everyone else who tried the last patch (which I have removed).

Here is version 6.1.2 -- please let me know how it goes.  I deliberately tried to make it misbehave - and think I've got it this time .....  learning about Lua all the time ......

hi Stuart,

Thanks for taking time to look into this. I know get the following error:
Code: [Select]
06      08/30/14 14:57:44.101   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_lastCheck was: 2014-08-30T14:56:55 now: 2014-08-30T14:57:44 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2dacb680>
06      08/30/14 14:57:44.102   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_jsonEvents was: [] now: [] #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2dacb680>
50      08/30/14 14:57:44.102   luup_log:107: GCal3 gc_V 0.6.2:Checking semaphore <0x2dacb680>
50      08/30/14 14:57:44.103   luup_log:107: GCal3 gc_V 0.6.2:Semaphore file returned nil <0x2dacb680>
01      08/30/14 14:57:44.103   LuaInterface::CallFunction_Timer-5 function GCalMain failed [string "local GCAL_VERSION = "V 0.6.2"..."]:101: /etc/cmh-ludl/GCal3/GCal3.sem: No such file or directory <

Kr,
Hans

Offline kiethr

  • Full Member
  • ***
  • Posts: 110
  • Karma: +1/-2
Re: GCAL3 - Google Calendar 3
« Reply #31 on: August 30, 2014, 12:16:22 pm »
Hi Stuart

Thank you for your work with this app, I seem to be having an issue after upgrading to Gcal3.  After installing from the most recent patch in the forum, I can't get the calendar to load.  I put in the URL and i received a message that it was set.  I closed the window and refreshed.  I then set up the triggers and none of them would fire.  I then pressed the check button and its been checking for over an hour and nothing populates in the calendar tab.

Any pointers?

PS its on a vera lite.

Thanks


Sent from my iPad using Tapatalk HD

Offline babas

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: GCAL3 - Google Calendar 3
« Reply #32 on: August 30, 2014, 12:41:43 pm »
Hi Stuart,

I have a problems when I ask a "check" the message "Checking ..." persist. I check with two devices.
On tab "calendar" is ok I see my calendar.

Code: [Select]
50      08/30/14 18:32:35.516   luup_log:186: GCal3 gc_V 0.6.2:This is device # 186 __LEAK__ this:8192 start:774144 to 0x1152000 <0x2c18f680>
06      08/30/14 18:32:35.517   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_TrippedEvent was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.517   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_TrippedID was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.518   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_Value was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.518   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEvent was: Checking ... now: Checking ... #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.518   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.519   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_Interval was: 180 now: 180 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.519   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_StartDelta was: 0 now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.520   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_EndDelta was: 0 now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.520   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_Keyword was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.520   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_exactKeyword was: true now: true #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.521   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_ignoreKeyword was: false now: false #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.521   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_triggerNoKeyword was: false now: false #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.521   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_ignoreAllDayEvent was: false now: false #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.522   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_retrip was: true now: true #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.523   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_CalendarID was: ir5jbk6tlfgprcag2pc6b1ei2o@group.calendar.google.com now: ir5jbk6tlfgprcag2pc6b1ei2o@group.calendar.google.com #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.523   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_jsonEvents was: [] now: [] #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.524   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_lastCheck was: 2014-08-30T18:25:40 now: 2014-08-30T18:25:40 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.524   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_nextCheck was: 2014-08-30T18:12:46 now: 2014-08-30T18:12:46 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.525   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_debug was: 3 now: 3 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.525   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_displaystatus was: 0 now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
50      08/30/14 18:32:35.525   luup_log:186: GCal3 gc_V 0.6.2:GCal3 gc_V 0.6.2:Variables initialized ... <0x2c18f680>
50      08/30/14 18:32:35.542   luup_log:186: GCal3 gc_V 0.6.2:Command ls /usr/lib/lua/googlejwt.sh returned 0 <0x2c18f680>
50      08/30/14 18:32:35.543   luup_log:186: GCal3 gc_V 0.6.2:/usr/lib/lua/googlejwt.sh  already exists <0x2c18f680>

50      08/30/14 18:32:35.585   luup_log:186: GCal3 gc_V 0.6.2:Command ls /usr/lib/lua/json.lua returned 0 <0x2c18f680>
50      08/30/14 18:32:35.585   luup_log:186: GCal3 gc_V 0.6.2:/usr/lib/lua/json.lua  already exists <0x2c18f680>
50      08/30/14 18:32:35.586   luup_log:186: GCal3 gc_V 0.6.2:Function: checkforcredentials <0x2c18f680>

50      08/30/14 18:32:35.616   luup_log:186: GCal3 gc_V 0.6.2:Command ls /etc/cmh-ludl/GCal3.json.lzo returned 256 <0x2c18f680>
50      08/30/14 18:32:35.617   luup_log:186: GCal3 gc_V 0.6.2:GCal3 gc_V 0.6.2:Timezone is 2 hrs and 0 min <0x2c18f680>
50      08/30/14 18:32:35.617   luup_log:186: GCal3 gc_V 0.6.2:GCal3 gc_V 0.6.2:Running Plugin ... <0x2c18f680>
06      08/30/14 18:32:35.617   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEvent was: Checking ... now: Successfully Initialized #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2c18f680>
06      08/30/14 18:32:35.618   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
50      08/30/14 18:32:35.622   luup_log:187: GCal3 gc_V 0.6.2:This is device # 187 <0x2c18f680>
06      08/30/14 18:32:35.635   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_TrippedEvent was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.636   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_TrippedID was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.636   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_Value was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.636   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEvent was: Checking ... now: Checking ... #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.637   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.637   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_Interval was: 180 now: 180 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.638   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_StartDelta was: 0 now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.638   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_EndDelta was: 0 now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.638   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_Keyword was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.639   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_exactKeyword was: true now: true #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.639   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_ignoreKeyword was: false now: false #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.639   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_triggerNoKeyword was: false now: false #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.640   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_ignoreAllDayEvent was: false now: false #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.640   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_retrip was: true now: true #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.641   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_CalendarID was: dgmhk36mgd4s54s0ircbl68k0j72v04s@import.calendar.google.com now: dgmhk36mgd4s54s0ircbl68k0j72v04s@import.calendar.google.com #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.641   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_jsonEvents was: [] now: [] #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.641   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_lastCheck was: 2014-08-30T18:25:10 now: 2014-08-30T18:25:10 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.643   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_nextCheck was: 2014-08-30T18:16:57 now: 2014-08-30T18:16:57 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.643   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_debug was: 1 now: 1 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
06      08/30/14 18:32:35.644   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_displaystatus was: 0 now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>
50      08/30/14 18:32:35.644   luup_log:187: GCal3 gc_V 0.6.2:GCal3 gc_V 0.6.2:Variables initialized ... <0x2c18f680>

50      08/30/14 18:32:35.822   luup_log:187: GCal3 gc_V 0.6.2:GCal3 gc_V 0.6.2:Running Plugin ... <0x2c18f680>
06      08/30/14 18:32:35.822   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEvent was: Checking ... now: Successfully Initialized #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2c18f680>
06      08/30/14 18:32:35.843   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2c18f680>





06      08/30/14 18:32:37.104   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_lastCheck was: 2014-08-30T18:25:10 now: 2014-08-30T18:32:37 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 __LEAK__ this:131072 start:1101824 to 0x11a2000 <0x2d98f680>
06      08/30/14 18:32:37.104   Device_Variable::m_szValue_set device: 187 service: urn:srs-com:serviceId:GCalIII variable: gc_jsonEvents was: [] now: [] #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2d98f680>
06      08/30/14 18:32:37.107   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_lastCheck was: 2014-08-30T18:25:40 now: 2014-08-30T18:32:37 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2d78f680>
06      08/30/14 18:32:37.107   Device_Variable::m_szValue_set device: 186 service: urn:srs-com:serviceId:GCalIII variable: gc_jsonEvents was: [] now: [] #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2d78f680>
50      08/30/14 18:32:37.108   luup_log:186: GCal3 gc_V 0.6.2:Checking semaphore <0x2d78f680>
50      08/30/14 18:32:37.108   luup_log:186: GCal3 gc_V 0.6.2:Semaphore file returned nil <0x2d78f680>

thanks

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - Google Calendar 3
« Reply #33 on: August 30, 2014, 02:02:54 pm »
Attached is a patched file.  There was a problem with the semaphore and that certainly affected Hansibal , quite likely Borat and likely everyone else who tried the last patch (which I have removed).

Here is version 6.1.2 -- please let me know how it goes.  I deliberately tried to make it misbehave - and think I've got it this time .....  learning about Lua all the time ......

hi Stuart,

Thanks for taking time to look into this. I know get the following error:
Code: [Select]
06      08/30/14 14:57:44.101   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_lastCheck was: 2014-08-30T14:56:55 now: 2014-08-30T14:57:44 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2dacb680>
06      08/30/14 14:57:44.102   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_jsonEvents was: [] now: [] #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2dacb680>
50      08/30/14 14:57:44.102   luup_log:107: GCal3 gc_V 0.6.2:Checking semaphore <0x2dacb680>
50      08/30/14 14:57:44.103   luup_log:107: GCal3 gc_V 0.6.2:Semaphore file returned nil <0x2dacb680>
01      08/30/14 14:57:44.103   LuaInterface::CallFunction_Timer-5 function GCalMain failed [string "local GCAL_VERSION = "V 0.6.2"..."]:101: /etc/cmh-ludl/GCal3/GCal3.sem: No such file or directory <

Kr,
Hans

Hi Hans --
I'm wondering if there is an upstream error ?   Are you able to see if the directory /etc/cmh-ludl/GCal3 exists ? If so - what files are in that directory ?  It should get created when the credentials are being parsed.  What does the log file look like during the plugin startup ?

The creation of the GCal3.sem file should occur immediately after the "semaphore file returned nil" message.  Clearly it is not (and the logs confirm that) and the function I am using assumes the folder exists  So the question may be  "why isn't the folder being created"

If the 

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - Google Calendar 3
« Reply #34 on: August 30, 2014, 02:08:32 pm »
Hi Stuart

Thank you for your work with this app, I seem to be having an issue after upgrading to Gcal3.  After installing from the most recent patch in the forum, I can't get the calendar to load.  I put in the URL and i received a message that it was set.  I closed the window and refreshed.  I then set up the triggers and none of them would fire.  I then pressed the check button and its been checking for over an hour and nothing populates in the calendar tab.

Any pointers?

PS its on a vera lite.

Thanks


Sent from my iPad using Tapatalk HD

I use a vera light - so you should be good to go.  If it's hung when you press the check button - it could be several things.  Please get a log file with gc_debug = 3 and we can figure out what's happening.

When you say you put in the url - do you mean the calendar ID ?   GCal3 works very differently that GCal_II
« Last Edit: August 30, 2014, 02:13:25 pm by Stuart »

Offline korttoma

  • Hero Member
  • *****
  • Posts: 729
  • Karma: +26/-5
Re: GCAL3 - Google Calendar 3
« Reply #35 on: August 30, 2014, 02:16:38 pm »
@Stuart

Veralite and Vera2 is not the same. Veralite should be the same as Vera3 as far as I know only less memory and some less ethernet ports.

I could be wrong.

- Tomas

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - Google Calendar 3
« Reply #36 on: August 30, 2014, 02:25:26 pm »
@Stuart

Veralite and Vera2 is not the same. Veralite should be the same as Vera3 as far as I know only less memory and some less ethernet ports.

I could be wrong.
I had misread the post and quickly corrected myself. ...  not quickly enough  :'(


Offline korttoma

  • Hero Member
  • *****
  • Posts: 729
  • Karma: +26/-5
Re: GCAL3 - Google Calendar 3
« Reply #37 on: August 30, 2014, 02:37:35 pm »
Don't cry Stuart, we all make mistakes. Btw, thanks again for all your har work!  ;)
- Tomas

Offline hansibal

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: GCAL3 - Google Calendar 3
« Reply #38 on: August 30, 2014, 03:37:57 pm »
Quote

Hi Hans --
I'm wondering if there is an upstream error ?   Are you able to see if the directory /etc/cmh-ludl/GCal3 exists ? If so - what files are in that directory ?  It should get created when the credentials are being parsed.  What does the log file look like during the plugin startup ?

The creation of the GCal3.sem file should occur immediately after the "semaphore file returned nil" message.  Clearly it is not (and the logs confirm that) and the function I am using assumes the folder exists  So the question may be  "why isn't the folder being created"

If the

Hi,

Only had my vera kit for a couple of days, but I think I am starting to like this stuff. Here is the stuff from the startup:
Code: [Select]
06      08/30/14 20:28:19.702   Device_Variable::m_szValue_set device: 107 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Armed was: 0 now: 0 #hooks: 1 upnp: 0 v:0xde0cc0/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.702   Device_Variable::m_szValue_set device: 107 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 0 now: 0 #hooks: 1 upnp: 0 v:0xde0070/NONE duplicate:0 <0x2b673680>
06      08/30/14 20:28:19.741   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_TrippedEvent was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.741   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_TrippedID was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.742   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_Value was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.742   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEvent was: Successfully Initialized now: Successfully Initialized #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.742   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.743   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_Interval was: 180 now: 180 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.743   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_StartDelta was: 0 now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.744   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_EndDelta was: 0 now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.744   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_Keyword was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.744   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_exactKeyword was: true now: true #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.745   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_ignoreKeyword was: false now: false #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.745   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_triggerNoKeyword was: false now: false #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.746   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_ignoreAllDayEvent was: false now: false #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.746   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_retrip was: true now: true #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.746   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_CalendarID was: ------------@googlemail.com now: --------n@googlemail.com #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.747   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_jsonEvents was: [] now: [] #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.747   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_lastCheck was: 2014-08-30T20:07:26 now: 2014-08-30T20:07:26 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.747   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_nextCheck was: 2014-08-30T14:55:11 now: 2014-08-30T14:55:11 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.748   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_debug was: 3 now: 3 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.748   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_displaystatus was: 0 now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
50      08/30/14 20:28:19.752   luup_log:107: GCal3 gc_V 0.6.2:GCal3 gc_V 0.6.2:Variables initialized ... <0x2b673680>
50      08/30/14 20:28:19.770   luup_log:107: GCal3 gc_V 0.6.2:Command ls /usr/lib/lua/googlejwt.sh returned 0 <0x2b673680>
50      08/30/14 20:28:19.770   luup_log:107: GCal3 gc_V 0.6.2:/usr/lib/lua/googlejwt.sh  already exists <0x2b673680>
50      08/30/14 20:28:19.789   luup_log:107: GCal3 gc_V 0.6.2:Command ls /usr/lib/lua/json.lua returned 0 <0x2b673680>
50      08/30/14 20:28:19.789   luup_log:107: GCal3 gc_V 0.6.2:/usr/lib/lua/json.lua  already exists <0x2b673680>
50      08/30/14 20:28:19.790   luup_log:107: GCal3 gc_V 0.6.2:Function: checkforcredentials <0x2b673680>
50      08/30/14 20:28:19.808   luup_log:107: GCal3 gc_V 0.6.2:Command ls /etc/cmh-ludl/GCal3.json.lzo returned 256 <0x2b673680>
50      08/30/14 20:28:19.809   luup_log:107: GCal3 gc_V 0.6.2:GCal3 gc_V 0.6.2:Timezone is 1 hrs and 0 min <0x2b673680>
50      08/30/14 20:28:19.809   luup_log:107: GCal3 gc_V 0.6.2:GCal3 gc_V 0.6.2:Running Plugin ... <0x2b673680>
06      08/30/14 20:28:19.810   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEvent was: Successfully Initialized now: Successfully Initialized #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.810   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x

The /etc/cmh-hudl/ doesn't contain the directory GCAL3, there are three files in the dir for Gcal:
GCal3.lua.lzo                       
GCal_II.lua.lzo                       
Gcal3.json.lzo

hope this helps,

Kr,
Hans
« Last Edit: August 30, 2014, 04:13:23 pm by hansibal »

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - Google Calendar 3
« Reply #39 on: August 30, 2014, 04:28:19 pm »
Quote

Hi Hans --
I'm wondering if there is an upstream error ?   Are you able to see if the directory /etc/cmh-ludl/GCal3 exists ? If so - what files are in that directory ?  It should get created when the credentials are being parsed.  What does the log file look like during the plugin startup ?

The creation of the GCal3.sem file should occur immediately after the "semaphore file returned nil" message.  Clearly it is not (and the logs confirm that) and the function I am using assumes the folder exists  So the question may be  "why isn't the folder being created"

If the

Hi,

Only had my vera kit for a couple of days, but I think I am starting to like this stuff. Here is the stuff from the startup:
Code: [Select]
06      08/30/14 20:28:19.702   Device_Variable::m_szValue_set device: 107 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Armed was: 0 now: 0 #hooks: 1 upnp: 0 v:0xde0cc0/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.702   Device_Variable::m_szValue_set device: 107 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 0 now: 0 #hooks: 1 upnp: 0 v:0xde0070/NONE duplicate:0 <0x2b673680>
06      08/30/14 20:28:19.741   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_TrippedEvent was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.741   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_TrippedID was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.742   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_Value was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.742   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEvent was: Successfully Initialized now: Successfully Initialized #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.742   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.743   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_Interval was: 180 now: 180 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.743   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_StartDelta was: 0 now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.744   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_EndDelta was: 0 now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.744   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_Keyword was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.744   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_exactKeyword was: true now: true #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.745   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_ignoreKeyword was: false now: false #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.745   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_triggerNoKeyword was: false now: false #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.746   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_ignoreAllDayEvent was: false now: false #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.746   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_retrip was: true now: true #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.746   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_CalendarID was: ------------@googlemail.com now: --------n@googlemail.com #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.747   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_jsonEvents was: [] now: [] #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.747   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_lastCheck was: 2014-08-30T20:07:26 now: 2014-08-30T20:07:26 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.747   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_nextCheck was: 2014-08-30T14:55:11 now: 2014-08-30T14:55:11 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.748   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_debug was: 3 now: 3 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.748   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_displaystatus was: 0 now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
50      08/30/14 20:28:19.752   luup_log:107: GCal3 gc_V 0.6.2:GCal3 gc_V 0.6.2:Variables initialized ... <0x2b673680>
50      08/30/14 20:28:19.770   luup_log:107: GCal3 gc_V 0.6.2:Command ls /usr/lib/lua/googlejwt.sh returned 0 <0x2b673680>
50      08/30/14 20:28:19.770   luup_log:107: GCal3 gc_V 0.6.2:/usr/lib/lua/googlejwt.sh  already exists <0x2b673680>
50      08/30/14 20:28:19.789   luup_log:107: GCal3 gc_V 0.6.2:Command ls /usr/lib/lua/json.lua returned 0 <0x2b673680>
50      08/30/14 20:28:19.789   luup_log:107: GCal3 gc_V 0.6.2:/usr/lib/lua/json.lua  already exists <0x2b673680>
50      08/30/14 20:28:19.790   luup_log:107: GCal3 gc_V 0.6.2:Function: checkforcredentials <0x2b673680>
50      08/30/14 20:28:19.808   luup_log:107: GCal3 gc_V 0.6.2:Command ls /etc/cmh-ludl/GCal3.json.lzo returned 256 <0x2b673680>
50      08/30/14 20:28:19.809   luup_log:107: GCal3 gc_V 0.6.2:GCal3 gc_V 0.6.2:Timezone is 1 hrs and 0 min <0x2b673680>
50      08/30/14 20:28:19.809   luup_log:107: GCal3 gc_V 0.6.2:GCal3 gc_V 0.6.2:Running Plugin ... <0x2b673680>
06      08/30/14 20:28:19.810   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEvent was: Successfully Initialized now: Successfully Initialized #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b673680>
06      08/30/14 20:28:19.810   Device_Variable::m_szValue_set device: 107 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x

The /etc/cmh-hudl/ doesn't contain the directory GCAL3, there are three files in the dir for Gcal:
GCal3.lua.lzo                       
GCal_II.lua.lzo                       
Gcal3.json.lzo

hope this helps,

Kr,
Hans

Hans --

the log entry
08/30/14 20:28:19.808   luup_log:107: GCal3 gc_V 0.6.2:Command ls /etc/cmh-ludl/GCal3.json.lzo returned 256 <0x2b673680>
together with no /etc/cmh-ludl/GCal3 directory
tells me that the code which sets up the credentials did not execute before

the /etc/cmh-ludl/GCal3 directory gets created the first time credentials are created.  This does not occur unless you upload the GCal3.json generated when you setup your google api service account.

Did you do this ?  If not, then this is the reason.  If you did - then there was some sort of problem the last time: upload the file GCal3.json again (you don't need to regenerate it - the original is still good), restart and get the logs. 

« Last Edit: August 30, 2014, 04:34:35 pm by Stuart »

Offline hansibal

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: GCAL3 - Google Calendar 3
« Reply #40 on: August 30, 2014, 04:38:27 pm »
Hi Stuart,

I did do this, but will try again and report back.

Kr,
Hans

Offline hansibal

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: GCAL3 - Google Calendar 3
« Reply #41 on: August 30, 2014, 05:03:09 pm »
Hi Stuart,

That did get it working, I must have done something wrong in the initial setup. As I started it from the beginning (making new project etc), I can't track down what it was exactly i did wrong, but I suspect the filename to be wrong, Gcal3.json iso GCal3.json (I it case sensitive?)

Anyway, it is working now, i'll be back experimenting :)

Thanks for your help!

Kr,
Hans
« Last Edit: August 30, 2014, 09:37:34 pm by Stuart »

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - Google Calendar 3
« Reply #42 on: August 30, 2014, 09:37:52 pm »
Hi Stuart,

That did get it working, I must have done something wrong in the initial setup. As I started it from the beginning (making new project etc), I can't track down what it was exactly i did wrong, but I suspect the filename to be wrong, Gcal3.json iso GCal3.json (I it case sensitive?)

Anyway, it is working now, i'll be back experimenting :)

Thanks for your help!

Kr,
Hans


Yep - case sensitive !   gets me all the time .....

Glad you have it working !!

Offline kiethr

  • Full Member
  • ***
  • Posts: 110
  • Karma: +1/-2
Re: GCAL3 - Google Calendar 3
« Reply #43 on: August 30, 2014, 09:53:30 pm »
Edit: Stuart, I missed a step is the process, my calendar now populates in the calender tab however the app window on the dash board isn't showing the next event in my calendar and doesn't trip on the exact keyword.

Here is the log dealing with the gcal.

09   08/30/14 23:13:58.612   JobHandler_LuaUPnP::Run device 108 GCal3 Sensor room 0 type urn:schemas-srs-com:device:GCal:3 id  parent 0/0xd36398 upnp: 0 <0x2ae29000>

50   08/30/14 23:14:12.574   luup_log:108: GCal3 gc_V 0.6.2:This is device # 108 <0x2b75d680>
06   08/30/14 23:14:12.575   Device_Variable::m_szValue_set device: 108 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Armed was: 1 now: 1 #hooks: 0 upnp: 0 v:0xd79fc8/NONE duplicate:1 <0x2b75d680>
06   08/30/14 23:14:12.576   Device_Variable::m_szValue_set device: 108 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 0 now: 0 #hooks: 0 upnp: 0 v:0xd79248/NONE duplicate:0 <0x2b75d680>
06   08/30/14 23:14:12.577   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_TrippedEvent was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>
06   08/30/14 23:14:12.578   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_TrippedID was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>
06   08/30/14 23:14:12.578   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_Value was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>
06   08/30/14 23:14:12.578   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEvent was: Successfully Initialized now: Successfully Initialized #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>
06   08/30/14 23:14:12.579   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>
06   08/30/14 23:14:12.579   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_Interval was: 180 now: 180 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>
06   08/30/14 23:14:12.579   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_StartDelta was: 0 now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>
06   08/30/14 23:14:12.580   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_EndDelta was: 0 now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>
06   08/30/14 23:14:12.580   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_Keyword was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>
06   08/30/14 23:14:12.581   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_exactKeyword was: true now: true #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>
06   08/30/14 23:14:12.581   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_ignoreKeyword was: false now: false #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>
06   08/30/14 23:14:12.581   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_triggerNoKeyword was: false now: false #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>
06   08/30/14 23:14:12.581   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_ignoreAllDayEvent was: false now: false #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>
06   08/30/14 23:14:12.582   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_retrip was: true now: true #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>
06   08/30/14 23:14:12.582   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_CalendarID was: kiethrumbold@gmail.com now: kiethrumbold@gmail.com #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>
06   08/30/14 23:14:12.582   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_jsonEvents was: [] now: [] #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>
06   08/30/14 23:14:12.583   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_lastCheck was: 2014-08-30T23:10:22 now: 2014-08-30T23:10:22 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>
06   08/30/14 23:14:12.583   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_nextCheck was: 2014-08-30T23:01:02 now: 2014-08-30T23:01:02 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>
06   08/30/14 23:14:12.584   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_debug was: 3 now: 3 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>
06   08/30/14 23:14:12.584   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_displaystatus was: 0 now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>
50   08/30/14 23:14:12.584   luup_log:108: GCal3 gc_V 0.6.2:GCal3 gc_V 0.6.2:Variables initialized ... <0x2b75d680>
50   08/30/14 23:14:12.602   luup_log:108: GCal3 gc_V 0.6.2:Command ls /usr/lib/lua/googlejwt.sh returned 0 <0x2b75d680>
50   08/30/14 23:14:12.603   luup_log:108: GCal3 gc_V 0.6.2:/usr/lib/lua/googlejwt.sh  already exists <0x2b75d680>
50   08/30/14 23:14:12.622   luup_log:108: GCal3 gc_V 0.6.2:Command ls /usr/lib/lua/json.lua returned 0 <0x2b75d680>
50   08/30/14 23:14:12.622   luup_log:108: GCal3 gc_V 0.6.2:/usr/lib/lua/json.lua  already exists <0x2b75d680>
50   08/30/14 23:14:12.622   luup_log:108: GCal3 gc_V 0.6.2:Function: checkforcredentials <0x2b75d680>
50   08/30/14 23:14:12.641   luup_log:108: GCal3 gc_V 0.6.2:Command ls /etc/cmh-ludl/GCal3.json.lzo returned 256 <0x2b75d680>
50   08/30/14 23:14:12.642   luup_log:108: GCal3 gc_V 0.6.2:GCal3 gc_V 0.6.2:Timezone is -4 hrs and -0 min <0x2b75d680>
50   08/30/14 23:14:12.642   luup_log:108: GCal3 gc_V 0.6.2:GCal3 gc_V 0.6.2:Running Plugin ... <0x2b75d680>
06   08/30/14 23:14:12.643   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEvent was: Successfully Initialized now: Successfully Initialized #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>
06   08/30/14 23:14:12.643   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>

50   08/30/14 23:14:14.103   luup_log:61: VeraAlert:61:ProfileInit:Assoc:textalert with:Pushover <0x2c75d680>
06   08/30/14 23:14:14.104   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_lastCheck was: 2014-08-30T23:10:22 now: 2014-08-30T23:14:14 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2df5d680>
06   08/30/14 23:14:14.105   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_jsonEvents was: [] now: [] #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2df5d680>
50   08/30/14 23:14:14.105   luup_log:108: GCal3 gc_V 0.6.2:Checking semaphore <0x2df5d680>
50   08/30/14 23:14:14.106   luup_log:108: GCal3 gc_V 0.6.2:Semaphore file returned nil <0x2df5d680>
01   08/30/14 23:14:14.106   LuaInterface::CallFunction_Timer-5 function GCalMain failed [string "local GCAL_VERSION = "V 0.6.2"..."]:101: /etc/cmh-ludl/GCal3/GCal3.sem: No such file or directory <0x2df5d680>

« Last Edit: August 30, 2014, 11:25:58 pm by kiethr »

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - Google Calendar 3
« Reply #44 on: August 30, 2014, 11:42:54 pm »
@Kieth

There looks to be two problems.  The first is that there does not seem to be any keyword specified.  gc_Keyword is 'blank'

08/30/14 23:14:12.580   Device_Variable::m_szValue_set device: 108 service: urn:srs-com:serviceId:GCalIII variable: gc_Keyword was:  now:  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b75d680>

But before going any further - this error needs to be resolved
LuaInterface::CallFunction_Timer-5 function GCalMain failed [string "local GCAL_VERSION = "V 0.6.2"..."]:101: /etc/cmh-ludl/GCal3/GCal3.sem: No such file or directory <0x2df5d680>

This looks identical to the problem that hansibal had.

Try uploading the GCal3.json file again and capturing the log.   The initial credential setup creates the /etc/cmh-ludl/GCal3 directory and that does not exist (as well as the other files that are placed there during the credentials setup).