homestar-metar

0.0.7 • Public • Published

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.

Models

MetarObservation

See MetarObservation.iotql

Readme

Keywords

none

Package Sidebar

Install

npm i homestar-metar

Homepage

homestar.io

Weekly Downloads

1

Version

0.0.7

License

Apache-2.0

Last publish

Collaborators

  • dpjanes