Problem runnig script - 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: Problem runnig script (/showthread.php?tid=5071) |
Problem runnig script - spoty2008 - 02.11.2023 Hello. There is a problem with script execution. I can't figure out what the reason is. Code: local http = require("socket.http") This code creates 2 scripts with the current sunrise and sunset times. I will not provide the contents of the created scripts, but if necessary I will provide them. The content is simple: turn the light group on or off. And the problem is that sometimes they just don't get done. I don't understand the reason... Entry in script: log('done') doesn't output anything to the log. Perhaps I missed something when creating the script? I checked it on 2 different LMs. The firmware on the devices is the same for 2023. I'll add. The script is allowed and when I try to launch using the button in the browser, the launch is also unsuccessful, the script simply does not execute. The only way to run it is: disable -> save -> enable -> run RE: Problem runnig script - admin - 02.11.2023 You can use scheduler events tied to sunrise/sunset instead of creating scheduled scripts. RE: Problem runnig script - spoty2008 - 02.11.2023 (02.11.2023, 13:53)admin Wrote: You can use scheduler events tied to sunrise/sunset instead of creating scheduled scripts. Yes, I can) But intresting why not working.. in future maybe i need create script dynamic and i'm will stuck |