DEV Community

Discussion on: I'm an open source enthusiast at Mapbox, the creator of Leaflet and 40+ other JS libraries, and a rock musician. AMA!

Collapse
zeke_4 profile image
Zeke Sikelianos

You created the SunCalc library for calculating sun position, sunlight phases (times for sunrise, sunset, dusk, etc.), moon position and lunar phase for the given location and time. How does it work and what are some interesting ways that people have used it over the years?

Collapse
stdavis profile image
Scott Davis

This is a cool use of that project: atom.io/packages/sunset

Collapse
mourner profile image
Vladimir Agafonkin Ask Me Anything

The library came out of a website, suncalc.net, which I built more than 8 years ago and pretty much haven't updated since (you can tell by the fact that it still uses Google Maps :) — and I received so many wonderful e-mails about it over the years.

I got letters from imams who used it for optimal prayer times, from a Tibet monk who used it to plan lunches, from air conditioner installers, from people who used it when choosing a home / apartment to buy, and from many enthusiastic gardeners.

But the most endearing e-mail I got related to it is this one, and it warms my heart with joy and happiness:


❤️❤️❤️

Collapse
apps4apple profile image
Jeff Maynard

I use suncalc to work out Nautical Twilight for my app River Thames Guide (boats and ships registered in the UK should strike their ensign at 2100 or Nautical Twilight whichever is earlier).
More at riverthamesguide.net