Logic Machine Forum
Schedule Options - 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: Schedule Options (/showthread.php?tid=2205)



Schedule Options - Carlos Padilla - 24.08.2019

Is it possible to create, delete a schedule, enable and disable it, link it to a group address, add the different events of this, set the time and days of your events and the value of the events through a script? On the other hand, is it possible to "synchronize" schedules, or at least some, from one logic machine to another, either by sending a file or via http request or via FTP or some other method? I ask this, because I have several Logic machines and the idea is that the person in charge of managing the visualization when setting the schedule in one of the logic machines, is internally sending it to others and so the person does not have to enter to each logic machine to configure the same schedule that I already believe in the first logic machine. It should be clarified that each logic machine has the same group addresses with their respective filter tables. Thank you and I am attentive to your comments.


RE: Schedule Options - Thomas - 26.08.2019

Hello
Please at least schedulers would be great.
Thank you


RE: Schedule Options - Erwin van der Zwart - 26.08.2019

Hi,

Scheduler data is inside the DB and can easily be changed by SQL commands, there are many samples for this posted in the past.

For exchanging scheduler data between LM’s you could create a LP file that request the scheduler data from the DB and send a JSON set to the other LM and with small script you can add it to the DB of the second controller.

BR,

Erwin


RE: Schedule Options - Daniel - 27.08.2019

Hi
Here is example for Erwin's proposal
https://forum.logicmachine.net/showthread.php?tid=1679&pid=10348#pid10348
BR


RE: Schedule Options - Carlos Padilla - 02.09.2019

Thank you for your answers, I have been somewhat busy, but when I have time, I will do the tests and comment on it. Thank you.


RE: Schedule Options - Carlos Padilla - 09.06.2020

I was reviewing the script and it is very functional and useful and it will help me in several things. On the other hand, is it possible that only some schedules are synchronized and not all? In addition to the above, is it possible that by code, you can create, modify and delete schedules?