diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2011-02-08 19:14:14 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2011-02-08 19:14:14 +0100 |
| commit | 35171f9695f54d84d239c20cf3cca095a53ef569 (patch) | |
| tree | dc302dec127b390a4dc20224143e2bb94827770c | |
| parent | 4aa3b01f83207dd91c7ece7da3f0e7af7dccabe3 (diff) | |
| download | usb-wde1-tools-35171f9695f54d84d239c20cf3cca095a53ef569.tar.gz usb-wde1-tools-35171f9695f54d84d239c20cf3cca095a53ef569.zip | |
explain development cycle in readme
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | munin/README | 22 |
2 files changed, 21 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..397b4a7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.log diff --git a/munin/README b/munin/README index ab784cc..f8eaf23 100644 --- a/munin/README +++ b/munin/README @@ -20,8 +20,6 @@ Setup line with temperature data into a log file. You can do that manually with $ socat /dev/ttyUSB0,b9600 STDOUT |./munin/log-single-line.sh test.log - or - $ ./dummy-data-generator.php |./munin/log-single-line.sh test.log The most easy way is to run $ cd munin && nohup ./usb-wde1-log-last.sh & @@ -54,3 +52,23 @@ Setup - should display the current values from the log file 5. You are done - enjoy. + + + +Debugging & Development +----------------------- +The dummy data generator is a small php script that generates log lines +as they would come from the usb-wde1 usb port: +$ ./dummy-data-generator.php |./munin/log-single-line.sh test.log + +Local (non-installed) plugin setup: +$ cd munin +$ ln -s usb-wde1_ usb-wde1_temperature +$ ln -s usb-wde1_ usb-wde1_humidity +$ cd .. + + +Running the munin plugin is also relatively easy, and you can easily pass +the environment configuration variables from the munin configuration +on the cli: +$ logfile=test.log sensors="0 1 7" ./munin/usb-wde1_temperature |
