Logic Machine Forum
Restore value on power loss - 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: Restore value on power loss (/showthread.php?tid=5227)



Restore value on power loss - djaval - 02.02.2024

Hi!

Please advice how to save some values to memory, to be able to restore them after power-loss and reboot?
Does values in storage saved? How to sync storage to disk?


RE: Restore value on power loss - admin - 02.02.2024

Storage and main database are saved to the SD card every 30 minutes. Normal reboot via UI performs saving before the system is restarted. If a power loss happens then the latest values might be lost. You should install a UPS if there are frequent power outages.


RE: Restore value on power loss - djaval - 02.02.2024

(02.02.2024, 07:06)admin Wrote: Storage and main database are saved to the SD card every 30 minutes. Normal reboot via UI performs saving before the system is restarted. If a power loss happens then the latest values might be lost. You should install a UPS if there are frequent power outages.

Is there a command to manually save storage to SD card?


RE: Restore value on power loss - admin - 02.02.2024

You can do this manually from the main UI by clicking "Sync project data". Using this too often is not recommended as it can degrade the internal SD card quickly.


RE: Restore value on power loss - djaval - 28.03.2024

(02.02.2024, 10:28)admin Wrote: You can do this manually from the main UI by clicking "Sync project data". Using this too often is not recommended as it can degrade the internal SD card quickly.

Hi! Is there a way to save data via script command, not via UI?


RE: Restore value on power loss - Erwin van der Zwart - 31.03.2024

Why? The default save interval is there for a reason…