This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Reset counter object each month
#6
(26.04.2020, 09:54)admin Wrote: Add this at the start of scheduled reset script (before 2/2/2 value is set to 0):
Code:
grp.write('3/3/3', grp.getvalue('2/2/2'))

Thank you very much Admin, it works.

In my opinion after the reset, this script is missing a counter status send. The monthly meter needs a first value to start the account. If it is not sent, a small value is lost in consumption.

After the reset, I added this script.

Code:
grp.write('1/1/1', grp.getvalue('1/1/1'))
Reply


Messages In This Thread
Reset counter object each month - by Mr.D - 12.01.2018, 19:32
RE: Reset counter object each month - by davidchispas - 28.04.2020, 08:01

Forum Jump: