Last modified: 15.10.2019

Started: 15.10.2019

finished

Calculations for sunrise and sunset at a given date and location.

In this project we use javascript to calculate the time when a sun rises and sets on a given date and location.


Result

Sunrise
06:31
Solar noon
13:30:11
Sunset
20:32

I used these calculations to add a this feature request to VoffCon. The feature request is about executing a command based on, if the sun is rising or setting. For example, this could be used to turn on out-door lights when it gets dark and then turning them off again when it gets bright.