]> git.0d.be Git - jackwsmeter.git/commitdiff
fill README file
authorFrédéric Péters <fpeters@0d.be>
Sat, 5 Jul 2014 11:57:19 +0000 (13:57 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sat, 5 Jul 2014 11:57:43 +0000 (13:57 +0200)
README
TODO

diff --git a/README b/README
index 367b2aaaccce2850cce00dfa62b478f395c65722..15a7eb5b1b6c3565d2c1b5f931876797f4a42ace 100644 (file)
--- a/README
+++ b/README
@@ -1,4 +1,68 @@
 jackwsmeter - jack meter over websockets
 ========================================
 
 jackwsmeter - jack meter over websockets
 ========================================
 
+jackwsmeter get the signal values of the audio signals that flow through
+JACK ports and make the peak levels available over a websocket link,
+it's a clean and efficient way to get an overview of levels from a serie
+of jack servers.
 
 
+
+Installation
+------------
+
+JACK <http://jackaudio.org> and libwebsockets <http://libwebsockets.org>
+development files are required.
+
+Building and installing is done via the autotools:
+
+  ./autogen.sh
+  make
+  make install
+
+
+Usage
+-----
+
+Run the following command, then open your browser at http://localhost:7681.
+
+  jackwsmeter system:capture_1 system:capture_2
+
+It's also possible to specify invalid ports, in that case the corresponding
+number of jack input ports will be created but unconnected; the following
+command creates four input ports:
+
+  jackwsmeter x x x x
+
+(the limit is set at 20 input ports)
+
+
+Protocol
+--------
+
+jackwsmeter comes with a minimalistic HTML page but can be used in much better
+integration when using its WebSocket interface.
+
+The WebSocket protocol string is jack-wsmeter-protocol, it will periodically
+emit a message consisting of a string containing a space separated list of
+level values.
+
+  var ws = new WebSocket('ws://localhost:7681', 'jack-wsmeter-protocol');
+  ws.onmessage = function(event) {
+      var peaks = event.data.split(" ");
+      console.log('got ', peaks.length, ' measures:', event.data);
+  }
+
+
+Real world usage
+----------------
+
+jackwsmeter was developed to be used in Radio Panik, a free community radio in
+Brussels, Belgium. <http://www.radiopanik.org>
+
+
+Feedback
+--------
+
+You can send bug reports or any kind of comment to the author.
+
+  mailto:Frederic Peters <fpeters@0d.be>
diff --git a/TODO b/TODO
index 135e48251bab4013fbcb96f445fcba54edb35b3f..aa969bbe20113ac4f1ae93a21cf385b46f49603a 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,3 +1 @@
-- documentation
-  - README (including protocol description)
 - arg to set refresh rate (?)
 - arg to set refresh rate (?)