Verbalinsurection / CovidFR-Influx

Download, enrichment and load Covid-19 French data on Influx-Db with Grafana dashboard.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CovidFR-Influx

Quality Gate Status CodeFactor Dependabot Docker Hub package GitHub

En: Download, enrichment and load Covid-19 French data on Influx-Db with Grafana dashboard.

Fr: Telecharger, enrichir et enregistrer les données concernant le Covid-19 pour la France dans une base Influx-Db représentées sur un dashboard Grafana.

Image Overview

Data source

Hospital data

Geographical center of French departments (city)

City GPS coordinates

How to use

Docker

docker pull verbalinsurection/covidfr-influx

Environment variable

variable default description
CVFI_LOGLEVELCONSOLE 20 Logging Levels (see below table)
FILE_HOSP https://www.data.gouv.fr/fr/datasets/r/63352e38-d353-4b54-bfd1-f1b3ee1cabd7 url to last hospital data file
SCHEDULE 19:15 Hour scheduled check for new data
SCHEDULE_DELTA_M 30 Duration in minute for waiting new data from schedule hour
WAIT_NEW_M 10 Wait between two check for new data
INFLUX_HOST Influxdb host
INFLUX_PORT 8086 Influxdb port
INFLUX_DB covidfr Influxdb database name
INFLUX_USER Influxdb use n ame
INFLUX_PASS Influxdb user password

Logging Levels

level numerical value
CRITICAL 50
ERROR 40
WARNING 30
INFO 20
DEBUG 10
NOTSET 0

Various information

For development, you can use vscode with the devcontainer in this repo

Use GitFlow, so if you want to submit a PR, please use develop branch

The new hospital data overwrite the old ones to take into account any corrections in the source file

About

Download, enrichment and load Covid-19 French data on Influx-Db with Grafana dashboard.

License:Apache License 2.0


Languages

Language:Python 92.9%Language:Dockerfile 7.1%