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 install --save airrohr-prediction
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
}
}
- feinstaub-bot - Twitter bot that monitors fine dust pollution for a given site or area via airrohr sensors.
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.