add license and author
authorChristian Weiske <cweiske@cweiske.de>
Tue, 8 Feb 2011 07:01:29 +0000 (08:01 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 8 Feb 2011 07:01:29 +0000 (08:01 +0100)
munin/log-single-line.sh
munin/usb-wde1-log-last.sh
munin/usb-wde1_

index fe730f3b74a7d93aab8dc310819969c2552ee8fa..3ee3f64d130016b51e82524f2ffbf6939a3572c6 100755 (executable)
@@ -1,6 +1,9 @@
 #!/bin/sh
 #!/bin/sh
-#Logs a single line into the log file passed as script parameter
-# adds timestamp to the logview openformat lines
+# Logs a single line into the log file passed as script parameter
+#  and adds timestamp to the logview openformat lines
+#
+# License: http://www.gnu.org/licenses/agpl.html AGPL
+# Author: Christian Weiske <cweiske@cweiske.de>
 
 file="$1"
 if [ "x$file" = "x" ]; then
 
 file="$1"
 if [ "x$file" = "x" ]; then
@@ -8,12 +11,7 @@ if [ "x$file" = "x" ]; then
     exit 1
 fi
 
     exit 1
 fi
 
-#Beispielausgabe USB-WDE1:
 # $1;1;;13,8;22,7;22,6;17,8;22,2;21,2;22,9;;59;35;38;49;38;40;35;;;;;;;0
 # $1;1;;13,8;22,7;22,6;17,8;22,2;21,2;22,9;;59;35;38;49;38;40;35;;;;;;;0
-# Doku des Formats in 92030_USB_WDE1_V1.0_UM.pdf bei elv.de verfügbar
-# Format ist "Logview openformat"
-# http://www.logview.info/cms/d_formatbeschreibung.phtml
-
 while read -r line
 do
     beginning=`echo "$line"|cut -b 1-3`
 while read -r line
 do
     beginning=`echo "$line"|cut -b 1-3`
index 4f91844ecd62ba3f5c75731c09a8e550f6ffc4ea..0752498968fe6beb8fb8eaf63124474a733445b9 100755 (executable)
@@ -1,9 +1,14 @@
 #!/bin/sh
 # logs the last line. usable via nohup on the server
 #!/bin/sh
 # logs the last line. usable via nohup on the server
+#
+# run this script as follows:
+# $ nohup ./usb-wde1-log-last.sh &
+#
+# License: http://www.gnu.org/licenses/agpl.html AGPL
+# Author: Christian Weiske <cweiske@cweiske.de>
+#
 # FIXME: send RESET or INIT and M2
 # FIXME: use absolute path for log-single-line.sh
 #
 # FIXME: send RESET or INIT and M2
 # FIXME: use absolute path for log-single-line.sh
 #
-# run command: nohup ./usb-wde1-log-last.sh &
-#
 socat /dev/ttyUSB0,b9600 STDOUT\
  | ./log-single-line.sh /tmp/usb-wde1-last
 socat /dev/ttyUSB0,b9600 STDOUT\
  | ./log-single-line.sh /tmp/usb-wde1-last
index d4c0bed49d186f0ee2577d1def36595501663bb5..26de11a90629832c2c96723dbd9b78effcb25e73 100755 (executable)
@@ -26,6 +26,11 @@ usb-wde1 -  Munin plugin to report usb-wde1 temperature and humidity data
  #%# family=manual
  #%# capabilities=autoconf suggest
 
  #%# family=manual
  #%# capabilities=autoconf suggest
 
+=head1 AUTHOR and LICENSE
+
+License: http://www.gnu.org/licenses/agpl.html AGPL
+Author: Christian Weiske <cweiske@cweiske.de>
+
 =cut
 
 TYPE=`basename $0 | sed 's/^.*_//g'`
 =cut
 
 TYPE=`basename $0 | sed 's/^.*_//g'`
@@ -91,6 +96,13 @@ if [ "$1" = "config" ]; then
     exit 0
 fi
 
     exit 0
 fi
 
+#Beispielausgabe USB-WDE1:
+# $1;1;;13,8;22,7;22,6;17,8;22,2;21,2;22,9;;59;35;38;49;38;40;35;;;;;;;0
+# Doku des Formats in 92030_USB_WDE1_V1.0_UM.pdf bei elv.de verfügbar
+# Format ist "Logview openformat"
+# http://www.logview.info/cms/d_formatbeschreibung.phtml
+
+
 #split by semicolons
 OLDIFS="$IFS"
 IFS=";"
 #split by semicolons
 OLDIFS="$IFS"
 IFS=";"