add host_name configuration
[munin-heatpump.git] / heatpump-dimplex-wpm_
index 9598d0c1d2b8616d2b3b02d41b613a87a19d7bc5..2ec58318e4d911cdbc4fa35ffd6f973b90656137 100755 (executable)
 
  Symlink heatpump-dimplex-wpm_ as "heatpump-dimplex-wpm_192.168.20.71".
 
+=head2 EXAMPLE CONFIGURATION
+
+ [heatpump-dimplex-wpm_*]
+  env.host_name Heating
+
 =head1 DEPENDENCIES
 
  curl
@@ -40,6 +45,10 @@ host=`echo ${0##*/}|sed 's/^.*_//g'`
 
 
 if [ "$1" = "config" ]; then
+    if [ "$host_name" != "" ]; then
+        echo "host_name $host_name"
+    fi
+
     #Outdoor temperature
     echo 'multigraph heatpump_dimplex_wpm_outtemp'
     echo 'graph_title Außentemperatur'