This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers. For more details and for information how to disable the error reporting see Sentry-Plugin Documentation! Sentry reporting is used starting with js-controller 3.0.
This adapter will make the configuration of statistics easier.
The adapter only reacts on state changes (state.ack=true), not on commands!
choose from the following settings:
- count impulses or on/off changes (Only for binary values and positive edge)
- calculate costs from the counted values (Only for binary values)
- how long was status true/ON and how long false/OFF (Only for binary values)
- delta between logged analogue values (Only for analog values)
- daily max, min and average (Not for delta calculations)
- min/max over the year
- counts within 5 min and daily max, min and average of it (Not for delta calculations)
- sum up of grouped values
The adapter subscribes to the configured objects and creates his own states in the statistics tree.
2 separate trees are created:
statistics.0.save
-> final values of the time framestatistics.0.temp
-> temporary values up to the moment of transfer to save, then temp starts again
The structure of the state is: statistics.0.{save|temp}.{kind of stat}.{original observed state}.{state of statistical value}
A german HowTo doc is available here: howto_de
- specify the relevant groups in the instance configuration page (admin => instances => statistics config)
- specify the configuration in the settings of the state (admin => objects)
- (Apollon77) prevent some crash cases
- (bluefox) Removed the warnings for js-controller 3.x
- (Apollon77) prepare for js-controller 3.3
- (Apollon77) make sure all tasks are processed to prevent missing objects
- (bluefox) added the support of Admin5
- (foxthefox) changed the state change to BOTH positive and negative edges, hence it causes a lot of log entries
- (Apollon77) fix from sentry crash reports
- (foxthefox) try catch around the cronjobs
- (Black-Thunder) Precision in rounding set to 4
- (bluefox) Caught error if structure is invalid
- (bluefox) Added sentry
- adapter.getObjectView -> controller > 2.0
- (HIRSCH-DE) bugfix main.js
- (foxthefox) delete messagehandler
- (foxthefox) adapter logs a warning when invalid values arrive and cancels further processing
- (foxthefox) correction, timecount value was milliseconds instead seconds
- (foxthefox) other calculations with 2 decimal places after comma
- (foxthefox) min/max for day/week/month/quarter/year
- (foxthefox) set of daily min/max starting point from actual value
- (foxthefox) fixing the PR with dayMin 0 at 00:00
- (foxthefox) improvement for timecount when receiving status updates and no real status change
- (foxthefox) compact mode
- (foxthefox) license added in io-package.json
- (foxthefox) ReadMe updated
- (foxthefox) type = misc-data
- first npm release
- (foxthefox) german doc added
- (foxthefox) error corrections
- (foxthefox) travis testing corrections
- (bluefox) total refactoring
- admin3 implemented
- complete rewrite to have configuration through the settings of the individual states instead in admin page
- setup running
- initial release
The MIT License (MIT)
Copyright (c) 2018-2021 foxthefox [email protected],
Copyright (c) 2018-2021 bluefox [email protected]