1.0.2 • Published 7 years ago

homestar-feed v1.0.2

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
7 years ago

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

7 years ago

0.1.19

8 years ago

0.1.18

8 years ago

0.1.17

8 years ago

0.1.16

8 years ago

0.1.15

8 years ago

0.1.14

8 years ago

0.1.13

8 years ago

0.1.12

8 years ago

0.1.11

9 years ago

0.1.10

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago