From 38f3a4297e6f03e9957d4895ba963cb819e9eab3 Mon Sep 17 00:00:00 2001 From: Olivier Mehani Date: Thu, 6 Jan 2022 22:55:57 +1100 Subject: [PATCH] [wunderground_] Fix windChil and heatIndex in root graph MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The data was incorrectly loaned from a `temp` subgraph, which should have been `temperature`. This led to errors during munin-graph, as follow [ERROR] Failed to find windChill source at temp.windChill, skipping field [ERROR] Failed to find heatIndex source at temp.heatIndex, skipping field [PERL WARNING] Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Munin/Master/Utils.pm line 1149, line 1728. [ERROR] filename is empty for $VAR1 = { '#%#name' => 'windChill', 'graph_data_size' => 'normal', 'label' => 'Wind chill [°C]', 'update_rate' => '300' }; , temp.windChill [PERL WARNING] Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Munin/Master/Utils.pm line 1149, line 1728. [ERROR] filename is empty for $VAR1 = { '#%#name' => 'heatIndex', 'graph_data_size' => 'normal', 'label' => 'Heat index [°C]', 'update_rate' => '300' }; , temp.heatIndex Signed-off-by: Olivier Mehani --- plugins/weather/wunderground_ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/weather/wunderground_ b/plugins/weather/wunderground_ index 8191a9fd..3121569a 100755 --- a/plugins/weather/wunderground_ +++ b/plugins/weather/wunderground_ @@ -137,7 +137,7 @@ 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 +graph_order temp=temperature.temp windChill=temperature.windChill heatIndex=temperature.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}]