Giter Site home page Giter Site logo

iobroker.statistics's Introduction

Logo

ioBroker.statistics

NPM version Downloads node-lts Libraries.io dependency status for latest release

GitHub GitHub repo size GitHub commit activity GitHub last commit GitHub issues GitHub Workflow Status

Versions

Beta Stable Installed Translation status

Statistics adapter for ioBroker (Avg, Sum, Min, Max, ...)

Installation

Please use the "adapter list" in ioBroker to install a stable version of this adapter. You can also use the CLI to install this adapter:

iobroker add statistics

Documentation

🇺🇸 Documentation

🇩🇪 Dokumentation

Credits

Sentry

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.

Changelog

WORK IN PROGRESS

NodeJS >= 18.x and js-controller >= 5 is required

2.4.0 (2023-11-03)

NodeJS 16.x is required

  • (klein0r) Show error if groups are not configured correctly
  • (klein0r) Fixed cron expressions for quarter and year
  • (klein0r) Added indicators for startup and working

2.3.1 (2023-01-11)

  • (klein0r) Added Ukrainian language

2.3.0 (2022-11-03)

NodeJS 14.5.0 is required

  • (klein0r) Added hourly, weekly, monthly, ... averages
  • (klein0r) Added promises to avoid parallel execution of tasks (lead to incorrect calculations)
  • (klein0r) Fixed init values for save/temp
  • (klein0r) Added option to enable statistics for objects via sendTo
  • (klein0r) Allow sum delta to substract values (negative delta)
  • (klein0r) Delete states when option in unchecked
  • (klein0r) Removed dayMin and dayMax from avg (use minmax for that case!)
  • (klein0r) Fix: Calculation of avg when no change of value

2.2.0 (2022-07-07)

  • (klein0r) Added absolute min and max values

2.1.1 (2022-06-16)

  • (klein0r) Fixed usage of default values for groups

License

The MIT License (MIT)

Copyright (c) 2018-2024 foxthefox [email protected], bluefox [email protected] and Matthias Kleine [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

iobroker.statistics's People

Contributors

apollon77 avatar black-thunder avatar dependabot[bot] avatar foxthefox avatar germanbluefox avatar hirsch-de avatar iggepop avatar klein0r avatar ldittmar81 avatar mcm1957 avatar schmakus avatar sneak-l8 avatar unclesamswiss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iobroker.statistics's Issues

00:00 Uhr DayMin Wert

Hallo,

für die Avg Werte wird um 0Uhr immer bei DayMin 0 eingetragen. Bei mir z.B. 0°C, 0% Luftfeuchte, obwohl diese Werte nicht real sind. Scheint immer beim Tageswechsel zu passieren. Kann man das anpassen?

adapter.objects.getObjectView is deprecated

Hello,

since I updated my ioBroker software I got the following warning in the log file during start-up of ioBroker

...
statistics.0 | 2020-05-05 21:06:51.532 | warn | (31279)  adapter.objects.getObjectView is deprecated, and will be removed in the  future. Please use adapter.getObjectView/Async. Report this to  Developer!
statistics.0 | 2020-05-05 21:06:51.497 | info | (31279) starting. Version 0.2.2 in /opt/iobroker/node_modules/iobroker.statistics, node: v12.16.3, js-controller: 3.0.20

Installed versions:
Statistics Adapter: 0.2.2
node: v12.16.3
js-controller: 3.0.20

Best regards
Feuersturm

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/foxthefox/ioBroker.statistics

  • [E605] No actual year found in copyright. Please add "Copyright (c) 2020 foxthefox [email protected]" at the end of README.md
  • [E701] No actual year found in LICENSE. Please add "Copyright (c) 2020 foxthefox [email protected]" at the start of LICENSE

Thanks,
your automatic adapter checker.

P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

No objects created

At the main settings in the configuration, I see "Default units per impulse", "Default group factor" and "timezone". Those are set to their default (1, 1, empty). At the "groups" tab I have two groups (Energy and Gas).
The instance is properly starting with this debug log entries:

statistics.0 | 2020-09-21 20:07:52.638 | debug | (4105) [INFO] yearSave status = true next event: 1 Jan 2021 00:00:00
statistics.0 | 2020-09-21 20:07:52.636 | debug | (4105) [INFO] quarterSave status = true next event: 1 Oct 2020 00:00:00
statistics.0 | 2020-09-21 20:07:52.634 | debug | (4105) [INFO] monthSave status = true next event: 1 Oct 2020 00:00:00
statistics.0 | 2020-09-21 20:07:52.628 | debug | (4105) [INFO] weekSave status = true next event: 28 Sep 2020 00:00:00
statistics.0 | 2020-09-21 20:07:52.625 | debug | (4105) [INFO] daySave status = true next event: 22 Sep 2020 00:00:00
statistics.0 | 2020-09-21 20:07:52.621 | debug | (4105) [INFO] dayTriggerTimeCount status = true next event: 21 Sep 2020 23:59:58
statistics.0 | 2020-09-21 20:07:52.602 | debug | (4105) [INFO] hourSave status = true next event: 21 Sep 2020 21:00:00
statistics.0 | 2020-09-21 20:07:52.593 | debug | (4105) [INFO] fifteenMinSave status = true next event: 21 Sep 2020 20:15:00
statistics.0 | 2020-09-21 20:07:52.589 | debug | (4105) [INFO] avg5min status = true next event: 21 Sep 2020 20:10:00
statistics.0 | 2020-09-21 20:07:52.582 | info | (4105) [INFO] statistics observes 0 values after startup
statistics.0 | 2020-09-21 20:07:52.239 | info | (4105) starting. Version 1.0.0 in /opt/iobroker/node_modules/iobroker.statistics, node: v12.17.0, js-controller: 3.1.6
statistics.0 | 2020-09-21 20:07:51.892 | debug | (4105) Plugin sentry Initialize Plugin (enabled=true)
statistics.0 | 2020-09-21 20:07:47.913 | debug | (4105) statesDB connected
statistics.0 | 2020-09-21 20:07:47.911 | debug | (4105) States connected to redis: 127.0.0.1:9000
statistics.0 | 2020-09-21 20:07:47.660 | debug | (4105) States create System PubSub Client
statistics.0 | 2020-09-21 20:07:47.634 | debug | (4105) States create User PubSub Client
statistics.0 | 2020-09-21 20:07:47.521 | debug | (4105) Redis States: Use Redis connection: 127.0.0.1:9000
statistics.0 | 2020-09-21 20:07:47.518 | debug | (4105) objectDB connected
statistics.0 | 2020-09-21 20:07:47.505 | debug | (4105) Objects connected to redis: 127.0.0.1:9001
statistics.0 | 2020-09-21 20:07:47.466 | debug | (4105) Objects client initialize lua scripts
statistics.0 | 2020-09-21 20:07:47.465 | debug | (4105) Objects create User PubSub Client
statistics.0 | 2020-09-21 20:07:47.463 | debug | (4105) Objects create System PubSub Client
statistics.0 | 2020-09-21 20:07:47.459 | debug | (4105) Objects client ready ... initialize now
statistics.0 | 2020-09-21 20:07:47.402 | debug | (4105) Redis Objects: Use Redis connection: 127.0.0.1:9001

In the object tree is no entry for "statistics.0". I was expecting there some entries where I can configure which datapoints I want to assign to the groups.
I restarted the instance, iobroker and even the raspberry but still no objects. I tested version 0.2.2 and 1.0.0 of the adapter but can't get any objects.

Is this a bug or don't I get how this is set up?

No record of own datapoints

Meine eigenen Datenpunkte werden nur Mitternacht aktualisiert.

Datenpunkte wie z.B. rpi2.0.temperature.soc_temp oder tankerkoenig.0.stations.0.e5.short werden problemlos geloggt. Bei meinen eigenen Datenpunkte wird allerdings lediglich um Mitternacht der aktuelle Wert gespeichert.

Selbst bei Änderung erscheint im Log nur das:

statistics.0 2020-07-12 22:40:01.490 debug (1405) [STATE CHANGE] stateChange => 32 [false] statistics.0 2020-07-12 22:40:01.490 debug (1405) [STATE CHANGE] ======================= javascript.0.DatenPunkte.SNMP.QNAP1_SystemTemperature ======================= statistics.0 2020-07-12 22:40:01.386 debug (1405) [STATE CHANGE] stateChange => 2 [false] statistics.0 2020-07-12 22:40:01.385 debug (1405) [STATE CHANGE] ======================= javascript.0.DatenPunkte.SNMP.QNAP1_CPU_Load ======================= statistics.0 2020-07-12 22:40:00.865 debug (1405) [STATE CHANGE] stateChange => 76.4 [false] statistics.0 2020-07-12 22:40:00.865 debug (1405) [STATE CHANGE] ======================= javascript.0.DatenPunkte.SNMP.Router_SystemTemperature ======================= statistics.0 2020-07-12 22:40:00.758 debug (1405) [STATE CHANGE] stateChange => 0 [false] statistics.0 2020-07-12 22:40:00.757 debug (1405) [STATE CHANGE] ======================= javascript.0.DatenPunkte.SNMP.Router_CPU_Load_1 =======================

Der Zähler (dayCount) bleibt auf 0.

Einstellungen: Min/Max und Average

Installierte Version 0.2.2

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/foxthefox/ioBroker.statistics

Thanks,
your automatic adapter checker.

P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

do not hide temp values

temp values show the current value to date and could be used to compare to the last save value

Is it possible 2 tariff energy group?

In Russia, for example, have 2 -4 tarif for energy. First tarif 07-00 - 23-00, second tarif 23-00 - 07-00 and 3 tarif - holidays..Is it possible create group with houres, for example?

1.0.2: "dayMax" not reset

hello
thanks for this statistic package :-)
i get data from my photovoltaik system in the form "summed value until now, for today".
so i want to use your "daily max" function to store the highest values right before midnight.

the problem is, that the values are stored (copied from temp to save) very rarely. so, settings should be correct, because it works sometimes. but most of the time not.

is it necessary that the history function is deactivated when statistics is activated, is there a problem when both are activated?

the log file only contains debug information, no errors.
after midnight it reads:
2021-01-05 00:00:03.126 - �[34mdebug�[39m: statistics.0 (15140) [SAVE VALUES] saving day values
2021-01-05 00:00:03.128 - �[34mdebug�[39m: statistics.0 (15140) [SAVE VALUES] Process temp.minmax.lg-ess-home.0.user.essinfo.common.LOAD.today_load_consumption_sum.dayMin = 0 to save.minmax.lg-ess-home.0.user.essinfo.common.LOAD.today_load_consumption_sum.dayMin
2021-01-05 00:00:03.135 - �[34mdebug�[39m: statistics.0 (15140) [SET DAILY START MINMAX] Process temp.minmax.lg-ess-home.0.user.essinfo.common.LOAD.today_load_consumption_sum.dayMin = 20.803 from temp.minmax.lg-ess-home.0.user.essinfo.common.LOAD.today_load_consumption_sum.last

but values are mostly not saved in file.

br,
gregor

Statistik Woche und Monat vertauscht

Hallo, danke fuer den tollen Adapter.. Benutze ich fuer eine Verbrauch
Statistik kw/h...
mir ist aufgefallen das der Verbrauch pro Woche groesser ist als pro Monat
was ja nicht sein kann... Ist das in den angelegten Objekten vertauscht?
screenshot_20181224_001426

error log

`

statistics.0 2019-02-14 21:48:23.415 error : message handler implemented, but messagebox not enabled. Define common.messagebox in io-package.json for adapter or delete message handler.

`

Messagebox not enabled

Hi,

i have this error message in my logs
message handler implemented, but messagebox not enabled. Define common.messagebox in io-package.json for adapter or delete message handler.

Not sure what it means, I thought I report it anyway.

adapter is restarting all the time

adapter is in a start/stop loop with following error log:

`

host.iobroker 2018-07-23 13:11:57.948 info object change system.adapter.statistics.0
host.iobroker 2018-07-23 13:11:50.142 info Restart adapter system.adapter.statistics.0 because enabled
host.iobroker 2018-07-23 13:11:50.142 error instance system.adapter.statistics.0 terminated with code 0 (OK)
Caught 2018-07-23 13:11:50.142 error by controller[0]: at tryOnImmediate (timers.js:768:5)
Caught 2018-07-23 13:11:50.142 error by controller[0]: at runCallback (timers.js:810:20)
Caught 2018-07-23 13:11:50.142 error by controller[0]: at Immediate._onImmediate (C:\ioBroker\node_modules\iobroker.js-controller\lib\adapter.js:3429:38)
Caught 2018-07-23 13:11:50.142 error by controller[0]: at Adapter.emit (events.js:214:7)
Caught 2018-07-23 13:11:50.142 error by controller[0]: at emitTwo (events.js:126:13)
Caught 2018-07-23 13:11:50.142 error by controller[0]: at Adapter. (C:\ioBroker\node_modules\iobroker.statistics\main.js:988:13)
Caught 2018-07-23 13:11:50.142 error by controller[0]: at newSumDeltaValue (C:\ioBroker\node_modules\iobroker.statistics\main.js:436:11)
Caught 2018-07-23 13:11:50.142 error by controller[0]: at Object.waterfall (C:\ioBroker\node_modules\iobroker.statistics\node_modules\async\dist\async.js:5334:5)
Caught 2018-07-23 13:11:50.142 error by controller[0]: at nextTask (C:\ioBroker\node_modules\iobroker.statistics\node_modules\async\dist\async.js:5324:14)
Caught 2018-07-23 13:11:50.142 error by controller[0]: at async.waterfall.delta (C:\ioBroker\node_modules\iobroker.statistics\main.js:439:36)
Caught 2018-07-23 13:11:50.142 error by controller[0]: TypeError: Cannot read property 'val' of undefined
statistics.0 2018-07-23 13:11:50.095 info terminating
statistics.0 2018-07-23 13:11:50.095 debug stopped yearreset
statistics.0 2018-07-23 13:11:50.095 debug stopped quarterreset
statistics.0 2018-07-23 13:11:50.095 debug stopped monthreset
statistics.0 2018-07-23 13:11:50.095 debug stopped weekreset
statistics.0 2018-07-23 13:11:50.095 debug stopped dayreset
statistics.0 2018-07-23 13:11:50.095 debug stopped yearsave
statistics.0 2018-07-23 13:11:50.095 debug stopped quartersave2
statistics.0 2018-07-23 13:11:50.095 debug stopped quartersave1
statistics.0 2018-07-23 13:11:50.095 debug stopped monthsave
statistics.0 2018-07-23 13:11:50.095 debug stopped weeksave
statistics.0 2018-07-23 13:11:50.095 debug stopped daysave
statistics.0 2018-07-23 13:11:50.095 debug stopped 5min
statistics.0 2018-07-23 13:11:50.095 info cleaned everything up...
statistics.0 2018-07-23 13:11:50.095 error at tryOnImmediate (timers.js:768:5)
statistics.0 2018-07-23 13:11:50.095 error at runCallback (timers.js:810:20)
statistics.0 2018-07-23 13:11:50.095 error at Immediate._onImmediate (C:\ioBroker\node_modules\iobroker.js-controller\lib\adapter.js:3429:38)
statistics.0 2018-07-23 13:11:50.095 error at Adapter.emit (events.js:214:7)
statistics.0 2018-07-23 13:11:50.095 error at emitTwo (events.js:126:13)
statistics.0 2018-07-23 13:11:50.095 error at Adapter. (C:\ioBroker\node_modules\iobroker.statistics\main.js:988:13)
statistics.0 2018-07-23 13:11:50.095 error at newSumDeltaValue (C:\ioBroker\node_modules\iobroker.statistics\main.js:436:11)
statistics.0 2018-07-23 13:11:50.095 error at Object.waterfall (C:\ioBroker\node_modules\iobroker.statistics\node_modules\async\dist\async.js:5334:5)
statistics.0 2018-07-23 13:11:50.095 error at nextTask (C:\ioBroker\node_modules\iobroker.statistics\node_modules\async\dist\async.js:5324:14)
statistics.0 2018-07-23 13:11:50.095 error at async.waterfall.delta (C:\ioBroker\node_modules\iobroker.statistics\main.js:439:36)
statistics.0 2018-07-23 13:11:50.095 error TypeError: Cannot read property 'val' of undefined
statistics.0 2018-07-23 13:11:50.095 error uncaught exception: Cannot read property 'val' of undefined
statistics.0 2018-07-23 13:11:50.095 info terminating
-- -- -- --
`

after restart of adapter need to reactivate recording

Everytime I restart the adapter I need to go into object view and there into adjustments and toggle "average" and press save. Otherwise the object is'nt subscribed and changes are not recorded.
use case: I need min and max of a temperature value from CCU and I've only one value subscribed.
BTW: the temp-folder confused my a bit. First I was watching day-folder and expected any change. After a while I realized the changes in temp-folder. Better to rename day-folder to "yesterday"-folder? ;-)

Update stable version in repo to 0.2.2

Think about update stable version to 0.2.2

Version: stable=0.2.0 (409 days old) => latest=0.2.2 (248 days old)
Installs: stable=839 (58.34%), latest=572 (39.78%), total=1438
Click to edit

strange values for on per day ...

On some devices (e.g. Tasmota, Yeelight) I get values for "on per day" with more than 1 mio seconds.
(1918353 sec and 1651622 sec).

strange_on-time

No calculation for precipitation values (Rain_Counter) on HmIP-SWO-PR

Hi,

I'm trying to calculate sumDelta for precipitation measurements of a Homematic HmIP-SWO-PR.
It is working fine for the the sunshine information, but not at all for precipitation (Rain_Counter).
However, settings are the same for both objects.

grafik

grafik

grafik

grafik

grafik

grafik

It is also raining for a while now and the rain counter value is increasing.

Any ideas?

BR

Statistic over time

Hallo,

es wäre schön, wenn der Adapter den Verbrauch pro Monat / Tag/Woche/ Stunde / 1/4 Stunde
korrekt berechnen würde.
z.B. Verbrauch pro Stunde 17:00:-18:00
Messwerte: 16:57 100, Messwert 17:05 105
Berechneter Wert für 17:00 ca. 103 (je nach Interpolation).
Messwerte: 17:30 110
Messwert: 18.30 130
Berechneter Wert für 18:00 120
=> Verbrauch pro h 15

Values stay in temp and never go to safe

Might well be that I make a mistake but I have the adapter up and running and I do get values in the temp folder but none in the save folder... what can I do?

reset values

I had some wrong (much too high) numbers in one of my delta calculations.

How can I change this manually or reset the whole calculation?

I mainly want to fix the temp caclulation for year, month, week.

Option to use SQL data for statistic

Do you think it is possible to use the existing SQL Data, selected like in the flot adapter.

The data is still there and does not have to be logged multiple times.
You only have to read the sql data and calculate the statistic objects.

a lot of no existing object warnings with js-controller 3.2

For example:

2021-01-21 17:50:03.834  - warn: statistics.1 (7333) State "statistics.1.temp.avg.alias.0.gas.Counter.total.last" has no existing object, this might lead to an error in future versions
2021-01-21 17:50:03.834  - warn: statistics.1 (7333) State "statistics.1.temp.avg.alias.0.gas.Counter.total.dayCount" has no existing object, this might lead to an error in future versions
2021-01-21 17:50:03.835  - warn: statistics.1 (7333) State "statistics.1.temp.avg.alias.0.gas.Counter.total.daySum" has no existing object, this might lead to an error in future versions
2021-01-21 17:50:03.836  - warn: statistics.1 (7333) State "statistics.1.temp.avg.alias.0.gas.Counter.total.dayAvg" has no existing object, this might lead to an error in future versions
2021-01-21 17:50:03.843  - warn: statistics.1 (7333) State "statistics.1.temp.avg.alias.0.gas.Counter.power.last" has no existing object, this might lead to an error in future versions
2021-01-21 17:50:03.843  - warn: statistics.1 (7333) State "statistics.1.temp.avg.alias.0.gas.Counter.power.dayCount" has no existing object, this might lead to an error in future versions
2021-01-21 17:50:03.844  - warn: statistics.1 (7333) State "statistics.1.temp.avg.alias.0.gas.Counter.power.daySum" has no existing object, this might lead to an error in future versions
2021-01-21 17:50:03.844  - warn: statistics.1 (7333) State "statistics.1.temp.avg.alias.0.gas.Counter.power.dayAvg" has no existing object, this might lead to an error in future versions

Adapter version: 1.0.2

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/foxthefox/ioBroker.statistics

Thanks,
your automatic adapter checker.

P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

AVG values are rounded to full integer

Since some time (21 Mar 2020 in my case), the AVG values of temp and save are rounded to full integer. This was not the case in the past, where comma values were calculated

Delete and new install of adapter without success.

Screenshot_2020-06-01 objects - ioBroker
.

Please check ioBroker.statistics with js-controller 2.0

Hi,

the new js-controller 2.0 will come into latest repository in the next days and we want to make sure that all adapters are working well. We already did a 2 weeks Beta test and so some adapter were aleady checked and some needed slight adjustments.

You can find more information in ioBroker/ioBroker.js-controller#482 and in the ioBroker Forum. If you have more technical questions please write in the referenced issue or in the Developer thread please. General questions are best in the genral thread.

Please update your systems to js-controller 2.0 and check your adapter.

Please close this issue once you have checked your adapter or received successfull reports from users.

Thank you very much for your support. Please contact us in the other Threads or Forum on any question.

Verify Compact mode for your adapter

We have detected that your adapter supports the compact mode. Please use the latest js-controller 2.0 and verify that everything works.

Some more information what is important to check can be found at ioBroker/ioBroker.js-controller#512

On questions please answer to the linked issue. Please close this issue after your test and add the version number that you have tested please as a comment.

Thank you for your support.

Add hourly (, weekly, monthly) averages

Hi,

would it be possible to add hourly average values as an option on top of the daily ones?
In addition, weekly, monthly and yearly could also be interesting.

In my case I would like to get averages of weather information (wind speed, temperature, humidity...) on an hourly base.

BR

Werte runden?

Beim Berechnen der Werte gibt es da noch ein paar "Ungenauigkeiten":

Von meiner Wetterstation bekomme ich z.B. die Regenmenge als Zahl mit 1 Kommastelle in 0.3er Schritten, die ich als "Zähler im Delta-Verbrauch" verarbeiten lasse.

Im temp Zweig bei den Objects wird dann aber aus 0.3 z.B. beim day Wert 0.2999999999999545 daraus.
Und im save Zweig hab ich da jetzt z.B. aktuell 33.900000000000006 stehen.

Würde es nicht Sinn machen, die Anzahl der Nachkommastellen zu begrenzen (evtl. einstellbar) und die Werte entsprechend zu runden?

Please add your adapter to ioBroker.discovery

I am an automatic service from ioBroker that searches adapters and makes suggestions.

I noticed that your adapter is not integrated in the ioBroker.discovery. Using the Discovery adapter, ioBroker can automatically find devices or suggest services to the user for installation. If possible I would live to see your adapter added there.

Some adapters have already been added and you can use them as blueprints. See: https://github.com/ioBroker/ioBroker.discovery You need to fork this project and then create a PR for your adapter to be added.

Basically the plugins can do HTTP calls, UDP discovery, MDNS, UPNP and will iterate over all devices found by IP scan and check local serial ports. If you want you can also add new discovery methods but please try to do that with at least dependencies as possible.

Then create one file under lib/adapters for your adapter to implement the detection and proposal of an instance to the user.

On questions, the other developers will support in the forum or via GitHub issues too.

If no detection is possible, simply close this issue and I won't bother you again. ;-)

Thanks,
your automatic adapter checker.

P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

1.0.1 continuously warning [STATE CHANGE] wrong value

After update from 0.2.2 to 1.0.1 I get never ending warnings in log from different devices/adapters.
statistics.0 2020-12-22 22:49:16.653 warn (2102229) [STATE CHANGE] wrong value => false on yeelight-2.0.Xiaomi-Yeelight-Bedside-Lamp2.control.power => check the other adapter where value comes from
statistics.0 2020-12-22 22:49:15.392 warn (2102229) [STATE CHANGE] wrong value => false on sonoff.0.DVES_1BB306.POWER => check the other adapter where value comes from
statistics.0 2020-12-22 22:49:11.662 warn (2102229) [STATE CHANGE] wrong value => false on sonoff.0.DVES_541E97.POWER => check the other adapter where value comes from
statistics.0 2020-12-22 22:49:07.359 warn (2102229) [STATE CHANGE] wrong value => false on sonoff.0.DVES_A513A1.POWER => check the other adapter where value comes from
statistics.0 2020-12-22 22:48:46.568 warn (2102229) [STATE CHANGE] wrong value => false on sonoff.0.DVES_BEB376.POWER => check the other adapter where value comes from

JS-Controller 3.1.6
NodeJS 12.20.0
npm 6.14.9

Adapter crash after start

The adapter crash every few seconds. I hope you can help

Statistics Version: 0.2.2
js-controller: 2.2.9
Node.js: v10.18.1
NPM: 6.13.4

2020-02-22 15:05:05.965  - error: host.iobroker Caught by controller[0]: TypeError: groups[g].indexOf is not a function
2020-02-22 15:05:05.966  - error: host.iobroker Caught by controller[0]:     at removeObject (/opt/iobroker/node_modules/iobroker.statistics/main.js:190:70)
2020-02-22 15:05:05.967  - error: host.iobroker Caught by controller[0]:     at Object.objectChange (/opt/iobroker/node_modules/iobroker.statistics/main.js:99:21)
2020-02-22 15:05:05.968  - error: host.iobroker Caught by controller[0]:     at Immediate.options.objectChange.function.setImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:1506:94)
2020-02-22 15:05:05.968  - error: host.iobroker Caught by controller[0]:     at runCallback (timers.js:705:18)
2020-02-22 15:05:05.968  - error: host.iobroker Caught by controller[0]:     at tryOnImmediate (timers.js:676:5)
2020-02-22 15:05:05.969  - error: host.iobroker Caught by controller[0]:     at processImmediate (timers.js:658:5)

sumgroup values are not written since 2.1 in 2.0 ok

Hello as soon as I have updated iobroker. Statistics from 0.2.0 to 0.2.2 my sumgroup values will not be calculated anymore.. Even when I delete all objects before restart adapter to create new objects..

Änderungen bei true / false werden nicht erkannt

Hi,

ich habe ein Objekt, dass ich mit statistics überwachen will.
Leider werden die Änderungen nicht erkannt und deshalb gibt es auch keine Auswertungen.
Kann weitere Daten zur Analyse liefern ?

Gruß

MT

2019-06-10 13_56_35-Window
2019-06-10 13_56_21-Window
2019-06-10 13_55_57-Window

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.