Lights on to simulate a 14 hour day


#1

I’m struggling to find a solution to my problem of simulating 14 hours of daylight with days getting shorter and then daylight savings time.

I would like a piston to turn on a switch based on

3) What is happening/not happening?
(PUT YOUR INFO HERE)

4) Post a Green Snapshot of the pistonimage
(UPLOAD YOUR IMAGE HERE)

5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

You might want to read this thread of mine… It is some crazy math, but works like a champ to determine where we are in the year based on day length.

For example, that math formula results in a very accurate number:

0 = Winter Solstice (Shortest day of the year)
50 = Both Equinoxes (12 hour day & night)
100 = Summer Solstice (Longest day of year)

Once you have that piston running, then you can use that number to determine what you want your simulated daylight to be. (IE: decide on the min & max, and let the 0-100 be a percentage)


#3

Lots to grasp, but I think I can get it . A lot of good information. Thank you!