airrohr-predictiondeprecated

Airrohr sensor lower boundary predictions

Usage no npm install needed!

<script type="module">
  import airrohrPrediction from 'https://cdn.skypack.dev/airrohr-prediction';
</script>

README

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.