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
- Host: GitHub
- URL: https://github.com/martabal/temperature_city
- Owner: martabal
- Created: 2021-10-27T18:15:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-27T13:22:05.000Z (about 3 years ago)
- Last Synced: 2025-02-02T13:27:16.534Z (5 months ago)
- Topics: apis, dashboard, grafana, grafana-dashboard, openweather-api, openweatherapi, python3
- Language: Python
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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