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)
URL: /services/uvashanti/metadata
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/uvashanti/get_editable_metadata?flavor=metadata
Feeds URL: /services/uvashanti/get_editable_metadata?flavor=feeds
URL: /services/uvashanti/stats
A report showing how many events were loaded from your various sources on the last run of the aggregator.
URL: results
A report showing details about successful or unsuccessful processing of feeds.
URL for events in HTML: /services/uvashanti/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/uvashanti/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.
URL for today's events in HTML: /services/uvashanti/today_as_html
Code: <iframe width="70%" height="300" src="/services/uvashanti/today_as_html"></iframe>
Behavior:
Today only in HTML (JavaScript): /services/uvashanti/jswidget
Code:
<script src="/services/uvashanti/jswidget"></script>
Behavior:
URL for events in JSON: /services/uvashanti/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 |
URL for events in RSS: /services/uvashanti/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.
URL for events in ICS (iCalendar): /services/uvashanti/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:
Your events in XML.