summaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
authorRasmus Luha <rasmus.luha@ut.ee>2025-05-11 15:43:31 +0300
committerRasmus Luha <rasmus.luha@ut.ee>2025-05-11 15:43:31 +0300
commit137b8a988f77e957feed698494f7143ac06a7b51 (patch)
treed330750cc63ebbe38a0187002c7cd637eb3f687e /config.py
parent9a332ab302a2f05ce4924a66647dec03fb3b1366 (diff)
add diffJsonRootPath template to telegraf
Diffstat (limited to 'config.py')
-rw-r--r--config.py23
1 files changed, 10 insertions, 13 deletions
diff --git a/config.py b/config.py
index 4bd495a..2db70db 100644
--- a/config.py
+++ b/config.py
@@ -1,8 +1,8 @@
-INTERACTIVE_MODE=True
+INTERACTIVE_MODE=False
PLATFORM="Telegraf"
-#### Nifi ####
+#### Nifi specific ####
NIFI_HOST="https://127.0.0.1.nip.io"
NIFI_DEPLOY=True
@@ -10,7 +10,7 @@ NIFI_DEPLOY=True
NIFI_USER="lab08nifiuser"
NIFI_PASS="tartunifi2023"
-MEASUREMENT_NAME="testers_measurementersNames"
+MEASUREMENT_NAME="Tartu_ilmaandmed"
## Database
DB_URL="http://influxdb:8086"
@@ -19,18 +19,15 @@ DB_NAME="telegraf_weatherData"
DB_USER="admin"
DB_PASS="admin"
-#### Telegraf ####
-
-#TBA
-
-
#### Over all ####
## Needed if Interactive mode turned off
-API_URL="https://api.open-meteo.com/v1/forecast?latitude=37.9838&longitude=23.7275&current_weather=true"
-API_FIELDS={'temperature': '.current_weather.temperature', 'windspeed': '.current_weather.windspeed'}
+#API_URL="https://api.open-meteo.com/v1/forecast?latitude=37.9838&longitude=23.7275&current_weather=true"
+API_URL="https://api.openweathermap.org/data/2.5/weather?q=Tartu&units=metric&lang=en&appid=01786b7e8b623a1d2112d672ecae1d0d"
+#API_FIELDS={'temperature': '.current_weather.temperature', 'windspeed': '.current_weather.windspeed'}
+API_FIELDS={'temp': '.main.temp', 'winds': '.wind.speed'}
API_USERNAME="rasmus.luha"
-API_PASSWORD="rasmusPass"
-PIPELINE_SCHEDULING_PERIOD="15"
-PIPELINE_NAME="TestPiper"
+API_PASSWORD="Placeholder"
+PIPELINE_SCHEDULING_PERIOD="10"
+PIPELINE_NAME="OpenWeather_pipeline"