resources for the InMenlo hub

For everyone

iCalendar (ICS) feeds

When an elmcity hub has been tagged well, you can use tags to create iCalendar views that you can subscribe to in any calendar program. Sample URLs that you can subscribe to Google Calendar or Outlook or Apple iCal or Hotmail Calendar or another calendar client:

library in Virginia Beach (http://elmcity.cloudapp.net/services/vbcal/ics?view=library)

music in Seattle (http://elmcity.cloudapp.net/services/seattleopencalendar/ics?view=music)

frisbee in Ann Arbor (http://elmcity.cloudapp.net/services/a2cal/ics?view=frisbee)

environment in Berkeley (http://elmcity.cloudapp.net/services/berkeley/ics?view=environment)

books in Falls Church (http://elmcity.cloudapp.net/services/fallschurchcals/ics?view=books)

For curators

View hub settings and feeds

URL: /services/InMenlo/metadata

Edit hub settings and feeds

To use these links, first visit the home page and authenticate using the Twitter or Facebook or Gmail or Windows Live account linked to your elmcity hub.

Hub URL: /services/InMenlo/get_editable_metadata?flavor=metadata

Feeds URL: /services/InMenlo/get_editable_metadata?flavor=feeds

View hub stats

URL: /services/InMenlo/stats

A report showing how many events were loaded from your various sources on the last run of the aggregator.

View feed processing results

URL: results

A report showing details about successful or unsuccessful processing of feeds.

For webmasters

HTML

URL for events in HTML: /services/InMenlo/html

This is the default HTML rendering for your hub. If you want to use it as is, you can include it in one of your pages via an IFRAME like so:

Code:

<iframe src="http://elmcity.cloudapp.net/services/InMenlo/html" style="border-width:thin;border-style:solid;width:500px;height:400px"></iframe>

The default rendering is controlled by a default template and CSS file. If you want to change the default rendering, you can swap in your own versions of these.

Today only in HTML (IFRAME)

URL for today's events in HTML: /services/InMenlo/today_as_html

Code: <iframe width="70%" height="300" src="/services/InMenlo/today_as_html"></iframe>

Behavior:

Today only in HTML (JavaScript)

Today only in HTML (JavaScript): /services/InMenlo/jswidget

Code:

<script src="/services/InMenlo/jswidget"></script>

Behavior:

JSON

URL for events in JSON: /services/InMenlo/json

You can use the JSONP mechanism, as shown in the following examples from Keene, NH:

http://elmcity.cloudapp.net/services/elmcity/json?jsonp=music&count=5&view=music

http://elmcity.cloudapp.net/services/elmcity/json?jsonp=government&count=5&view=government

http://elmcity.cloudapp.net/services/elmcity/json?jsonp=recreation&count=5&view=recreation

View the source of this page for JavaScript code that produces the following behavior:

keene: music

keene: government

keene: recreation

RSS

URL for events in RSS: /services/InMenlo/rss

Among other uses, this format enables sites like WordPress.com, which don't allow the JavaScript tricks needed to include other formats, but can show RSS feeds, to display events. See for example blog.jonudell.net, where a WordPress RSS widget is displaying upcoming music events in Keene, NH (at bottom right of blog homepage). The URL used by the widget is http://elmcity.cloudapp.net/services/elmcity/rss?view=music&count=10.

ICS

URL for events in ICS (iCalendar): /services/InMenlo/ics

Here's an example of how to publish using Google Calendar, as seen on the InMenlo site.

Code:

<iframe name="ics" scrolling="no" height="300" frameborder="0" width="500" style="border-width: 0pt;" src="http://www.google.com/calendar/hosted/inmenlo.com/embed?showTitle=0&showCalendars=0&mode=AGENDA&height=300&wkst=1&bgcolor=%23FFFFFF&src=vj2cb6p3fq5jidup23rfu8vnor7472d2%40import.calendar.google.com&color=%23AB8B00&ctz=America%2FLos_Angeles"></iframe>

Behavior:

XML

URL: /services/InMenlo/xml

Your events in XML.