pketola
pketola
ok. i got it working somehow, but there is something strange about moon's rise/set and sun's rise/set at midnight. moon's calculations are same for the day, but sun gives at...
i just re-writed my code and don't know what was wrong with the first try. into the suncalc itself i made no changes. it could however be a good idea...
greg, I had already forgotten that on some days suncalc does not give sunrise/sunset or moonrise/moonset values. a short php test program attached to show the problem. On 11.2.2017 11.03,...
greg, other example of possible errors. PLACE: Hanko 59.49 22.58 date: 2018-01-26 moon height jumps on 11:00 2018-01-26 10:30:00 sunrise:08:55, sunset:16:31, moonrise:10:02,moonset:11:59, az:-2.466588265987,alt:-0.16152694332653 2018-01-26 11:00:00 sunrise:08:55, sunset:16:31, moonrise:10:02,moonset:11:59, az:-2.3516859391622,alt:2.5144667409025 2018-01-26...