ioBroker.history icon indicating copy to clipboard operation
ioBroker.history copied to clipboard

enhacement of paramter "ignoreNull=true"

Open afuerhoff opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. I want to read the history data (without zero values) from the current day + the last valid value before the current day. Settings: ignoreNull=true, start=current day midnight, end = current day/time Output of history adapter: History data and count (from the current day).

Then I send the next message to the history adapter with following settings: ignoreNull=true, end = current day/time, count = count + 1 Now I get not the correct data count if Null values included in the data. They are only filtered and the count is not count + 1. It is less. see also forum

Describe the solution you'd like If ignoreNull is set to true and the counter is e.g. = 10, then I want to get back 10 non-null values from the database.

Describe alternatives you've considered Best solution is, when I can add an offset count to my first getHistory message. Then I need only one call of getHistory. settings e.g.:
ignoreNull=true, start=current day midnight, end = current day/time, offset count = +1

Additional context

afuerhoff avatar Jul 03 '22 14:07 afuerhoff