Calculating Moon Rise/Set times is proving to be quite hard to do, I'm currently working through the NOAA example (long-hand) but their algorithms use degrees and not radians and there are a lot of calculations to do, my problem currently is working out what parameters need to be in degrees and radians.
I have not found a library yet.
I can now draw a moon without any images, uses Pythagoras to draw the white and black areas. Needs x,y d,m,y and hemisphere.
Openweathermap supplies time-stamps in Unix time, so I've had to add a new time function to convert that.
As I don't use a streaming JSON decoder, I can only get the first 21 hours of forecast runs out of memory on an ESP32. WU is so much easier, but I'm liking OWM the more I use it.
I have my code converted now - well just moon rise/set to add back.