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.

Energy calculation and data saving
#3
(29.04.2021, 07:57)admin Wrote: Looks good to me. It can also be done without the third script by adding this to the end of the second script that runs every hour at 59 minutes:
Code:
-- run only on the last hour of the day
hour = os.date('*t').hour
if hour == 23 then
  total = energia_autoconsumata + grp.getvalue('32/1/16')
  grp.write('32/1/16', total)
end

Thank you. Further to save the data do you suggest to NOT use the "storage"?

Group address is data retain in any case?

Thanks.
Reply


Messages In This Thread
RE: Energy calculation and data saving - by Domoticatorino - 29.04.2021, 08:32

Forum Jump: