fetzerch / grafana-sunandmoon-datasource

SunAndMoon is a datasource plugin for Grafana that calculates the position of Sun and Moon as well as the Moon illumination. ☀️🌙🧛‍♂️
MIT License
41 stars 8 forks source link

feat: add sun maximum altitude value #62

Closed twam closed 2 months ago

twam commented 3 months ago

Idea to solve #61.

Looks like there is still a problem with local time zones.

twam commented 3 months ago

No issues with timezones :)

I first thought that the offset from midnight in the jump of the value (see screenshot) was a timezone issue, but actually the 'problem' was that midnight of my timezone at my current position does not align with the 'sun midnight' (don't know what the correct name for this is), but is shifted by ~1:18. So the output is actually correct.

image
twam commented 3 months ago

I'm using this for ~2 weeks now and it works fine:

Screenshot 2024-05-20 at 11 49 59
fetzerch commented 2 months ago

Thanks much for the contribution and sorry that it took longer for me to add it. It will be part of the next release. (I've added the commit as part of #66).

fetzerch commented 2 months ago

Plugin version 0.3.2 is now available in Grafana.