Google Calendar
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
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
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
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.
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
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
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
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