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

Maximum sun altitude #61

Closed twam closed 2 months ago

twam commented 3 months ago

Would it be possible to add a 'maximum sun altitude of the day' as a value?

Background:

I want to plot the daily yields of my PV together with that maximum sun altitude of that day for a complete year. My first idea was to just calculate the max of the provided values for that day, but by default Grafana sets the interval of this plot to 3h – so there might be a good chance to miss the actual maximum value. Also it feels kinda wrong to generate/calculate lots of values (to be sure to have the maximum value in the data) and then just search for the maximum.

If you have a better solution instead of adding another value, I'm open to suggestions.

fetzerch commented 2 months ago

Implemented in #62. Merged via #66.