Tom Igoe

Sun-Moon Clock

This clock uses your latitude and longitude, obtained from your computer trough the browser, to calculate the sun’s and moon’s position (azimuth) relative to you. It then draws them in their proper positions for the current date and time, and your location. North is shown at the top of the clock.

The source code can be found in the clock club repository.

This clock relies on the suncalc javascript library.