1.0.2 • Published 9 years ago
homestar-feed v1.0.2
homestar-feed
IOTDB Bridge for Atom / RSS feeds.
About
This will convert feeds into structured data.
See the samples for details how to add to your project. particularly model_*.js for "standalone" and iotdb_*.js for use in IOTDB / HomeStar projects.
Installation
Then:
$ npm install homestar-feed
Use
Get earthquakes as they happen (more or less)
const iotdb = require('iotdb')
iotdb.use("homestar-feed")
const things = iot.connect("USGSEarthquake")
things.on("istate", function(thing) {
console.log(thing.state("istate"));
});
Models
FoursquareCheckin
Note that you'll have to find your private foursquare feed here
e.g.
{
where: 'https://foursquare.com/dpjanes/checkin/54c26c61498edc51dd036731',
name: 'Earl Bales Ski and Snowboard Centre',
timestamp: '2015-01-23T15:44:33.000Z',
latitude: 43.756907292981055,
longitude: -79.40997973261516,
fresh: false
}
TWNCurrentWeather
This requires the RSS feed from http://legacyweb.theweathernetwork.com/rss/
e.g.
{
temperature: -11,
humidity: 59,
conditions: 'Clear'
}
USGSEarthquake
e.g.
{
name: 'M 0.6 - 8km S of Anza, California',
address: 'Anza, California',
timestamp: '2015-02-25T13:44:12.979Z',
latitude: 33.4801667,
longitude: -116.6638333,
elevation: -25980,
fresh: false,
magnitude: 0.6
}
1.0.2
9 years ago
0.1.19
9 years ago
0.1.18
9 years ago
0.1.17
9 years ago
0.1.16
9 years ago
0.1.15
9 years ago
0.1.14
9 years ago
0.1.13
10 years ago
0.1.12
10 years ago
0.1.11
10 years ago
0.1.10
10 years ago
0.1.9
10 years ago
0.1.8
10 years ago
0.1.7
10 years ago
0.1.6
10 years ago
0.1.5
10 years ago
0.1.4
10 years ago
0.1.3
10 years ago
0.1.2
10 years ago
0.1.1
10 years ago
0.0.7
10 years ago
0.0.6
10 years ago
0.0.5
10 years ago
0.0.4
10 years ago
0.0.3
10 years ago
0.0.2
10 years ago
0.0.1
10 years ago