Grafana plugin – Sun and Moon

The “Sun and Moon” plugin uses location to compute:

  • sunrise
  • sunset times
  • moonrise
  • moonset
  • twilight
  • solar noon

You can overlay this data on weather dashboards or other dashboards where its contextually appropriate.

Install the plugin:

$ sudo grafana-cli plugins install fetzerch-sunandmoon-datasource

$ sudo systemctl restart grafana-server

Open Grafana in your browser add the “Sun and Moon” data source.

  • Click [Add new connection]
  • In the Search bar type “sun and moon
  • When it appears based on the search, click on [Sun and Moon] icon

The “Sun and Moon” connection page will appear

  • Click [Install] to continue

Sun and Moon” is almost ready to use.

  • Click on [Data Sources]
  • Click on [+ Add new data source]

The “Add data source” page will appear.

Click “Sun and Moon

The “fetzerch-sunandmoon-datasource” page will appear.

Enter a location in the “Latitude” and “Longitude” dialog boxes.

Melbourne, Australia is:

  • Latitude: -37.8140
  • Longitude: 144.9633

Click [Save and Test]

A popup with “Datasource added successfully” will appear.

Ready to use.