---
title: "Sun and Moon data source plugin for Grafana"
description: "Calculates position of Sun and Moon. Sun and Moon data source plugin for Grafana by fetzerch. Available in Grafana Cloud and self-managed Grafana."
---

> This is the Markdown version of https://grafana.com/grafana/plugins/fetzerch-sunandmoon-datasource/

# Sun and Moon

- Developer: fetzerch
- Version: 0.3.3
- [Installation](https://grafana.com/grafana/plugins/fetzerch-sunandmoon-datasource/installation.md)
- [Change log](https://grafana.com/grafana/plugins/fetzerch-sunandmoon-datasource/changelog.md)

![Sun and Moon Position](https://grafana.com/api/plugins/fetzerch-sunandmoon-datasource/versions/0.3.3/images/img/screenshot.png)

[![Build Status](https://github.com/fetzerch/grafana-sunandmoon-datasource/actions/workflows/ci.yml/badge.svg)](https://github.com/fetzerch/grafana-sunandmoon-datasource/actions/workflows/ci.yml) [![Coverage Status](https://coveralls.io/repos/github/fetzerch/grafana-sunandmoon-datasource/badge.svg)](https://coveralls.io/github/fetzerch/grafana-sunandmoon-datasource)

# Sun and Moon Datasource Plugin for Grafana

SunAndMoon is a Datasource Plugin for [Grafana](https://grafana.org/) that calculates the position of Sun and Moon as well as the Moon illumination using [SunCalc](https://github.com/mourner/suncalc).

Additionally it provides annotations for sunrise, sunset, twilight, moonrise, moonset and others.

![SunAndMoon](https://raw.githubusercontent.com/fetzerch/grafana-sunandmoon-datasource/master/src/img/screenshot.png)

## Configuration

All values are location dependent, the reference location needs to be configured in the datasource settings.

![SunAndMoon Configuration](https://raw.githubusercontent.com/fetzerch/grafana-sunandmoon-datasource/master/src/img/configuration.png)

## License

This projected is licensed under the terms of the MIT license.
