Problem with googlecal

5 replies [Last post]
theonlyrealcj
Offline
Joined: 10 Oct 2010

Hi,

I've been having a go with the plugboard and sample scripts, in particular the gcal_on_state script. The script seems to be working fine however no event appears on my calendar. I ran xap-googlecal with debug level 9 and got this:

 

Send EVENT to Google

event(title=Relay 1 is off,start=2010-10-17T00:00:00,end=2010-10-17T00:01:00,where=xap-event,content=LUA monitored event)

Failed adding a new event! HTTP code: 201

msg: (null)

Any ideas what's going on?
Chris

 

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
Script problem

Hi Chris,

I wanted to see if I could replicate your issue. However, I can't seem to find the Lua script that you refer to. Can you point me at this?

I did use the following (from the Wiki) to successfully create a google calendar entry ... just opened up any old message in xFx, pasted this in & hit the 'Send message' button.

xap-header
{
v=12
hop=1
uid=FF123400
class=google.calendar
source=acme.booker.ping
target=dbzoo.livebox.GoogleCal
}
event
{
title=Lunch
start=tomorrow at 12pm
end=tomorrow at 1pm
description=at Benji
}

However, I'm currently running a beta release ... does this work for you?

Cheers,
Derek

theonlyrealcj
Offline
Joined: 10 Oct 2010
 I pasted and sent the

 

I pasted and sent the message but still got the same error:

Send EVENT to Google

event(title=Lunch,start=2010-10-18T12:00:00,end=2010-10-18T13:00:00,where=xap-event,content=at Benji)

Failed adding a new event! HTTP code: 201

msg: (null)

The script was in /etc/plugboard/samples on build 252.

I don't think the problem is with the script but possibly with my settings for googlecal.

[googlecal]

enable=1

uid=00DA

instance=GoogleCal

user=theonlyrealcj@gmail.com

passwd=*****

ufreq=60

Am I missing anything?

 

brett
Offline
Providence, United States
Joined: 9 Jan 2010
It might be a 252 firmware issue

I can't reproduce this either.  Having said that I rewrote the program when I migrate it to xaplib2 so its possible I've fixed some latent bug along the way let see if you still have issues when 253 is released.

BodgeIT
Offline
London, United Kingdom
Joined: 10 Jun 2010
201 Status code denotes success?

I'll run the code on my system tomorrow and check my results.

I'm running 252.

theonlyrealcj
Offline
Joined: 10 Oct 2010
Just realised that I have

Just realised that I have a calendar full of events, sending a message through xFx worked fine, I was just looking at the wrong day but the script I was using decided to put the events at midnight instead of the current time. Not sure why but I'll have another look at it later. Thanks for all your help and quick responses.

Chris

Hardware Info