Skip to content

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

Notifications You must be signed in to change notification settings

martabal/Temperature_city

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published