Adding timezones into Upcoming feeds

60 %
40 %
Information about Adding timezones into Upcoming feeds

Published on November 2, 2008

Author: themattharris



This is the presentation I gave at Barcamp Brighton 3 on 6th September 2008. It gives an overview of an approach I have taken to insert timezones into my watchlist REST feed generated by Upcoming. The pipe described here is version 1 which adds a new node into the REST response. Whilst not ideal this is the current solution.

Adding timezones into your Upcoming feed Matt Harris 1

Problem Upcoming doesn’t know about timezones Their events are “floating” Different timezone events show as the same timezone in your calendar 2

Solution Add a timezone to the event ... but how? 3

What do we have? Start date, end date, start time, end time problem: their floating times longitude/latitude Bad, not actually used Country code Good, but what about multi-timezone countries City OK, but it was entered as free text 4

Example Feed { quot;venue_state_namequot;:quot;Englandquot;, quot;venue_country_codequot;:quot;ukquot;, quot;usernamequot;:quot;adactioquot;, quot;venue_zipquot;:quot;SW1P 3NZquot;, quot;tagsquot;:quot;quot;, quot;statusquot;:quot;watchquot;, quot;metro_idquot;:quot;49quot;, quot;end_timequot;:quot;17:00:00quot;, quot;venue_idquot;:quot;69299quot;, quot;venue_state_codequot;:quot;londonquot;, quot;end_datequot;:quot;2008-09-16quot;, quot;latitudequot;:quot;quot;, quot;venue_phonequot;:quot;020 7390 1590quot;, quot;personalquot;:quot;0quot;, quot;user_idquot;:quot;81213quot;, quot;idquot;:quot;449191quot;, quot;venue_addressquot;:quot;Dean's Yard, quot;start_datequot;:quot;2008-09-15quot;, Westminsterquot;, quot;geocoding_ambiguousquot;:quot;quot;, quot;venue_namequot;:quot;Church House ... quot;, quot;venue_cityquot;:quot;Londonquot;, quot;venue_state_idquot;:quot;59quot;, quot;longitudequot;:quot;quot;, quot;venue_country_idquot;:quot;6quot;, quot;venue_country_namequot;:quot;United Kingdomquot;, quot;venue_urlquot;:quot;http://url/quot;, quot;namequot;:quot;@media Ajaxquot;, quot;titlequot;:quot;quot; quot;start_timequot;:quot;09:00:00quot;, }, quot;geocoding_precisionquot;:quot;quot;, quot;descriptionquot;:quot;After a hugely successful, ....quot;, 5

Finding the timezone Couple of providers with APIs Geonames Google Yahoo Location Extractor 6

Converting to a Timezone Good set of web service methods Documentation helpful Various response formats 7

Process Extract City and Country from Upcoming Feed SEARCH for city and country code on GeoNames Extract Longitude and Latitude from GeoNames response RETRIEVE timezone from GeoNames Inject into Upcoming feed 8

Considerations Time of response - caching? Frequency of change, how do we keep this up to date? 9

Step up Yahoo Pipes 10

Further Info upcomingusergetwatchlist Thanks also to Kent Brewster,Yahoo Inc for Pipes help 11

Add a comment

Related presentations

Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...

In this presentation we will describe our experience developing with a highly dyna...

Presentation to the LITA Forum 7th November 2014 Albuquerque, NM

Un recorrido por los cambios que nos generará el wearabletech en el futuro

Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...

Microsoft finally joins the smartwatch and fitness tracker game by introducing the...

Related pages

IK Facebook Plugin — WordPress Plugins

... or to embed the custom Facebook Feed widget into a ... Feed! Adding a Facebook Photo ... custom Facebook Feed widget. The IK Facebook Plugin allows ...
Read more

The World Clock — Worldwide -

More Information. About the World Clock; Commonly reported problems with the World Clock; Daylight Saving time; Time Zone Abbreviations; Time Zone News
Read more

Upcoming Events — Support —

Upcoming Events is a widget and a shortcode. ... Support. Shortcodes, ... Copy your iCalendar Feed URL as prompted into the widget and save;
Read more

Add an RSS Feed - Outlook

Add an RSS Feed. Really Simple Syndication (RSS) is a way for content publishers to make news, blogs, and other content available to subscribers.
Read more

Adding RSS feeds to Outlook from IE -

Adding RSS feeds to Outlook from IE. I am trying to set up the RSS feeds reader of Outlook. When I click on the RSS icon of a web ... Adding a feed manually .
Read more

Google Calendar Widget — WordPress Plugins

Google Calendar Widget. This plugin installs a sidebar widget that can show the upcoming events from a Google Calendar feed. ... that may be dragged into ...
Read more

Using Google News RSS Feeds - Welcome to the Google Help ...

Using RSS feeds of Google News, ... You can enter this address into your feed reader of choice. Can I incorporate a Google News Feed on my site?
Read more

Free Ways to Add a Calendar to Your Website

... adding a calendar to your website is ... tools for adding a working calendar into ... loop by adding a badge that shows upcoming events ...
Read more

Desktop gadgets (overview)

Desktop gadgets (overview) Applies to Windows 7. ... time zone, and appearance). You ... Feed Headlines can display frequently updated headlines from a ...
Read more

Activity Feed - Social Plugins - Documentation - Facebook ...

Activity Feed. With the release of Graph API v2.3, the Activity Feed plugin is deprecated. The Activity feed displays the most interesting, ...
Read more