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
42 stars 8 forks source link

Unable to configure via provisioning due to nested jsonData #11

Closed Xaroth closed 5 years ago

Xaroth commented 5 years ago

as per https://github.com/grafana/grafana/issues/11537 , since this datasource uses a nested jsonData scheme (position.latitude, position.longitude), it is not possible to configure this via the provisioning mechanics ( http://docs.grafana.org/administration/provisioning/ ).

Would it be possible to 'work around' this by allowing jsonData.latitude and jsonData.longitude to alias to jsonData.position.latitude and jsonData.position.longitude, respectively?

fetzerch commented 5 years ago

See further discussion in https://github.com/grafana/grafana/issues/11537#issuecomment-466750394.

fetzerch commented 5 years ago

I've 'worked around' the issue in https://github.com/fetzerch/grafana-sunandmoon-datasource/pull/13.