From 0190bb2cf61cf36906201445cbecc4a2b6b22af1 Mon Sep 17 00:00:00 2001 From: Rasmus Luha Date: Mon, 21 Apr 2025 21:54:58 +0300 Subject: add more config vars and option to opt in and out of interactive mode, other minor fixes --- config.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'config.py') diff --git a/config.py b/config.py index f21307e..6d88e31 100644 --- a/config.py +++ b/config.py @@ -1,3 +1,5 @@ +INTERACTIVE_MODE=True + ## Nifi NIFI_USER="lab08nifiuser" NIFI_PASS="tartunifi2023" @@ -5,6 +7,8 @@ NIFI_PASS="tartunifi2023" NIFI_HOST="https://127.0.0.1.nip.io" NIFI_DEPLOY=False +NIFI_MEASUREMENT_NAME="test_measurementName" + ## Database DB_URL="http://influxdb:8086/write?db=nifi_weatherData" @@ -12,3 +16,17 @@ DB_USER="admin" ## TODO - somehow must be hidden inside the pipeline in the end DB_PASS="admin" + + + +############################### + + + +## Optional +API_URL="https://api.open-meteo.com/v1/forecast?latitude=58.38&longitude=26.72¤t_weather=true" +API_FIELDS={'temperature': '.current_weather.temperature', 'windspeed': '.current_weather.windspeed'} +API_URL_USERNAME="TODO" +API_URL_PASSWORD="TODO" +PIPELINE_SCHEDULING_PERIOD="5 sec" +PIPELINE_NAME="test_pipeline.json" -- cgit v1.2.3