Author Topic: Google calendar widget  (Read 7289 times)

Offline sboulema

  • DFG Member
  • *
  • Posts: 34
  • Reputation: 0
Google calendar widget
« on: June 11, 2010, 09:07:48 PM »
Hello everyone!

I have just finished my Google calendar widget! It will show you the upcoming events in your google calendar.

The first time you will have to enter your gmail address and the private calendar string found by going to calendar.google.com -> Settings -> Calendar settings -> Calendars -> <your calendar> -> Private Address: XML
Dont worry you only have to enter it once ;)

Let me know if you find any bugs or have any improvements!

Greetings
Sboulema

Darkforest Group Handset Forums

Google calendar widget
« on: June 11, 2010, 09:07:48 PM »

Offline Bonsitm

  • DFG Veteran
  • *
  • Posts: 609
  • Reputation: 0
Re: Google calendar widget
« Reply #1 on: June 12, 2010, 12:05:42 AM »
What format does the private address have to be in?
1. The full URL
2. just the string after 'private-' or
3. 2. but with '/basic' after?

I'm getting calendar unavailable at the moment...
Installing JetDroid? Guide here
Problems with JetDroid? FAQ here
More information on the project: here
------------------------------------------------
Best of luck to JetDroid developers!

Offline sboulema

  • DFG Member
  • *
  • Posts: 34
  • Reputation: 0
Re: Google calendar widget
« Reply #2 on: June 12, 2010, 01:14:32 AM »
it prefills the private- part so just add the rest, without the /basic part. If you get a calendar unavailable message, try opening the browser and go to calendar.google.com, login and then refresh the widget.

Offline sboulema

  • DFG Member
  • *
  • Posts: 34
  • Reputation: 0
Re: Google calendar widget
« Reply #3 on: June 12, 2010, 06:07:41 PM »
Version 1.1:

- Better xml parsing of events
- Better options screen, with some more info on what you need to do to get the widget running

Looking into a proper Google Data API login but havent succeeded yet...

Offline Bonsitm

  • DFG Veteran
  • *
  • Posts: 609
  • Reputation: 0
Re: Google calendar widget
« Reply #4 on: June 12, 2010, 06:09:58 PM »
Version 1.1:

- Better xml parsing of events
- Better options screen, with some more info on what you need to do to get the widget running

Looking into a proper Google Data API login but havent succeeded yet...

I'll give it a try!

EDIT: It works!, well, the events are there, but I'm not sure how they are supposed to be organised, because it is organised oddly. First event (that is in the past week' is under '0. Jun'

Then a mix of two event this week and one from January and one from two years ago under '01. Jun'

Then two from week after next and two from last year are under '02. Jun'

Installing JetDroid? Guide here
Problems with JetDroid? FAQ here
More information on the project: here
------------------------------------------------
Best of luck to JetDroid developers!

Darkforest Group Handset Forums

Re: Google calendar widget
« Reply #4 on: June 12, 2010, 06:09:58 PM »

Offline sboulema

  • DFG Member
  • *
  • Posts: 34
  • Reputation: 0
Re: Google calendar widget
« Reply #5 on: June 13, 2010, 02:40:06 PM »
Version 1.1:

- Better xml parsing of events
- Better options screen, with some more info on what you need to do to get the widget running

Looking into a proper Google Data API login but havent succeeded yet...

I'll give it a try!

EDIT: It works!, well, the events are there, but I'm not sure how they are supposed to be organised, because it is organised oddly. First event (that is in the past week' is under '0. Jun'

Then a mix of two event this week and one from January and one from two years ago under '01. Jun'

Then two from week after next and two from last year are under '02. Jun'

Can you send me your xml file so i can look at it... and can you send me a screenshot of your General calendar settings. Mostly the part: date format, time format and country. I think the bad sorting is because we use different settings which i did not take into account.

Offline designoo

  • DFG Member
  • *
  • Posts: 28
  • Reputation: 0
Re: Google calendar widget
« Reply #6 on: June 13, 2010, 02:58:02 PM »
Version 1.1:

- Better xml parsing of events
- Better options screen, with some more info on what you need to do to get the widget running

Looking into a proper Google Data API login but havent succeeded yet...

Thanks for your work! But there is some main issue: The widget displays also appointments from the past, so the current appointments (like for today) dont even appear. So there must be a way to define from which date on the appointments are displayed. For example from today and tomorrow only. That would be enough and really nice.

Greetings

Offline sboulema

  • DFG Member
  • *
  • Posts: 34
  • Reputation: 0
Re: Google calendar widget
« Reply #7 on: June 14, 2010, 11:16:47 AM »
Version 1.2:

- Better XML feed
   Should load a bit faster
   Better event handling, no more old events or weird sorting
- Cleaner code

Thanks for testing the widget!

Offline sollie

  • DFG Veteran
  • *
  • Posts: 278
  • Reputation: 0
  • The Netherlands
Re: Google calendar widget
« Reply #8 on: June 14, 2010, 11:59:00 AM »
I can't get it to work..
if you have my private address,

http://www.google.com/calendar/feeds/jeroensollie91%40gmail.com/private-2347238947sfsdf73212ffg/basic

do I only need to enter the thick letters and numbers?

(I have changed the numbers and letters;))
S8000XWIF6 - S8000XPIJ7 - S8000XPJA1 - S800MCEJC1 - S8000XPJG1 - S800MCEJC1 --> HTC Desire, Android 2.2

Just take the best out of it.
http://twitter.com/JsSollie

Offline sboulema

  • DFG Member
  • *
  • Posts: 34
  • Reputation: 0
Re: Google calendar widget
« Reply #9 on: June 14, 2010, 12:28:14 PM »
I can't get it to work..
if you have my private address,

http://www.google.com/calendar/feeds/jeroensollie91%40gmail.com/private-2347238947sfsdf73212ffg/basic

do I only need to enter the thick letters and numbers?

(I have changed the numbers and letters;))

Yes, only enter the numbers and letters. The private- is already filled in, so when done entering the settings box should be private-2347238947sfsdf73212ffg

Offline sollie

  • DFG Veteran
  • *
  • Posts: 278
  • Reputation: 0
  • The Netherlands
Re: Google calendar widget
« Reply #10 on: June 14, 2010, 01:12:53 PM »
ah, great!

it looks very nice..
is there also a way to sync my calendar to google calendar from my phone?
through the Sync. menu? because I already have an other account in exchange..
S8000XWIF6 - S8000XPIJ7 - S8000XPJA1 - S800MCEJC1 - S8000XPJG1 - S800MCEJC1 --> HTC Desire, Android 2.2

Just take the best out of it.
http://twitter.com/JsSollie

Offline Kybou

  • DFG Veteran
  • *
  • Posts: 395
  • Reputation: 0
  • BOOM!
    • Darkforest Group
Re: Google calendar widget
« Reply #11 on: June 14, 2010, 01:32:09 PM »
Any pictures of the widget in action? :)
Lithuanians can contact me for support in native language.

Offline designoo

  • DFG Member
  • *
  • Posts: 28
  • Reputation: 0
Re: Google calendar widget
« Reply #12 on: June 14, 2010, 02:23:43 PM »
Version 1.2:

- Better XML feed
   Should load a bit faster
   Better event handling, no more old events or weird sorting
- Cleaner code

Thanks for testing the widget!


First of all: Very nice work again! Works much better now! Thanks.

But only one small issue: When an entry is longer than the background width the line isnt broken. So there should be a line brak (see pics).

Also the Settings/Refresh/Calendar  Icons should be placed at the bottom to make maximum space fot appointments at the top.

Other than that i am perfectly satisfied with this brilliant widget  :thumbs: :)

Keep it up!

Offline sollie

  • DFG Veteran
  • *
  • Posts: 278
  • Reputation: 0
  • The Netherlands
Re: Google calendar widget
« Reply #13 on: June 14, 2010, 03:43:03 PM »
anybody knows how to sync google calendar to your phone?
trough the sync menu?

the widget is great!
I never used my google calendar, but I will now!
S8000XWIF6 - S8000XPIJ7 - S8000XPJA1 - S800MCEJC1 - S8000XPJG1 - S800MCEJC1 --> HTC Desire, Android 2.2

Just take the best out of it.
http://twitter.com/JsSollie

Offline sboulema

  • DFG Member
  • *
  • Posts: 34
  • Reputation: 0
Re: Google calendar widget
« Reply #14 on: June 14, 2010, 06:24:58 PM »
anybody knows how to sync google calendar to your phone?
trough the sync menu?

the widget is great!
I never used my google calendar, but I will now!

The Sync menu option uses the SyncML protocol. This only allows to sync your google contacts, not the calendar. You can try some java apps to manually sync your calendar (but i haven't had any luck with them).

http://www.gcalsync.com/

Google calendar sync

Darkforest Group Handset Forums

Re: Google calendar widget
« Reply #14 on: June 14, 2010, 06:24:58 PM »

Tags: