suncalc-php
suncalc-php copied to clipboard
PHP library for basic astronomical computation (sun and moon rise and set, moon phases, …)
If I understand correctly the cross-over interval uses 2 hour intervals. That's very coarse for observation nights. I tried a tighter interval, but it seems there are other values in...
Hello @gregseth , thank you for your great work. I'm testing your script but I have strange problem. If I try to calculate sunTimes with: datetime : 2019-02-09 00:01:00 latitude:...
[169426] => Array ( [time] => 2021-03-28 15:46:00 [phase] => 0.4860146481117 ) [169427] => Array ( [time] => 2021-03-28 15:47:00 [phase] => 0.48602569387438 ) [169428] => Array ( [time] =>...
error
Hi! I have a site with every location in the world and I use suncalc to display sunrise/sunset moonrise/moonset. But randomly, several locations every day will get a fatal error...
When I made chart of moon position during the day, I noticed that sometimes there are incorrect altitude values. For example for lat 59.95, lon 30.32 and date 2017/10/15: ```...
Now in doc there is: > ... an object with the following indexes: > rise: moonrise time as DateTime > set: moonset time as DateTime But, when i checked: ```...
States: print_r(getMoonPosition(new DateTime(), 48.85, 2.35)); Should be: print_r($test->getMoonPosition(new DateTime(), 48.85, 2.35));
Hi, I'm getting a NaN for $Jset in getSunTimes for night/nightEnd. Location `$sc = new SunCalc(new DateTime(), 53, 9);` Thanks again for this library! Jan > PHP 7.1.4 (cli) (built:...