As a big fan of containerised applications, I decided to fetch the latest covid api data from RKI (Robert Koch Institute) website. Fetch api data from Python and automate the script in the Node-RED to fetch the latest data every day at 3:00 am. Save it to influxdb and visualise it in the Grafana dashboard.
- Docker and Docker Compose should be installed on the system.
- From the root of this repo you will find the file name
docker-compose.yml
. Edit this file according to your requirements and run on the host.
Example:
docker-compose pull
docker-compose up -d
-
Check if the all the containers are running by executing
docker ps
. -
Open the UI of Node-RED to import the flow from the file
nodered_flow.json
in order to run the Python script in it. -
Import the grafana dashboard model from the file
grafana_dashboard_model.json
in the grafana UI.