homestar-metar
v0.0.7
Published
IOTDB Bridge for Atom / RSS Feeds
Downloads
9
Readme
homestar-metar
IOTDB Bridge for METAR Observations.
About
This will pull in thousands of weather observations from around the world as semantic data. It will also check every minute for updates.
Data Source
Raw Data
Data can be pulled from METAR without IOTDB adding semantic structure. See connect.js for an example.
Installation and Configuration
Then:
$ npm install -g homestar ## may require sudo
$ npm install homestar-metar
$ homestar configure homestar-metar
The configure command simply pulls down all the station metadata. There is no user interaction required
Use
Get everything
const iotdb = require("iotdb")
iotdb.use("homestar-metar")
const things = iotdb.connect("MetarObservation")
things.on("istate", function(thing) {
console.log(thing.state("istate"));
});
Get one specific station
const things = iotdb.connect("MetarObservation", {
station: "CYYZ",
})
Get set of stations
const things = iotdb.connect("MetarObservation", {
station: "C???",
})
See https://github.com/isaacs/minimatch for glob matching patterns.