We have moved at community.getvera.com

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

Offline clippermiami

  • Hero Member
  • *****
  • Posts: 1394
  • Karma: +27/-6
Re: GCAL3 - Google Calendar 3
« Reply #195 on: October 27, 2014, 04:35:22 pm »
I have no idea but for some reason I had to share/save the address three times in Google before it actually did. Once it actually saved it everything seems to be OK.
Two Vera Plus UI7 Linked via HTTP, 90+ Devices. PlugIns: PLEG, DSC, Blue Iris, MySensors,  AutoVera, ImperiHome, VeraAlerts, EventWatcher

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - Google Calendar 3
« Reply #196 on: October 27, 2014, 09:58:33 pm »
I have no idea but for some reason I had to share/save the address three times in Google before it actually did. Once it actually saved it everything seems to be OK.

A mystery then ..... ???

Good that it's working now .... enjoy.

Offline kariem112

  • Sr. Newbie
  • *
  • Posts: 30
  • Karma: +0/-0
Re: GCAL3 - Google Calendar 3
« Reply #197 on: October 28, 2014, 05:18:44 am »
I have installed the plugin, but I think something is wrong. I am using the latest version (from this thread, version 8) . I can see my calendar in the plugin. I can also see the next event. The only problem is that this (and all other events) event is called NO NAME. I created several test events, filled out name, description etc. In the advanced tab, I can see the correct ammount of events for the rest of the day, but not the correct name.

I am using a private calendar and UI7 on my vera.

Any clue on how to solve this?

ps. I am using this link for my calendar:
https://www.google.com/calendar/embed?src=info%XXXXXXX.nl

I can see that you are BRAVE  ......   using UI7 .......   ;D
I have not tested on UI7 yet - or even installed UI7 on my vera (as I have a couple of things I want to complete before I do that)
I'm willing to try and figure out (if it's just a configuration issue) if you are.

The url looks to be of the correct form and it shows in the calendar tab - so that's a good thing.
I have not seen this problem before with UI5 so -- can you get a log file please (make sure gc_debug is set to 3)?

 8) living on the edge with UI7. I have to admit that the latest release is kinda stable  ;) but it has some problems with some plugins. One of them is the log file viewer. This is the Lualog, how can I get the complete logfile for you?

(I have set debug level to 3 and did a manual check:

Code: [Select]
08 10/28/14 10:14:52.235 JobHandler_LuaUPnP::HandleActionRequest device: 34 service: urn:srs-com:serviceId:GCalIII action: GCalCheck <0x2d6b4680>
08 10/28/14 10:14:52.235 JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=34 <0x2d6b4680>
08 10/28/14 10:14:52.236 JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:srs-com:serviceId:GCalIII <0x2d6b4680>
08 10/28/14 10:14:52.236 JobHandler_LuaUPnP::HandleActionRequest argument action=GCalCheck <0x2d6b4680>
06 10/28/14 10:14:52.236 Device_Variable::m_szValue_set device: 34 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was: 17:30 Oct 28 to 18:30 Oct 28 now:  #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2d6b4680>
06 10/28/14 10:14:52.251 Device_Variable::m_szValue_set device: 34 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEvent was: NO NAME now: Checking ... #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2d6b4680>
06 10/28/14 10:14:53.101 Device_Variable::m_szValue_set device: 34 service: urn:srs-com:serviceId:GCalIII variable: gc_lastCheck was: 2014-10-28 at 10:12:49 now: 2014-10-28 at 10:14:53 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2cab4680>
06 10/28/14 10:14:53.102 Device_Variable::m_szValue_set device: 34 service: urn:srs-com:serviceId:GCalIII variable: gc_jsonEvents was: [{'eventEnd':1414517435,'eventStart':1414513835,'eventParameter':'','eventName':'NO NAME'}] now: [] #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2cab4680>
50 10/28/14 10:14:53.136 luup_log:34: GCal3 V 0.8 Beta3:Device 34 claimed semaphore <0x2cab4680>
06 10/28/14 10:14:53.301 Device_Variable::m_szValue_set device: 34 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEvent was: Checking ... now: Accessing Calendar #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 __LEAK__ this:81920 start:1196032 to 0x13bb000 <0x2cab4680>
06 10/28/14 10:14:53.302 Device_Variable::m_szValue_set device: 34 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was:  now:  #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2cab4680>
06 10/28/14 10:14:53.482 Device_Variable::m_szValue_set device: 34 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEvent was: Accessing Calendar now: Calendar Access Success #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 __LEAK__ this:73728 start:1269760 to 0x13cd000 <0x2cab4680>
06 10/28/14 10:14:53.482 Device_Variable::m_szValue_set device: 34 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was:  now:  #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2cab4680>
50 10/28/14 10:14:53.484 luup_log:34: GCal3 V 0.8 Beta3:Device 34 released the semaphore - reason: calendar check complete <0x2cab4680>
06 10/28/14 10:14:53.484 Device_Variable::m_szValue_set device: 34 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEvent was: Calendar Access Success now: Checking Events #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2cab4680>
06 10/28/14 10:14:53.485 Device_Variable::m_szValue_set device: 34 service: urn:srs-com:serviceId:GCalIII variable: gc_NextEventTime was:  now:  #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2cab4680>
06 10/28/14 10:14:53.493 Device_Variable::m_szValue_set device: 34 service: urn:srs-com:serviceId:GCalIII variable: gc_EventsToday was: 1 now: 1 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2cab4680>
06 10/28/14 10:14:53.493 Device_Variable::m_szValue_set device: 34 service: urn:srs-com:serviceId:GCalIII variable: gc_EventsLeftToday was: 1 now: 1 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2cab4680>
06 10/28/14 10:14:53.494 Device_Variable::m_szValue_set device: 34 service: urn:srs-com:serviceId:GCalIII variable: gc_ActiveEvents was:  now:  #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2cab4680>

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - Google Calendar 3
« Reply #198 on: October 28, 2014, 11:49:53 am »

(I have set debug level to 3 and did a manual check:


The log file is incomplete - perhaps UI7 changed the log setup ?

Try using this from your browser
http://[your local ip]/cgi-bin/cmh/log.sh?Device=LuaUPnP

In the limited log file - I looks like it's working properly and getting the data from the calendar

I can see from the line

gc_jsonEvents was: [{'eventEnd':1414517435,'eventStart':1414513835,'eventParameter':'','eventName':'NO NAME'}] now: []

The calendar previously returning ONE event - the calendar provides 'NO NAME', not the plugin.   Then the calendar says there are no events i.e. [].   Does that make sense relative to what you actually have in your calendar - apart from event titles ?

One possibility - If your calendar is set to be public and only show free/busy time then the events will show up but with 'NO NAME'


Offline kariem112

  • Sr. Newbie
  • *
  • Posts: 30
  • Karma: +0/-0
Re: GCAL3 - Google Calendar 3
« Reply #199 on: October 28, 2014, 02:27:19 pm »

(I have set debug level to 3 and did a manual check:


The log file is incomplete - perhaps UI7 changed the log setup ?

Try using this from your browser
http://[your local ip]/cgi-bin/cmh/log.sh?Device=LuaUPnP

In the limited log file - I looks like it's working properly and getting the data from the calendar

I can see from the line

gc_jsonEvents was: [{'eventEnd':1414517435,'eventStart':1414513835,'eventParameter':'','eventName':'NO NAME'}] now: []

The calendar previously returning ONE event - the calendar provides 'NO NAME', not the plugin.   Then the calendar says there are no events i.e. [].   Does that make sense relative to what you actually have in your calendar - apart from event titles ?

One possibility - If your calendar is set to be public and only show free/busy time then the events will show up but with 'NO NAME'
:) thanxs, that got me on the right track. I dont know why, but the shared option in my calender was "show free/busy only. Changed it, and now the events come in with their correct name!


Offline bubaleta

  • Full Member
  • ***
  • Posts: 111
  • Karma: +1/-0
Re: GCAL3 - Google Calendar 3
« Reply #200 on: October 29, 2014, 07:49:05 am »
Hello,

I'm using version 0.8 and have some similar symptoms.
Also got  the GCal3.email ?? error at first.
Now it seams to work ok and events are triggered, but I can't see the calendar tab.
It only shows 404 error, despite events are working correctly.



« Last Edit: October 29, 2014, 07:50:59 am by bubaleta »

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - Google Calendar 3
« Reply #201 on: October 29, 2014, 02:55:32 pm »
Hello,

I'm using version 0.8 and have some similar symptoms.
Also got  the GCal3.email ?? error at first.
Now it seams to work ok and events are triggered, but I can't see the calendar tab.
It only shows 404 error, despite events are working correctly.

Since the web UI does not refresh automatically - is it possible that this 404 message is left over from the previous steps ?   Try F5 to refresh and see if the calendar tab shows your calendar.

If it still does not - open the advanced tab an copy the link information from gc_CalendarID  this is what is being used to try and display the info in the calendar tab.  See if it works from directly from the browser.  If it still does not work - can you IM me the link so I can see if it's got anything strange in it.

Offline korttoma

  • Hero Member
  • *****
  • Posts: 729
  • Karma: +26/-5
Re: GCAL3 - Google Calendar 3
« Reply #202 on: October 30, 2014, 04:39:22 am »
Successfully replaced Gcal with GCal3 V. 0.8. Everything seems to work as expected. Thanks again Stuart for your awesome work!

Still running UI5, btw... not courageous enough to update (maybe next year).
- Tomas

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - Google Calendar 3
« Reply #203 on: October 30, 2014, 11:49:53 am »

 :) thanxs, that got me on the right track. I dont know why, but the shared option in my calender was "show free/busy only. Changed it, and now the events come in with their correct name!

This is good news.  Are you using the calendar as private ? That is no checkboxes ? and using credentials ?     The reason I ask is I'm very interested in your experience on UI7.

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - Google Calendar 3
« Reply #204 on: October 30, 2014, 11:52:25 am »
Successfully replaced Gcal with GCal3 V. 0.8. Everything seems to work as expected. Thanks again Stuart for your awesome work!

Still running UI5, btw... not courageous enough to update (maybe next year).

Excellent.    Maybe Kariem112's experience will be positive - lets hope so.    I will switch over to UI7 soon - but want to make sure we have a very stable version for UI5 just in case the code needs to be different for UI7.

Offline Don Diego

  • Hero Member
  • *****
  • Posts: 534
  • Karma: +300/-3
Re: GCAL3 - Google Calendar 3
« Reply #205 on: October 30, 2014, 12:42:25 pm »
Successfully replaced Gcal with GCal3 V. 0.8. Everything seems to work as expected. Thanks again Stuart for your awesome work!

Still running UI5, btw... not courageous enough to update (maybe next year).

Excellent.    Maybe Kariem112's experience will be positive - lets hope so.    I will switch over to UI7 soon - but want to make sure we have a very stable version for UI5 just in case the code needs to be different for UI7.

Stuart

 So am I to assume that for some time you'll maintain both UI5 and UI7 versions? Or will the UI7 version be backward compatible?

  Thanks for your  efforts.

   Don
Vera 3 (@1.5.622) (3); Vera Plus (2);
Trane/Schlage TStats (1); Schlage Deadbolt (2); Kwikset Lock (3);  GE 45602 Dimmer (14); GE 45603 Dimmer (17); HSM-100 (16); Everspring Siren (8), Everspring Temp/Humidity (4); HSM 200 (1)

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
Re: GCAL3 - Google Calendar 3
« Reply #206 on: October 30, 2014, 04:00:35 pm »


Stuart

 So am I to assume that for some time you'll maintain both UI5 and UI7 versions? Or will the UI7 version be backward compatible?

  Thanks for your  efforts.

   Don

Well -- the theory is that UI7 will allow backward compatibility.  If that turns out to be true, then great - which is why I'm interested in Kariem112's experience.   I have not been brave enough to switch to UI7 yet  :o

UI4 and UI5 were able to be compatible by including slightly different code (UI related) with exactly the same execution code.

From what I can see - the core executable code will not be affected so any differences would (hopefully) be small and probably only affect static parts of the code.  If the compatibility claim turns out to be false or difficult then I'll create two versions.   

Offline Ronald

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: GCAL3 - Google Calendar 3
« Reply #207 on: November 03, 2014, 09:35:46 am »
Well -- the theory is that UI7 will allow backward compatibility.  If that turns out to be true, then great - which is why I'm interested in Kariem112's experience.   I have not been brave enough to switch to UI7 yet  :o

I called the Vera company to get my Vera 3 downgraded again.
Massive trouble with SRT321 thermostats in UI7, that made my complete heating a mess.
As I didn't like the look and feel of UI7 anyway, I am glad to have UI5 again.
Think twice, or more, before upgrading

Offline Stuart

  • Moderator
  • Hero Member
  • *****
  • Posts: 728
  • Karma: +71/-2
V0.9 Beta1 - Google Calendar 3
« Reply #208 on: November 03, 2014, 11:57:50 pm »
This is a slightly experimental version with 2 changes from V0.8

1.  I've changed (streamlined) some of the credentials code and it's possible you may have to upload your GCal3.json file again.  On the plus side it will be a bit quicker and have less overhead with better debugging possibilities.  Basically I got rid of a shell script and absorbed most of it into Lua code.  This part is pretty robust and has been stable on my system for over a week.

2.  Some users have asked for ical support.  This is the experimental part.  I've made progress but the tricky part is the start and end times.   The way that data is stored in ical is inconsistent (allowed by the spec) .   I will be able to handle calendars that specify the start/end in utc or an unspecified 'local' time.  Usually this will be fine so long as the ical sets the events to the same time time as the vera expects or uses utc.   If the calendar has a different timezone and does not save the time in utc - then it will be difficult to interpret accurately without a lot of code ....  Also the ical link can only point to a PUBLIC calendar.  Note that the calendar tab will not work and may try to download a copy of your calendar data (such is the way of iCal) ......  but you should be able to see your events (on the front panel) and be able to trigger on those events.  Basically, the plugin (if it sees a url with 'ical' in it) downloads the calendar data, extracts the required fields and reformats them to look like a google calendar feed.

feedback welcome  ;D

EDIT:  Note that if you are trying the ical feature - the easiest way to tell if you have a 'good' url is to paste it into a browser and see if the browser attempts to download a calendar file for you.  Also the url must be in the form of http:// or https://

for example this (from google using the ICAL link)
https://www.google.com/calendar/ical/en.australian%23holiday%40group.v.calendar.google.com/public/basic.ics

or this:
 http://sports.yahoo.com/nfl/teams/sfo/ical.ics


EDIT: Attachments removed
« Last Edit: November 11, 2014, 02:55:39 pm by Stuart »

Offline kariem112

  • Sr. Newbie
  • *
  • Posts: 30
  • Karma: +0/-0
Re: GCAL3 - Google Calendar 3
« Reply #209 on: November 04, 2014, 12:40:12 pm »

 :) thanxs, that got me on the right track. I dont know why, but the shared option in my calender was "show free/busy only. Changed it, and now the events come in with their correct name!

This is good news.  Are you using the calendar as private ? That is no checkboxes ? and using credentials ?     The reason I ask is I'm very interested in your experience on UI7.
Sorry for the late reply. I am using a private calendar with no checkboxes. I have used the "share with specific people" option, and added the google developer email adres there. I am using google business apps. It works correctly in UI7. (using the latest version).