Sunrise & sunset

Found this script and adopted a bit for hah when was looking for a way to schedule Xmas lights on/off events.

Calling as /etc/plugboard/suntimes.  Added txt extension on attached and EOL is in Windows format.
Edit for your geographical location, from applet can be called e.g. like below:

Member for

15 years 10 months

g7pkf

14 years 12 months ago

But in the intrests of energy saving would it not just be better to start an on at sunset for X minutes? who wants xmass lights on for the whole night? a few hours would suffice and be "greener"

 

Dean

Member for

16 years 10 months

brett

14 years 12 months ago

Aivo,

You posted just as I uploaded a beta with the makings of a built in scheduling engine you should give this a go.  Its' mucho easier than bolting an applet.

Brett

Member for

15 years 8 months

aivo

14 years 12 months ago

Dean,

This was just to show how I would like to use scheduler :) .. our green setup would look smth like

"Weekdays at sunset x on y on"  -- on for evening (ca 15:40 today)
"Weekdays at 2200 x off y off"
"Weekends at 0630 x on y on"    -- on for morning (off ca 9:15 today)
"Weekends at sunrise x off y off"

Regards,
Aivo

suntimes.txt (2.18 KB)