1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +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
Copyright (C) 2020 Olivier Mehani <shtrom+munin@ssji.net>
Copyright (C) 2020--2021 Olivier Mehani <shtrom+munin@ssji.net>
=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)