DarkSky Datasource - weather and forecast data for Grafana
This plugin allows to graph historic weather conditions and forecast data as returned by the DarkSky API.
Register for a DarkSky API key at DarkSky. The free plan will allow 1000 API calls per day.
Frequently asked questions
I've selected a metric- why does it not appear at certain zoom levels?
The DarkSky API offers different data nodes, e.g. hourly and daily data. Not all metrics are available on all levels. During selection, this datasource offers all metrics available on any level of DarkSky data. If in doubt which metric to choose please take a look at the raw DarkSky API response.
- Clone the repo and cd into the folder grafana-darksky
- make sure you have yarn installed
- install the project dependencies:
- Start the watch task with yarn:
- run the docker from the docker compose file with:
docker-compose -f "docker-compose.yml" up -d --build
- Open grafana at http://localhost:3000
- Login with "admin" and password "admin"
- Now you can get started
Installing DarkSky on Grafana Cloud:
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
For more information, visit the docs on plugin installation.
Installing on a local Grafana:
For local instances, plugins are installed and updated via a simple CLI command. Plugins are not updated automatically, however you will be notified when updates are available right within your Grafana.
1. Install the Data Source
Use the grafana-cli tool to install DarkSky from the commandline:
grafana-cli plugins install
The plugin will be installed into your grafana plugins directory; the default is /var/lib/grafana/plugins. More information on the cli tool.
Alternatively, you can manually download the .zip file for your architecture below and unpack it into your grafana plugins directory.
Alternatively, you can manually download the .zip file and unpack it into your grafana plugins directory.
2. Configure the Data Source
Accessed from the Grafana main menu, newly installed data sources can be added immediately within the Data Sources section.
Next, click the Add data source button in the upper right. The data source will be available for selection in the Type select box.
To see a list of installed data sources, click the Plugins item in the main menu. Both core data sources and installed data sources will appear.