Logic Machine Forum
Schedule script at sunset/sunrise + offset - 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 script at sunset/sunrise + offset (/showthread.php?tid=5721)



Schedule script at sunset/sunrise + offset - phil - 05.11.2024

I've noticed various threads referring to adding an event to the scheduler but I can't figure out where to do this Sad

I want to run a script to turn on/off lights at specific time intervals offset to sunset or sunrise.

Found this picture on the forum (solar noon thread):
[Image: attachment.php?aid=437]

Which is probably exactly what I need but I have no idea where this is to be configured Sad

If I try to add a scheduler it will just ask for object/active/scheduler on-off object/name/category/start & end data....
If I try to add a scheduled script it requires minutes/hours/day of the month/etc.

If I chose 'Schedulers' on the home screen I only get a tab for 'Holidays'.

Would someone be able to point me in the right direction?


RE: Schedule script at sunset/sunrise + offset - Novodk - 05.11.2024

Schedulers -> Add schedulers, fill in "Object" and "Name", click save.
Then click the "event" button, click "Add event" and in there you can specify when and what the "Object" needs to do.


RE: Schedule script at sunset/sunrise + offset - CristianAgata - 05.11.2024

Hi Phil
First add scheduled 
Second add event
Third fill the event as you need . If you want sunrise or sunset click on the drop down menu where you see specific hour.
Best regards Cristian


RE: Schedule script at sunset/sunrise + offset - phil - 05.11.2024

(05.11.2024, 20:24)Novodk Wrote: Schedulers -> Add schedulers, fill in "Object" and "Name", click save.
Then click the "event" button, click "Add event" and in there you can specify when and what the "Object" needs to do.

Thank you!


RE: Schedule script at sunset/sunrise + offset - phil - 06.11.2024

What location (longitude/latitude) does the LM use to calculate sunrise/sunset? I don't remember setting the LM location anywhere and it is not connected to the internet so it can't use that either...


RE: Schedule script at sunset/sunrise + offset - admin - 06.11.2024

Coordinates and timezone are set Utilities > Date & time. It's recommended for LM to have internet connection for clock synchronization.


RE: Schedule script at sunset/sunrise + offset - phil - 07.11.2024

(06.11.2024, 07:32)admin Wrote: Coordinates and timezone are set Utilities > Date & time. It's recommended for LM to have internet connection for clock synchronization.

Thank you! I overlooked that Sad