Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daily average is reset at midnight #179

Open
KaiFleuchaus opened this issue Apr 15, 2023 · 0 comments
Open

Daily average is reset at midnight #179

KaiFleuchaus opened this issue Apr 15, 2023 · 0 comments
Labels
enhancement ⬆️ New feature or request

Comments

@KaiFleuchaus
Copy link

KaiFleuchaus commented Apr 15, 2023

**Project description
I use this adapter to calculate the average gas price. For this I read in the gas price from boerse.de by using the parser - adapter. To get a time weighted value, a variable is updated every 10 seconds by a cyclic running JS - script. This clocked variable is processed by the statistics adapter as shown in Figure 1.
For documentation purposes, the "clocked gas price" (gray line) and the average value (green line) are stored in a database.
Between 20:00 o'clock and 06:00 o'clock there is no change in the gas price, because the exchange is closed here.

**Describe the new idea: **
Always at midnight the daily average is reset. Therefore my question is, is it possible to implement an additional function, which makes it possible to output the average of the past 24h.

Versions:

  • Adapter version: v2.2.0
  • JS-Controller version:4.0.23
  • Node version: 16.19.1
  • Operating system: Debian GNU/Linux 11 (bullseye)

grafik

grafik

Please excuse my message, if there is no posibility and I have not understood the documentation correctly.

@KaiFleuchaus KaiFleuchaus changed the title Wrong daily average Daily average is reset at midnight Apr 20, 2023
@stale stale bot added the wontfix label Aug 10, 2023
@mcm1957 mcm1957 added enhancement ⬆️ New feature or request and removed wontfix labels Aug 10, 2023
@iobroker-community-adapters iobroker-community-adapters deleted a comment from stale bot Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ⬆️ New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants