Google Calendar

13 replies [Last post]
danward79
Offline
Joined: 19 Jan 2011

Hi Chaps,

Has something changed since the Google Calendar wiki was written?

I have been trying to schedule some events and the box is not finding any calendar items. There are definately some present.

From the debug log I just get this

 

[dbg][parse.c:33:xapGetValueF] section=event key=start

[dbg][filter.c:136:xapCompareFilters] match=0

[dbg][googlecal.c:196:googlePeriodEventCheck] Google query params: start-min=2011-07-10T17:46:00Z&start-max=2011-07-10T17:47:00Z&singleevents=true

[dbg][googlecal.c:200:googlePeriodEventCheck] Google returns no events

[inf][tx.c:19:xapSend] send

 

I used to have a scheduled item for reboot that worked, but it not longer does. I have also tried to do the examples out of the wiki.

I am wondering if the BST / UTC time thing is an issue?

Any ideas?

Thanks in Advance.

 

Dan

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Code hasn't changed

The google calendar code has been stable for a while certainly there hasn't been any changes that would cause this problem.

I take it you noticed this after you upgraded to 280.    So you have an /etc/TZ setting btw?

When did it become problematic what changed on your system?

On an related topic I noticed that libgcal, a library which xap-googlecal uses, has been updated so that multiple calendars are supported, this means I should be able to also get the HAH to support multiple calender.  Something I know has been asked before.

Brett

danward79
Offline
Joined: 19 Jan 2011
Hi, Thanks for the

Hi, Thanks for the reply.

Looking forward to being able to use a different calendar for all the xap stuff.

I am not sure when it first started being an issue. The reason being I have not been playing with my HAH a lot and deleted the calendar event sometime ago after the twitter issue got better for me.

I read the other thread and noted the utc/bst issue. I did try the TZ file. But I noted that it caused my events posted to gcal to be an hour ahead! dispite the "date" command returning the correct time. The quieries in debug mode are correctly dime stamped.

I don'y understand why it is not working.

Dan

danward79
Offline
Joined: 19 Jan 2011
Hi,On the other thing I

Hi,

On the other thing I mentioned, this is on my gcal as 2204hrs.

 

xap-header

{

uid=FF00D800

source=dbzoo.livebox.Plugboard

hop=1

class=google.calendar

target=dbzoo.livebox.GoogleCal

v=12

}

event

{

start=21:04

description=Event Generated by xAP

title=HAH has Started - 10 Jul 2011 21:04:49

end=21:04

}

 

 

Could that be related?

garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
Calendar issues also

Hi. I also am having calender issues recently. This started about a fortnight ago whilst I was on 279.23 ( at least thats when i noticed it) but continues to be an issue on 280. I was gonna post but am trying to get to the bottom of it first. Basically I used to schedule 1 minute events to switch on my lamps. All was good but recently I have been missing the events. I now have to schedule 10 min events in order to guarantee they get picked up. If I run an event for 10 mins and monitor in xfx viewer I do not see an alias message every minute. I get a heartbeat every min but the alias message only fires about 3-4 times in the ten minute period. I'm still investigating but thought I would post In case it is related. Thanks Garry

danward79
Offline
Joined: 19 Jan 2011
Hi, More info. I thought I

Hi, More info. I thought I would try the suggestion above again, about making the events size larger. That did not work for me.

While I was playing I checked a few relay operations and now the events that post on Gcal showing this are not working. These were fine yesterday.

Cheers Dan

Ignore all of that! I realised the calender app was not running...

garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
further debug info

Hi,

I have now done some debug analysis on my intermittent google event triggering as described above. Below is the relevent debug text produced for a 5 minute alias event to switch on rf1:

[dbg][googlecal.c:196:googlePeriodEventCheck] Google query params: start-min=2011-07-12T19:10:00Z&start-max=2011-07-12T19:11:00Z&singleevents=true
[dbg][googlecal.c:229:googleEventCheck] Trigger event
event(title=rf 1 on,start=2011-07-12T20:10:00.000+01:00,end=2011-07-12T20:15:00.000+01:00,where=xap,content=)

[dbg][googlecal.c:196:googlePeriodEventCheck] Google query params: start-min=2011-07-12T19:11:00Z&start-max=2011-07-12T19:12:00Z&singleevents=true
[dbg][googlecal.c:200:googlePeriodEventCheck] Google returns no events

[dbg][googlecal.c:196:googlePeriodEventCheck] Google query params: start-min=2011-07-12T19:12:00Z&start-max=2011-07-12T19:13:00Z&singleevents=true
[dbg][googlecal.c:200:googlePeriodEventCheck] Google returns no events

[dbg][googlecal.c:196:googlePeriodEventCheck] Google query params: start-min=2011-07-12T19:13:00Z&start-max=2011-07-12T19:14:00Z&singleevents=true
[dbg][googlecal.c:229:googleEventCheck] Trigger event
event(title=rf 1 on,start=2011-07-12T20:10:00.000+01:00,end=2011-07-12T20:15:00.000+01:00,where=xap,content=)

[dbg][googlecal.c:196:googlePeriodEventCheck] Google query params: start-min=2011-07-12T19:14:00Z&start-max=2011-07-12T19:15:00Z&singleevents=true
[dbg][googlecal.c:200:googlePeriodEventCheck] Google returns no events

 

from this you can see the HAH is checking with google every minute but only returns a trigger event twice in the five minute period. My gut feeling is this is pointing to a google issue erronously returning no events when they are in fact present. Not sure where to go next though other then to schedule 10min events to be on the safe side.

any other ideas??

Thanks,

Garry

brett
Offline
Providence, United States
Joined: 9 Jan 2010
I'm curious

Although this does look like google is not returning any query results when asked every 1min - I'm wondering why you have a 1min jobs scheduled for a lamp?

Are you having some sort of google calendar controlled disco?

Perhaps there is another way of going about solving whatever it is you are trying to do.

garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
No disco (honest)

I originally had one event scheduled each day to switch on a lamp. This event had the same start and end time and worked great until fairly recently when it got intermittent. To get round this I now have 10min long events to ensure I get at least one on trigger event. As you say look like google rather than hah and I have got round it with the extended events so not to worry. Just odd it has started recently although I do know google calendar looks different also so there has been changes. Cheers, Garry

danward79
Offline
Joined: 19 Jan 2011
What I don't understand is

What I don't understand is why you have events triggered at all and I have none.

garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
strange

I take it you have tried longer events(say 10mins) and still don't get any events fired? I assume since you have used this feature before that you have 'xap' as the location for your event? If so then that's me out of ideas. I don't believe it's time related as hah reports time with a Z suffix and google with a +01:00 suffix. Therefor for example 19:00Z on the HAH is identical to 20:00+01:00 in google. I did try the TZ file myself to put a timezone on the HAH but also found odd behaviour so have removed this and google cal still works at the correct time if a bit erratic as discussed above. Sorry, not much help I'm afraid. Garry

danward79
Offline
Joined: 19 Jan 2011
Hi,I did try all the things

Hi,

I did try all the things you have suggested. My trigger event is an old one I know works. I have also tried a new one from the wiki, all definately with xap as location.

I am out of ideas too.

Thanks

 

Dan

admin
Offline
Joined: 26 Oct 2009
Pretty odd I did a quick test and it worked

I could not reproduce the failure you are getting  - I did however upgrade the libgcal library from 0.9.3 -> 0.9.6

The new library supports multiple user calendars, although xap-googlecal does not support them yet - I haven't got around to figuring out what the new API calls are but I'll get there eventually.

I pushed a beta build with the updated library just incase there was some other fixes in there.

Brett

danward79
Offline
Joined: 19 Jan 2011
Seems to be working!

Hi Brett,

Thanks for the beta update, sorry it took me so long to try it.

It seems to work fine for me.

 

Dan

Hardware Info