I am trying to find a free API that provides lunar phase predictions including moonrise and moonset. My PHP based tide tables application is using NOAA for tide and weather data, but it doesn’t seem like they offer any lunar data. Does Google have this built into one of their API’s that I just don’t know about?
On the off chance that nobody knows of a free API (preferably government provided), does anybody know of a simple way to calculate this? I’ve seen this post, but the solutions are attempting to calculate them with a high degree of precision. If it’s off by a little bit, it’s fine.
You can calculate it yourself easily enough
Taken from wxforums.net, posting by “Cristian”