From 0a16e0e3e586456cf2e86dbdad4b66787b036a5d Mon Sep 17 00:00:00 2001 From: Rasmus Luha Date: Fri, 25 Apr 2025 21:43:54 +0300 Subject: some restructuring, start telegraf module --- config.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'config.py') diff --git a/config.py b/config.py index f5d4554..3b1f304 100644 --- a/config.py +++ b/config.py @@ -1,15 +1,15 @@ -INTERACTIVE_MODE=True +INTERACTIVE_MODE=False + + +#### Nifi #### -## Nifi NIFI_HOST="https://127.0.0.1.nip.io" NIFI_DEPLOY=False NIFI_USER="lab08nifiuser" NIFI_PASS="tartunifi2023" -#NIFI_MEASUREMENT_NAME="test_measurementName" -NIFI_MEASUREMENT_NAME="" - +NIFI_MEASUREMENT_NAME="test_measurementName" ## Database DB_URL="http://influxdb:8086/write?db=nifi_weatherData" @@ -17,11 +17,6 @@ DB_USER="admin" DB_PASS="admin" - -############################### - - - ## Needed if Interactive mode turned off 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'} @@ -29,3 +24,7 @@ API_USERNAME="Placeholder" API_PASSWORD="Placehoder" PIPELINE_SCHEDULING_PERIOD="5 sec" PIPELINE_NAME="test_pipeline.json" + + + +#### Telegraf #### -- cgit v1.2.3