This package has been deprecated

Author message:

WARNING: This package is unmaintained and might be broken. If you would like to maintain it, please contact mail@juliustens.eu

airrohr-prediction

0.2.0 • Public • Published

airrohr-prediction

Predicts the next observation made by a given airrohr sensor using the lower bound of the prediction interval in order to provide a more robust threshold monitoring, e. g. in feinstaub-bot. Thanks to @dirkschumacher. Work in progress.

npm version Build Status dependency status dev dependency status license chat on gitter

Installation

npm install --save airrohr-prediction

Usage

const prediction = require('airrohr-prediction')
 
prediction(1438) // sensor ID
.then()

Returns a Promise that will resolve in something like this:

{
    "PM10": {
        "lower": 9.416389708062244,
        "upper": 12.069610291937757,
        "expected": 10.743
    },
    "PM2.5": {
        "lower": 8.471014962809521,
        "upper": 10.416985037190477,
        "expected": 9.443999999999999
    }
}

See also

  • feinstaub-bot - Twitter bot that monitors fine dust pollution for a given site or area via airrohr sensors.

Contributing

If you found a bug, want to propose a feature or feel the urge to complain about your life, feel free to visit the issues page.

Package Sidebar

Install

npm i airrohr-prediction

Weekly Downloads

1

Version

0.2.0

License

MIT

Last publish

Collaborators

  • juliuste