Lua average temperature - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Lua average temperature (/showthread.php?tid=1690) |
Lua average temperature - Kai-Roger - 03.11.2018 Hi. I want to get the average temperature reading for the last 10 minutes before the script runs the contents and uses this value (KNX bus sends a reading every minute). This means an average of the last 10 temperature values. Is this possible to do i Lua, or is it better to get this average value by other means, and input it in the script from there? RE: Lua average temperature - admin - 03.11.2018 See this post: https://forum.logicmachine.net/showthread.php?tid=291&pid=3217#pid3217 RE: Lua average temperature - Kai-Roger - 03.11.2018 Thanks. The last script in your link works perfect |