Googlecal fails to connect

Here's hoping someone can help with this one. It's not a major problem but I would like to use GoogleCal.

When I run in debug mode I get the following report.

Member for

16 years 10 months

brett

14 years 5 months ago

Well it kind of looks like your username and/or password for authenticating isn't setup correctly.

Brett

Member for

15 years 7 months

garrydwilms

14 years 5 months ago

If you click the edit calendar link on the web GUI does it open up and login to your calendar?  Might help determine if login details stored correctly?

Member for

14 years 5 months

mark_baldwin

14 years 5 months ago

I have used the same login details, I even copy and pasted just to make sure. I've tried the edit calendar function but that doesn't appear to use the stored settings, it is just a link to the google calender page.

Member for

17 years

derek

14 years 5 months ago

Looking at the xap-googlecal source, it seems that Brett has allowed for the specification of the username and password on the command line (as ever it's well engineered stuff). So, retry your interactive test and see how it goes.

Cheers,
Derek.

 

/// Display usage information and exit.
static void usage(char *prog)
{
        printf("%s: [options]\n",prog);
        printf("  -i, --interface IF     Default %s\n", interfaceName);
        printf("  -d, --debug            0-7\n");
        printf("  -u, --username\n");
        printf("  -p, --password\n");
        printf("  -f, --freq             Default: %d\n", DEF_POLL_FREQ);
        printf("  -h, --help\n");
        exit(1);
}

Member for

15 years 7 months

garrydwilms

14 years 5 months ago

You may be right about the caching of login details. Not much help then, sorry. 

Member for

14 years 5 months

mark_baldwin

14 years 5 months ago

To Derek...

So when I run xap-googlecal I need to include the username and password? I assumed it took it from the stored information.

I'll have another go...

Member for

17 years

derek

14 years 5 months ago

Most folks will 'never' run the xap-googlecal from the command line.

You don't 'need' to include the username/password on the command line. If you don't, it will lookup the info as specified in your .ini file. However, if you specify this directly ... it does reduce the variables. 

So, pop the username/password into the command line invocation & let us know how it goes.

As ever, I'm away from my home setup, so can't do a specific test. However, xap-googlecal is terribly flexible for folks who enjoy a solid internet feed. I wouldn't want anybody to miss the goodness that this can deliver.

Derek.

Member for

16 years 10 months

brett

14 years 5 months ago

Mark,

I ran a check to make sure that google was still using username/password and I didn't find any problem so I can only assume the issue must be on your end.   I did however find one minor wart which I corrected.  If you don't have a username and password in your ini file you can't override the settings from the command line.

Sample from a success connection

[brett@wombat xap-googlecal]$ ./xap-googlecal -u dbzoo.com@gmail.com -p xxx -d 7

Google Calendar Connector for xAP v12
Copyright (C) DBzoo 2009-2010
[inf][init.c:118:discoverBroadcastNetwork] eth0: address 192.168.1.9
[inf][init.c:130:discoverBroadcastNetwork] eth0: netmask 255.255.255.0
[inf][init.c:137:discoverBroadcastNetwork] Autoconfig: xAP broadcasts on 192.168.1.255:3639
[inf][init.c:74:discoverHub] Acquired broadcast socket, port 3639
[inf][init.c:75:discoverHub] Assuming no local hub is active
[dbg][timeout.c:18:xapAddTimeoutAction] Add timeout. interval=60
[dbg][init.c:222:xapAddSocketListener] socket=4
[inf][googlecal.c:461:main] Connecting to google
[inf][filter.c:34:xapAddFilter] section=xap-header key=target value=dbzoo.livebox.GoogleCal
[inf][filter.c:34:xapAddFilter] section=xap-header key=class value=google.calendar
[inf][filter.c:34:xapAddFilter] section=event key=title value=XAP_FILTER_ANY
[inf][filter.c:34:xapAddFilter] section=event key=start value=XAP_FILTER_ANY
[inf][filter.c:195:xapAddFilterAction] section=event key=start value=XAP_FILTER_ANY data=0
[dbg][timeout.c:18:xapAddTimeoutAction] Add timeout. interval=60
[dbg][timeout.c:18:xapAddTimeoutAction] Add timeout. interval=60
[dbg][googlecal.c:200:googlePeriodEventCheck] Google query params: start-min=2012-06-21T01:20:00Z&start-max=2012-06-21T01:21:00Z&singleevents=true
[inf][tx.c:19:xapSend] send

Member for

17 years

derek

14 years 5 months ago

I've just replicated the test that Brett conducted. Works fine for me too.

Perhaps try creating a brand new gmail account?

Cheers,
Derek.

Member for

14 years 5 months

mark_baldwin

14 years 5 months ago

That sounds like a plan :) better to keep things separate anyway.

I'll let you know how I go on.

Member for

14 years 5 months

mark_baldwin

14 years 5 months ago

New account seems to have cured the problem...

Strange :) thanks for the tips, onwards and upwards :)