You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**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)
Please excuse my message, if there is no posibility and I have not understood the documentation correctly.
The text was updated successfully, but these errors were encountered:
KaiFleuchaus
changed the title
Wrong daily average
Daily average is reset at midnight
Apr 20, 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:
Please excuse my message, if there is no posibility and I have not understood the documentation correctly.
The text was updated successfully, but these errors were encountered: