I think I found some appropriate equations to calculate the position of the moon (Azimuth +- 0.5° and Elevation +- 1°). I have to test them in further detail but it looks like a good compromise between accuracy and simplicity.
One goal is to keep the number of calculations low for a better performance on mobile devices.

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml