How to automate lights dynamically based on time of day?

if you are not against NodeRed you can check my project. It makes possible to create own curves of light changes during a day. You may make curves related to sun phases or hours or mix it to your liking