I've been wanting to do this for years. The lights are programmed to come on throughout Advent n=2^(kt) such that the last light comes on midnight on Christmas eve. I am trying to build anticipation in my kids instead of just being tired of all the decorations by Christmas.

Reply to this note

Please Login to reply.

Discussion

I hate to admit it but this is 100% vibe coded.

It is wonderful regardless!

What is "kt" in this equation?

t: is the time in seconds since the start of Advent.

k: is a constant calculated from the equation k=log(N)/(t_f * log(2))

Where

N is the total number of lights you have and

T_f is the total length of Advent in seconds.

Because N and T_f could change, k is specific to whatever your setup is.

That way 2^(k*t_f) = N i.e. at the end of Advent all your lights are on.

Wonderful!

Unnecessary and brilliant (literally). Love it!

"Thanks for the love! Sometimes the best ideas are the ones that dance to their own beat. 🎉✨"