1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 14:16:00 +00:00

[wunderground_] loan from other graphs in root

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
This commit is contained in:
Olivier Mehani 2021-07-19 11:50:30 +10:00 committed by Lars Kruse
parent f018bada38
commit e612fbbd46

View file

@ -43,7 +43,7 @@ of the plugin.
Olivier Mehani Olivier Mehani
Copyright (C) 2020 Olivier Mehani <shtrom+munin@ssji.net> Copyright (C) 2020--2021 Olivier Mehani <shtrom+munin@ssji.net>
=head1 LICENSE =head1 LICENSE
@ -133,9 +133,10 @@ 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
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}]
uv.label UV index uv.label UV index
precipRate.draw AREA precipRate.draw AREA
precipRate.label Precipitation rate [${PRECIPITATION_UNIT} per hour] precipRate.label Precipitation rate [${PRECIPITATION_UNIT} per hour]
@ -299,11 +300,6 @@ get_data() {
fetch "${API_URL}" | jq -r ".observations[0] fetch "${API_URL}" | jq -r ".observations[0]
| @text \" | @text \"
multigraph wunderground_${STATION_ID} 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 multigraph wunderground_${STATION_ID}.air_humidity
humidity.value \(.humidity) humidity.value \(.humidity)