suncalc icon indicating copy to clipboard operation
suncalc copied to clipboard

A tiny JavaScript library for calculating sun/moon positions and phases.

Results 71 suncalc issues
Sort by recently updated
recently updated
newest added

There is a list of possible properties but nothing gives the order. I assembled an example for some of them, I think it'd be useful to complete it and add...

`SunCalc.getTimes(, ...)` returns the date and time of various events on the given date (day). But some of these events might have passed already. Isn't it a more common use...

As stated in the header the output for these 2 results is undefined as you never set them. Add something like in .getMoonTimes result[alwaysUp] = false; result[alwaysDown] = false; To...

Nadir should be in the future not in past! Please fix it!

I was doing some investigation of sunsets and I noticed something strange: > SunCalc.getTimes(new Date(2017, 6, 11), 40.7128, -74.0060).sunset Mon Jul 10 2017 20:29:46 GMT-0400 (EDT) > SunCalc.getTimes(new Date(2017, 6,...

bug

`SunCalc.getMoonIllumination(time).phase` gets really squirrely [as phase approaches 0.5](https://dl2.pushbulletusercontent.com/c1NbxkAFgmLEjvI02ZYpEQt2jaNaD4GY/index.html) (slow page load warning). also it's a couple hours off here and there. Can this be fixed?

For working with regions that have midnight sun and polar night, it would be nice to have two properties **alwaysUp** and **alwaysDown** in the result object of **SunCalc.getTimes()**. (The property...

feature
sun

Is it possible to get date and time of specific phase for given coordinates, month and year? The goal is to return exact time when phase is expected (full moon,...

feature
moon

please add solstices and equinoxes (and maybe perihelion and aphelion too) in any case thank you for sharing your code

feature
sun

I've run into an issue; For instance, at latitude 66.017 by longitude 29.136 (Northern Finland) at unix timestamp 1434447174, the sun rises on June 11th and does not set at...

feature
sun