Script for Reboot - 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: Script for Reboot (/showthread.php?tid=4702) |
Script for Reboot - palomino - 05.04.2023 Hello Daniel. Is it possible to create a script for reboot the LM? RE: Script for Reboot - forsterm - 05.04.2023 Try this: Code: os.execute('reboot') RE: Script for Reboot - Daniel - 06.04.2023 Be careful with this, if you loop controller in constant reboot, the only way out is hardware factory reset. RE: Script for Reboot - AEK - 06.04.2023 (05.04.2023, 19:09)palomino Wrote: Hello Daniel. just make backup defore implementing ths code)) RE: Script for Reboot - Dré - 08.04.2023 Is it also possible to get a notification when it restarts? RE: Script for Reboot - merel - 08.04.2023 (08.04.2023, 13:58)Dré Wrote: Is it also possible to get a notification when it restarts? Code: -- Common Function Code: -- Init Script Code: -- Sync before reboot RE: Script for Reboot - admin - 11.04.2023 You can add a notification to the init script. A short delay might be needed as internet connection might not be ready when the script starts. As for reboot via a script it should not be needed at all. If you are experiencing a bug that requires rebooting LM to fix it then let us know and we will look into it. RE: Script for Reboot - Dré - 09.08.2023 (08.04.2023, 18:13)merel Wrote:Sorry about the late reaction. It is working, but i set a delay of 5 minutes. Because when there is a full power off, my network will start up, before i sent the message. |