What are the HAT Data Plugs?


#1

Data Plugs are bits of software allowing to retrieve individual’s data (well basically our personal data) from data sources on internet (e.g. Facebook) into the HAT. Some already existing HAT Data Plugs:

Facebook Data Plug

Facebook Data Plug uses the Graph API to get data out of Facebook’s platform to the individual’s HAT. The Graph API is a “social graph”, which represents all data on Facebook as:

  • nodes, which are Things like, for example, a user or a page;
  • fields, which contain info about the Things like, for example, user’s name or birthday;
  • edges, which connect the Things like, for example, comments on user’s photos

Currently supported nodes within the HAT are: Facebook user’s profile (such as name, age, etc), posts and events. Future development will feature more updates from a user’s such as likes, check-ins, travels and other connect services like Spotify. More information about Facebook Graph API can be found here.

iOS Location Data Plug

https://github.com/Hub-of-all-Things/hat-mobile

Location Data Plug is is a built-in functionality of Rumpel to record you location in longitude / latitude.
Location Data Plug uses Apple’s Core Location Framework to determine the current latitude and longitude of a device, e.g. mobile phone. The Core Location Framework can be used to configure and schedule the delivery of location and heading events or define geographic regions and monitor when the user crosses their boundaries. For more information please visit this.

Dropbox Photo Data Plug

Dropbox Data Plug currently uses Dropbox API to create metalinks to individual’s photos on Dropbox. This allows user to view his/her photos directly from the HAT, while the photos themselves are kept in the Dropbox storage. More information about the Dropbox API can be found here.

iCal Calendar Data Plug

Calendar Data Plug employs iCalendar file format allowing individuals to collect their calendar information back into their hats. iCalendar Data synchronisation within the HAT is initialised by entering user’s ics calendar url into the form and submitting it. It depends on your calendar provider how you can obtain the URL. For example, for Google calendar visit this. Currently iCal Celendar Data Plug extracts a simple set of individual’s calendar event information, using ical.js (https://github.com/mozilla-comm/ical.js) library: event name, event start and end dates, “last updated” timestamp, event location, attendees, summary, description and organiser. For more information about iCalendar, please visit this.

Weather Data Plug

The weather data plug is a Rumpel built-in function. It collects weather conditions at individual’s live location or a pre-defined location. It calls weather services from Weather Underground. Weather underground API documentation can be found here.