summaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
authorRasmus Luha <rasmus.luha@ut.ee>2025-04-21 21:54:58 +0300
committerRasmus Luha <rasmus.luha@ut.ee>2025-04-21 21:54:58 +0300
commit0190bb2cf61cf36906201445cbecc4a2b6b22af1 (patch)
treec4c0056b8473c11db7e0959ce601ee79c46862ef /config.py
parent5bbcd5b6bc8340eedb7e8dcd88e156a0987d42f6 (diff)
add more config vars and option to opt in and out of interactive mode, other minor fixes
Diffstat (limited to 'config.py')
-rw-r--r--config.py18
1 files changed, 18 insertions, 0 deletions
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&current_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"