add host_name configuration
authorChristian Weiske <cweiske@cweiske.de>
Sun, 9 Dec 2012 19:38:17 +0000 (20:38 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Sun, 9 Dec 2012 19:38:17 +0000 (20:38 +0100)
heatpump-dimplex-wpm_

index 9598d0c..2ec5831 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'