Skip to content

Example

This is an example to use the environment using the Copernicus data as an example with the DAG:

flujo_coperniocus_orion_quantumleap.py

Instructions

  1. Get a free Copernicus Climate Data Store API Key at Copernicus Climate Data Store

Copernicus web image 2. Clone the repository

git clone https://github.com/PGTEC-VRAIN/Entorno-AirFlow_IotAgent_OrionLD_QuantumLeap.git
3. Run Docker service
sudo service docker start
4. Access to the correct repository with the environment Entorno-AirFlow_IotAgent_OrionLD_QuantumLeap
cd Entorno-AirFlow_IotAgent_OrionLD_QuantumLeap
5. Change API Key at the script flujo_coperniocus_orion_quantumleap.py
 c = cdsapi.Client(url="https://cds.climate.copernicus.eu/api",
                   key="PUT_YOUR_API_KEY_HERE")
6. Run the docker compose yaml
docker compose up --build
7. Check the status of the containers in a new terminal
docker ps
8. Access to Airflow to see the DAG running (You may create an account first) Airflow web image 9. Check CreateDB to get historical data You may create an account first CreateDB web image 10. Shut down the docker
docker compose down