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

I need the RA values but I cannot access the functions sunCoords and moonCords. Is there any idea why it isn't exported? I think the only possible way is to...

This fixes the issue #6, this is before the fix: ``` sh > s.getPosition(date,50.5,30.5).azimuth * (180/Math.PI) -143.25764539039318 ``` and after, all in degrees, because I'm unable to read radians :)...

When using this library in Seattle, WA, USA it was found that date objects with a small time (ex: 00:01:00) would be interpreted by the library as occurring the day...

Test File for Nadir in Future!

for: lat = 56; lng = 35; time=2020-10-09 00:41:00.000+03:00, sunset=2020-10-08 17:58:52.384+03:00 - sunset in Yesterday time=2020-10-09 00:42:00.000+03:00, sunset=2020-10-09 17:56:17.563+03:00 - sunset in Today

The tests do not include any variation or edge cases which allows the library to fail silently.

Thank you for great package. I needed some help on moonphase. from function suncalc.getMoonIllumination(date) i am getting values like 0.4945656646 how to map them to values you have provided in...

moon

Hello, I'm trying to use suncalc to calculate the moon data, but my moon times are always a few minutes off (5-15 minutes); phase also seems off. I seem to...

moon

I just noticed that setting the inUTC parameter in the getMoonTimes method to **true**, results to incorrect time, which leads to wrong set/rise results. As an example: `SunCalc.getMoonTimes(new Date(2020,4,13,12,16,0), 48.2026,...

Hey, @mourner ! I really wanted to thank you for creating this library! I wanted to show you my little app I created based on your Suncalc. I don't know...