Jump to content

NerdAlert: I've made a widget to update GCal with EDF What's On events. 'Ave a look.


5imon

Recommended Posts

During a particularly idle moment I mused on how great the world would be if all the What's On events were automagically added to a calendar. This would solve the particular problem that of what to do of an evening at short notice.

Why trawl through the historical EDF What's On postings looking for the evening in question when you could have a calendar view listing everything that's been posted against the day that it's on?


I decided to take this problem on, and I decided to use THE INTERNET to make it happen.


Here's the issue: some people - despite admin's request to the contrary - don't post the date and time of their event in the title of the post. So this boiled down to two parts:


1) recognise where the date IS in the title of the post, add this event to a google calendar

2) recognise where the date is not part of the title, scan the body of the post for a date and if found append it to the title, and send this to a google calendar


All other posts - ie where there is no date either in the title or body are submitted as is. This may or may not be processed correctly by Google Cal but this is the risk you run if you disobey admin's rules. So nyuh.


So steps were:


1) Created a Yahoo Pipe which loads the EDF What's On RSS feed. Filters out anything starting in Re: since the RSS feed includes thread replies. Used RegEx to include only those items that have a date in them.


Pipe source is here: http://bit.ly/H7Chau


2) Created another pipe to find those without a date in the title. Scanned the body for a date using the same regex. If found, stores the text and appends to title


Pipe source is http://bit.ly/H8OF3P


3) a third pipe joins the RSS feeds from pipes 1) and 2) above, plus all other posts not in 1) and 2), excluding responses


4) Next step was to use the excellent IFTTT.com to process the RSS feed resulting from step 3 above and post new items to GCal when a new item arrives. GCal has some parsing logic baked in to handle stuff like "every tuesday", "next thursday", "every day this month" etc, which is why completely dateless items are submitted as is.


E Voila. Here's the result:


http://bit.ly/GQEdzO


Since GCal is syndicated, could also use IFTTT.com to send items to a twitter feed which I think @TweetsDulwich is doing, but straight from the What's on page rather than via GCal.


...but that would be a bit too nerdy...

Link to comment
Share on other sites

blimey. that's marvellous, I've never seen yahoo pipes before.

I'd only add that adding a 'unique' widgetty thing based upon title & description might be good as I can see quite a few repeated entries there.


Other than that very minor quibble, hat's off to you 5imon!!

Link to comment
Share on other sites

yes there are a few things to improve..work in progress etc


duplicate entries: sometimes there'll be multiple postings for the same event eg reminders as the event draws near. I had a stab at filtering them out, but the search and match critera were pretty difficult to nail down.


the dateless calendar is sometimes a bit heavy handed in it's appending text too...need to tighten that up a bit


..but yes, Yahoo Pipes is awesome - one of the true hidden web wonders. Effectively turns the internet into a database which totally floats my nerdboat. I'll be very upset if Yahoo stop development of it, cos it looks like they are on the decline.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Latest Discussions

    • I don't know how spoillable food can be used as evidence in whatever imaginary CSI scenario you are imagining.  And yes, three times. One purchase was me, others were my partner. We don't check in with each other before buying meat. Twice we wrote it off as incidental. But now at three times it seems like a trend.   So the shop will be hearing from me. Though they won't ever see me again that's for sure.  I'd be happy to field any other questions you may have Sue. Your opinion really matters to me. 
    • If you thought they were off, would it not have been a good idea to have kept them rather than throwing them away, as evidence for Environmental Health or whoever? Or indeed the shop? And do you mean this is the third time you have bought chicken from the same shop which has been off? Have you told the shop? Why did you buy it again if you have twice previously had chicken from there which was off? Have I misunderstood?
    • I found this post after we just had to throw away £14 of chicken thighs from Dugard in HH, and probably for the 3rd time. They were roasted thoroughly within an hour of purchase. But they came out of the oven smelling very woofy.  We couldn't take a single bite, they were clearly off. Pizza for dinner it is then. Very disappointing. 
    • interesting read.  We're thinking about the same things for our kids in primary school as well. One thing I don't understand about Charter ED is whether they stream / set kids based on ability.  I got the impression from an open evening that it is done a little as possible. All i could find on-line was this undated letter - https://www.chartereastdulwich.org.uk/_site/data/files/users/18/documents/9473A8A3547CCCD39DBC4A55CA1678DC.pdf?pid=167 For the most part, we believe in mixed ability teaching and do not stream in Year 7 or Year 8. The only exceptions to this are that we have a small nurture class for Maths. This is a provision for students who scored lower than 85 in their SATS exams and is designed to support them to acquire the skills to access the learning in mainstream class. We do not have nurture classes for any other subjects. We take a more streamed - though not a setted - approach in Maths and Science from Year 9 onwards. though unsure if this is still accurate reflection of policy, and unsure of difference between streaming and setting.
Home
Events
Sign In

Sign In



Or sign in with one of these services

Search
×
    Search In
×
×
  • Create New...