Page 1 of 1

change counter incremental and counterToday

Posted: Wednesday 25 March 2020 13:00
by Gravityz
i know i can change an incremental counter by using .updateCounter

this however does not update with a new amount but increments(not a big deal because i can use - to substract value)
however when i do this the amount also get's incremented on the today usage.

is there a way to update the counter with a new value without updating the counter today(or to substract the today usage without affecting the total count)

the reason i want this is i have a incremental counter with an offset and i want to 0 the offset but want to keep the total on the meter
thanks

Re: change counter incremental and counterToday  [Solved]

Posted: Wednesday 25 March 2020 13:44
by waaren
Gravityz wrote: Wednesday 25 March 2020 13:00 i know i can change an incremental counter by using .updateCounter
is there a way to update the counter with a new value without updating the counter today(or to substract the today usage without affecting the total count)
Not possible. The Counter record only contains the total value and the daily total is a computed number (value now - value at 00:00)

Re: change counter incremental and counterToday

Posted: Wednesday 25 March 2020 13:53
by Gravityz
ok. thanks. what i will do is raise the counter by let's say 200 and substract this value from the offset. have to spread this out over multiple days(to avoid daily peaks) until the offset hits zero