An open API service indexing awesome lists of open source software.

https://github.com/martabal/temperature_city

Display great dashboard of previous weather and forecast weather in grafana using openweather api
https://github.com/martabal/temperature_city

apis dashboard grafana grafana-dashboard openweather-api openweatherapi python3

Last synced: 3 months ago
JSON representation

Display great dashboard of previous weather and forecast weather in grafana using openweather api

Awesome Lists containing this project

README

        

# Temperature_city
Script and dashboard for grafana

## 1. Edit loop.sh

Edit temperatureloop.sh with **sudo nano loop.sh** and change /YOUR/PATH/ or add python3 /YOUR/PATH/forecast.py && python3 /YOUR/PATH/present.py to your crontab file.

## 2. Edit cities.txt
Put your cities in cities.txt separated with a break line.

## 3. Edit python/main.py.
Create an account on openweathermap.org, change with the city you want to monitor and replace with your apikey.

## 4. Create a docker-compose.yml file

run

```shell
user:~/appdata$ sudo docker-compose up
user:~/appdata$ sudo docker-compose start
```


Copy dashboard_weather.json and dashboard_forecast.json and paste in import it in "Import via panel json" in Grafana