From 4a4e254759873506eedd95b67a02faa7b58e8001 Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Wed, 7 Feb 2024 15:17:52 +0100 Subject: [PATCH] add wttr.in as demo data --- demo_config.json | 109 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) diff --git a/demo_config.json b/demo_config.json index c628bca..15d8fe1 100644 --- a/demo_config.json +++ b/demo_config.json @@ -10,6 +10,115 @@ "api_key": "8< snip >8" }, "configs": [ + { + "url": "http://wttr.in/:Hirschaid?format=j1", + "values": [ + { + "path": [ + "current_condition", + 0, + "weatherCode" + ], + "tags": { + "system": "weather", + "metric": "weatherCode", + "unit": "N/A" + }, + "measurement": "environment" + }, + { + "path": [ + "current_condition", + 0, + "winddirDegree" + ], + "tags": { + "system": "weather", + "metric": "winddir", + "unit": "⁰" + }, + "measurement": "environment" + }, + { + "path": [ + "current_condition", + 0, + "windspeedKmph" + ], + "tags": { + "system": "weather", + "metric": "windspeed", + "unit": "km/h" + }, + "measurement": "environment" + }, + { + "path": [ + "current_condition", + 0, + "uvIndex" + ], + "tags": { + "system": "weather", + "metric": "uvIndex", + "unit": "N/A" + }, + "measurement": "environment" + }, + { + "path": [ + "current_condition", + 0, + "pressure" + ], + "tags": { + "system": "weather", + "metric": "pressure", + "unit": "hPa" + }, + "measurement": "environment" + }, + { + "path": [ + "current_condition", + 0, + "cloudcover" + ], + "tags": { + "system": "weather", + "metric": "cloudcover", + "unit": "%" + }, + "measurement": "environment" + }, + { + "path": [ + "current_condition", + 0, + "temp_C" + ], + "tags": { + "system": "weather", + "metric": "temp_C", + "unit": "C" + }, + "measurement": "environment" + }, + { + "path": [ + "current_condition", + 0, + "humidity" + ], + "tags": { + "system": "weather", + "metric": "humidity", + "unit": "%" + }, + "measurement": "environment" + } + ] + }, { "url": "https://pass.telekom.de/api/service/generic/v1/status", "values": [