From e612fbbd46911eab03b2cd49ba6e7e2b22c7d4e6 Mon Sep 17 00:00:00 2001 From: Olivier Mehani Date: Mon, 19 Jul 2021 11:50:30 +1000 Subject: [PATCH] [wunderground_] loan from other graphs in root Signed-off-by: Olivier Mehani --- plugins/weather/wunderground_ | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/plugins/weather/wunderground_ b/plugins/weather/wunderground_ index c81f0d87..192c8f54 100755 --- a/plugins/weather/wunderground_ +++ b/plugins/weather/wunderground_ @@ -43,7 +43,7 @@ of the plugin. Olivier Mehani -Copyright (C) 2020 Olivier Mehani +Copyright (C) 2020--2021 Olivier Mehani =head1 LICENSE @@ -133,9 +133,10 @@ graph_title Weather in \(.neighborhood) graph_info Weather ${STATION_INFO} graph_category weather graph_vlabel Temperature / UV Index / Precipitation +graph_order temp=temperature.temp windChill=temp.windChill heatIndex=temp.heatIndex uv=uv_index.uv precipRate=precipitation.precipRate temp.label Temperature [${TEMP_UNIT}] windChill.label Wind chill [${TEMP_UNIT}] -heatIndex.label Heat index [$TEMP_UNIT] +heatIndex.label Heat index [${TEMP_UNIT}] uv.label UV index precipRate.draw AREA precipRate.label Precipitation rate [${PRECIPITATION_UNIT} per hour] @@ -299,11 +300,6 @@ get_data() { fetch "${API_URL}" | jq -r ".observations[0] | @text \" multigraph wunderground_${STATION_ID} -temp.value \(.${UNITS}.temp) -windChill.value \(.${UNITS}.windChill) -heatIndex.value \(.${UNITS}.heatIndex) -uv.value \(.uv) -precipRate.value \(.${UNITS}.precipRate) multigraph wunderground_${STATION_ID}.air_humidity humidity.value \(.humidity)