Logic Machine Forum
Trend accumulate option - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Trend accumulate option (/showthread.php?tid=592)

Pages: 1 2


RE: Trend accumulate option - admin - 20.09.2024

You need to fetch values without timestamps:
Code:
day = trends.fetch('Andamento_Pioggia_Valore_Unico', datarange, 900)



RE: Trend accumulate option - fabiorusco - 20.09.2024

(20.09.2024, 11:55)admin Wrote: You need to fetch values without timestamps:
Code:
day = trends.fetch('Andamento_Pioggia_Valore_Unico', datarange, 900)

I do it, but it's nothing change. The trend is attached     :
Best regards


RE: Trend accumulate option - admin - 20.09.2024

Check Error log for any logs from your script.


RE: Trend accumulate option - fabiorusco - 20.09.2024

The error it:

Library trends:0: attempt to index field 'start' (a number value)
stack traceback:
Library trends: in function ''
Library trends: in function 'fetch'
User script:18: in main chunk


RE: Trend accumulate option - admin - 20.09.2024

You might have an outdated firmware.


RE: Trend accumulate option - fabiorusco - 20.09.2024

I updated the fw and now it works, thanks