![]() |
Retrieving Trend Data via periods.lp - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Application Store (https://forum.logicmachine.net/forumdisplay.php?fid=11) +--- Thread: Retrieving Trend Data via periods.lp (/showthread.php?tid=6102) |
Retrieving Trend Data via periods.lp - hocine - 04.09.2025 Hello everyone, I'm currently building a custom energy monitoring application on Lm5. I’ve successfully accessed real-time values using grp.getvalue() and identified the key trends (energy, power, consumption, etc.). Now I’d like to implement period-based calculations (daily, weekly, monthly, yearly) using the periods.lp file to track energy consumption over time. My goal is to:
Questions:
RE: Retrieving Trend Data via periods.lp - Daniel - 04.09.2025 https://kb.logicmachine.net/libraries/trends/ RE: Retrieving Trend Data via periods.lp - hocine - 04.09.2025 (04.09.2025, 07:23)Daniel Wrote: https://kb.logicmachine.net/libraries/trends/ Error in ./www/apps/data/compteur4multi/libs/compteur4multi.lua at line 45: attempt to index global 'storage' (a nil value) i always have this issue and i don't understand my mistake i have this at line 45 Code: "dependencies": { RE: Retrieving Trend Data via periods.lp - Daniel - 04.09.2025 What is your full script? RE: Retrieving Trend Data via periods.lp - hocine - 04.09.2025 I have a file app.json Code: { |