1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

[wunderground_] Fix windChil and heatIndex in root graph

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, <GEN1> 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, <GEN1> 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 <shtrom@ssji.net>
This commit is contained in:
Olivier Mehani 2022-01-06 22:55:57 +11:00 committed by Lars Kruse
parent 8061bfcf2b
commit 38f3a4297e

View file

@ -137,7 +137,7 @@ graph_title Weather in \(.neighborhood)
graph_info Weather ${STATION_INFO} graph_info Weather ${STATION_INFO}
graph_category weather graph_category weather
graph_vlabel Temperature / UV Index / Precipitation 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}] temp.label Temperature [${TEMP_UNIT}]
windChill.label Wind chill [${TEMP_UNIT}] windChill.label Wind chill [${TEMP_UNIT}]
heatIndex.label Heat index [${TEMP_UNIT}] heatIndex.label Heat index [${TEMP_UNIT}]