It is currently April 20th, 2024, 6:10 am

Google Calendar Plugin

Share and get help with Plugins and Addons
ouiouimagicbox
Posts: 10
Joined: March 22nd, 2013, 10:46 am

Google Calendar Plugin

Post by ouiouimagicbox »

Hi all !

I have made a C# plugin for Google Calendar : https://github.com/ouiouimagicbox/raingcal

It comes with the following features :
  • Support for multiple calendars (potentially an infinite numbers). All events are merged and sorted by start date.
  • Configurable date format
  • Specific date format for today's events and week's events (for example, display 12:00 for today or 'sat.' for next saturday events)
  • Automatically generates include files for measures and meters according to "Max" parameters (need to Update twice the skin)
  • Retrieve measure according to the measure name or by the "Property" parameter
Usage :
  • Add the rainmeter SDK 'API' folder in the solution root folder
  • Compile and put GCal.dll on <RAINMETER>/Plugins folder
  • Checkout the "PGcal" folder for a fully functionnal skin
  • Extract the XML private url from Google Calendar (see the settings for a calendar) and get that part : https://www.google.com/calendar/feeds/<CALENDAR_ID>/basic

Potentially future features :
  • Mark recurring events (property already exists, just find a way to show it in the skin)
  • Display comments, location, etc.

At first, this was made (in 1 evening) for myself but it could be usefull for everyone who use Google Calendar. Any suggestions are welcome.


[EDIT]

RMskin package posted !

[02 April 2015]
Google API v3 supported !
You do not have the required permissions to view the files attached to this post.
Last edited by ouiouimagicbox on April 3rd, 2015, 1:41 pm, edited 5 times in total.
Oui-Oui
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: Google Calendar Plugin

Post by moshi »

you might get more feedback, if you would provide binaries i guess.
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Google Calendar Plugin

Post by smurfier »

moshi wrote:you might get more feedback, if you would provide binaries i guess.
That would be the reason I have yet to test.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
ouiouimagicbox
Posts: 10
Joined: March 22nd, 2013, 10:46 am

Re: Google Calendar Plugin

Post by ouiouimagicbox »

I have just edit my first post with a link to the x64 binaries (it was already in Github but I understand a link is quite more usefull ;-)).

Next step : compile x86 binaries and make a rmskin package... (soon)
Oui-Oui
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Google Calendar Plugin

Post by MerlinTheRed »

I hope you know that putting binaries under version control is generally not a very good idea ;) It's sad they removed the separate download possibility. That used to be so convenient for this kind of thing.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
ouiouimagicbox
Posts: 10
Joined: March 22nd, 2013, 10:46 am

Re: Google Calendar Plugin

Post by ouiouimagicbox »

I have just released an rmskin package with both 32 and 64 bits binaries plus a fully functional skin with a sample calendar (UK holidays).

See the first post and enjoy !
Oui-Oui
NisseDILLIGAF
Posts: 20
Joined: May 31st, 2011, 7:15 am

Re: Google Calendar Plugin

Post by NisseDILLIGAF »

Thanx!!
Looking really good... :thumbup:
NisseDILLIGAF
Posts: 20
Joined: May 31st, 2011, 7:15 am

Re: Google Calendar Plugin

Post by NisseDILLIGAF »

@ouiouimagicbox
really nice plugin and skin!
A permanent skin on my Rainmeter desk :)

One thing I would like is this..
Ive set 'WeekDateFormat' to 'HH:mm ddd' but now if it is an All day event it will show 00:00..

would it be possible to show 'allday' (or something) instead of 00:00?
Hope you understand what I'm trying to say :)

Thanx again!
/Nisse
ouiouimagicbox
Posts: 10
Joined: March 22nd, 2013, 10:46 am

Re: Google Calendar Plugin

Post by ouiouimagicbox »

NisseDILLIGAF wrote:would it be possible to show 'allday' (or something) instead of 00:00?
Hope you understand what I'm trying to say :)
I understand what you want and it's something I was thinking about...

A simple way to do this would be to duplicate the 3 date format parameters with a set for regular events and the other set for all day events.

Another option would be to implement some sort of conditionnal formatting like this :

Code: Select all

(IsAllDay ? "'All day' ddd" : "HH:mm ddd")
Of course the second option is more flexible but could lead to secury holes...
Oui-Oui
NisseDILLIGAF
Posts: 20
Joined: May 31st, 2011, 7:15 am

Re: Google Calendar Plugin

Post by NisseDILLIGAF »

ok...

well, I've been trying to get my head around how the plugin works.. :???:
...nice with the template measure and meter.. :)

I can't figure out how to make a condition for all day event...
should i make a Calc measure that checks [mGcal1_Start] ??

I think I'll just wait until you update the plugin...

Thanx!
/Nisse