• Welcome to the Speedsolving.com, home of the web's largest puzzle community!
    You are currently viewing our forum as a guest which gives you limited access to join discussions and access our other features.

    Registration is fast, simple and absolutely free so please, join our community of 40,000+ people from around the world today!

    If you are already a member, simply login to hide this message and begin participating in the community!

iCal Calendar for WCA Competitions

Lucas Garron

Administrator
Joined
Jul 6, 2007
Messages
3,718
Location
California
WCA
2006GARR01
YouTube
Visit Channel
If you use iCloud, Google Calendar, or any calendar program that handles iCal format, you can subscribe to the following URL and see all the upcoming competitions in your calendar. :)


Just go to: Calendar > Subscribe > Add the URL "http://www.cubing.net/cal/wca.ics"

EDIT: Note, you either have to refresh it manually or automatically (I recommend weekly) to get updates. By default, iCal only does a one-time import.
 
Last edited:

Lucas Garron

Administrator
Joined
Jul 6, 2007
Messages
3,718
Location
California
WCA
2006GARR01
YouTube
Visit Channel
It has not been updated since July 2009 :).
Right, since I didn't know if anyone was using it, and some of the scripting code broke.

I just ran it, and to my surprise everything still works, so maybe I can find a way to maintain it.

EDIT: In case I didn't make it clear, the calendar has been updated with all future competitions.
 
Last edited:

tim

Member
Joined
Nov 22, 2006
Messages
1,692
Location
Karlsruhe, Germany
WCA
2007HABE01
YouTube
Visit Channel
Right, since I didn't know if anyone was using it, and some of the scripting code broke.

I just ran it, and to my surprise everything still works, so maybe I can find a way to maintain it.

EDIT: In case I didn't make it clear, the calendar has been updated with all future competitions.

Thanks, Lucas :)

In my opinion the iCal calendar is the best way to display WCA competitions. I was kinda sad, when i noticed that it wasn't updated anymore, but i also didn't want to bother you with it. So thanks again :).
 

AndyK

Premium Member
Joined
Apr 5, 2009
Messages
173
Love it!

I wonder if you could get CubingUSA to post this calendar on their site.
 
Last edited:

Stefan

Member
Joined
May 7, 2006
Messages
7,280
WCA
2003POCH01
YouTube
Visit Channel
Last edited:

Lucas Garron

Administrator
Joined
Jul 6, 2007
Messages
3,718
Location
California
WCA
2006GARR01
YouTube
Visit Channel
Do you happen to have it in PHP (and would donate the code)? If not, is it as trivial as I think? Just produce an ics file with a simple template for each competition?
Yeah, it's really easy to reverse-engineer the format or look for a simple specification.

I used Mathematica only because I was more familiar with the processing and I didn't want to worry about parsing edge cases in PHP.

Source code
(Note: It won't run unless you have some other files in place. Unless I update this post, just look at it for sample code.)


Google calendar does offer subscriptions and apparently updates every six hours:
Aha. I should really get better at monitoring my raw site logs.
Also, am testing.
 
Last edited:

aplarsen

Member
Joined
Feb 15, 2010
Messages
4
Location
Byron, IL USA
WCA
2008LARS01
YouTube
Visit Channel
Google Calendar would be slick, as it already publishes in XML, iCal, RSS, and HTML.

Since the competition list is obviously already stored in a database, it seems redundant to be entering competitions into another calendar format. Depending on how the tables are structured, it should be really easy to format it correctly and dump the results into a dynamic iCal feed.

I've done this with my marathon training plan, since each time I train, the start date of the training program is based on the day of the race. My PHP script bases the entire calendar file on the start date, and I use Google Calendar to subscribe to the feed with the race date as an argument. The entire program is 37 lines...I think I wrote it in an hour.
 
Top