git.cweiske.de
/
usb-wde1-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bd4e7c2
)
talk about html generation
author
Christian Weiske
<cweiske@cweiske.de>
Sat, 25 May 2013 22:18:43 +0000
(
00:18
+0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Sat, 25 May 2013 22:18:43 +0000
(
00:18
+0200)
README.rst
patch
|
blob
|
history
diff --git
a/README.rst
b/README.rst
index a140fe219bb9f4b152562e20cbe83c66a8850a54..f8d281df45c3b3624619ec47d23353c044867ac8 100644
(file)
--- a/
README.rst
+++ b/
README.rst
@@
-1,16
+1,17
@@
+*********************
USB-WDE1 Munin plugin
USB-WDE1 Munin plugin
-=====================
+*********************
Generate graphs for temperature and humidity by utilizing Munin.
Idea
Generate graphs for temperature and humidity by utilizing Munin.
Idea
-----
+====
0. Keep a logfile with the most recent single line
1. Use the munin plugin to generate munin-compatible data from the log file
Setup
0. Keep a logfile with the most recent single line
1. Use the munin plugin to generate munin-compatible data from the log file
Setup
------
+=====
0. Checkout the munin plugin code:
$ cd /usr/local/src
$ git clone git://git.cweiske.de/usb-wde1-tools.git
0. Checkout the munin plugin code:
$ cd /usr/local/src
$ git clone git://git.cweiske.de/usb-wde1-tools.git
@@
-56,7
+57,7
@@
Setup
Debugging & Development
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
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
@@
-80,7
+81,7
@@
from file usb-wde1_
Permission errors
Permission errors
-.................
+-----------------
cu: open (/dev/ttyUSB0): Permission denied
cu: /dev/ttyUSB0: Line in use
cu: open (/dev/ttyUSB0): Permission denied
cu: /dev/ttyUSB0: Line in use
@@
-88,3
+89,14
@@
Permission errors
Only way that I found to fix this was change ownership of `/dev/ttyUSB0` to uucp::
$ chown uucp /dev/ttyUSB0
Only way that I found to fix this was change ownership of `/dev/ttyUSB0` to uucp::
$ chown uucp /dev/ttyUSB0
+
+
+HTML/Plain text output
+======================
+You may use ``htmlreport/gen-html.php`` to generate HTML or plain text
+files with the temperature and humidity information.
+
+Install PHP and the PHP rrd extension (``pear install pecl/rrd``) to make it
+work.
+
+Run ``gen-html.php`` every 5 minutes.