Use node-red to store the weather data of 4 cities in an InfluxDB database and show it in a dashboard.
Dockerization of weather-bot project.
The dashboard has been deployed on http://weather.patiny.com.
git clone https://github.com/opatiny/docker-weather-dashboard
Copy the docker-compose.yml.example
file to docker-compose.yml
and replace the environment variable with your data:
environment:
OWM_ID: <your openweathermap appid here>
Run the following command:
docker-compose up -d --build
Or use the script if you have node.js:
npm start
Run the following command:
docker-compose down
Or use this script if you have node.js:
npm run stop