Black-Thunder / ioBroker.statistics

some statistics for ioBroker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logo

ioBroker.statistics

Number of Installations Number of Installations NPM version Downloads Build Status

NPM

Description

This adapter will make the configuration of statistics more 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 frame
  • statistics.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

Settings

  • specify the relevant groups in the instance configuration page (admin => instances => statistics config)
  • specify the configuration in the settings of the state (admin => objects)

Changelog

1.0.0 (2020-05-01)

  • (bluefox) Caught error if structure is invalid
  • (bluefox) Added sentry
  • adapter.getObjectView -> controller > 2.0

0.2.3 (2020-01-02)

  • (HIRSCH-DE) bugfix main.js
  • (foxthefox) delete messagehandler

0.2.2 (2019-06-29)

  • (foxthefox) adapter logs a warning when invalid values arrive and cancels further processing

0.2.1 (2019-06-15)

  • (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

0.2.0 (2019-01-08)

  • (foxthefox) compact mode

0.1.4 (2019-01-07)

  • (foxthefox) license added in io-package.json
  • (foxthefox) ReadMe updated
  • (foxthefox) type = misc-data

0.1.3 (2019-01-06)

  • first npm release
  • (foxthefox) german doc added
  • (foxthefox) error corrections
  • (foxthefox) travis testing corrections

0.1.2 (2018-09-08)

  • (bluefox) total refactoring

0.0.3

  • admin3 implemented
  • complete rewrite to have configuration through the settings of the individual states instead in admin page

0.0.2

  • setup running

0.0.1

  • initial release

License

The MIT License (MIT)

Copyright (c) 2018-2020 foxthefox foxthefox@wysiwis.net,

Copyright (c) 2018-2020 bluefox dogafox@gmail.com

About

some statistics for ioBroker

License:MIT License


Languages

Language:JavaScript 78.6%Language:HTML 21.4%