martabal / Temperature_city

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

About

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


Languages

Language:Python 96.4%Language:Shell 3.6%