Skip to content

This repo contains the code for ingesting data from Protezione Civile (temperature and radar map) to TDM.

Notifications You must be signed in to change notification settings

tdm-project/dpc

Folders and files

NameName
Last commit message
Last commit date
Mar 23, 2021
Nov 10, 2022
Nov 13, 2020
Mar 23, 2021
Dec 2, 2020
Nov 17, 2022
Nov 10, 2022
Mar 23, 2021
Mar 22, 2021

Repository files navigation

dpc

This repo contains the code for ingesting precipitation and temperature data from Protezione Civile meteorological data service to the TDM polystore.

Docker Build

Pre-built images are provided on Docker Hub.

To build your own image run:

docker build -t tdmproject/dpc_ingestor -f docker/Dockerfile .

Example

You can run the polystore locally and ingest some data. First of all, start up the services:

wget -O docker/docker-compose.base.yml https://raw.githubusercontent.com/tdm-project/tdm-polystore/develop/docker/docker-compose.base.yml
wget -O docker/settings.conf https://raw.githubusercontent.com/tdm-project/tdm-polystore/develop/docker/settings.conf
docker-compose -f docker/docker-compose.base.yml up -d

Now run the ingestor. Here we'll grab temperature data from the DPC for last 12 hours.

docker run --rm --network docker_tdmq tdmproject/dpc_ingestor \
    temperature \
    "http://web:8000/api/v0.0/" "$(sed -n -e '/TDMQ_AUTH_TOKEN/s/.*=//p' docker/settings.conf)"  ingest --strictly-after $(date -d '12 hour ago' --iso-8601=minutes --utc)

About

This repo contains the code for ingesting data from Protezione Civile (temperature and radar map) to TDM.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published