Posts: 1764
Threads: 6
Joined: Jul 2015
Reputation:
117
24.01.2020, 07:19
(This post was last modified: 24.01.2020, 07:26 by Erwin van der Zwart.)
Hi,
i don’t think this works as prev is not existing on first run, so storage will never be created..
i think you need to change it into this “prev = storage.get(key) or 0”
BR,
Erwin
Posts: 7758
Threads: 42
Joined: Jun 2015
Reputation:
447
Thanks, I've edited my post with corrected code
Posts: 133
Threads: 19
Joined: Apr 2018
Reputation:
0
31.08.2020, 17:29
(This post was last modified: 31.08.2020, 17:30 by manos@dynamitec.)
Hello Admin,
I would like to ask if there is a way to have a trend log of the TP load. I have tested this script but in my case didn't update the value of the virtual object (scale datatype).
I am using firmware 20180828.
Thank you in advance
Posts: 303
Threads: 87
Joined: May 2017
Reputation:
2
Anyone got this working?
Tried it but no new values are written to the virtual object.