From 2ce16bfd668a2c5f01df44460f765a08d4f4f0d1 Mon Sep 17 00:00:00 2001 From: Steffen Vogel <post@steffenvogel.de> Date: Sun, 17 Sep 2017 11:39:06 +0200 Subject: [PATCH] add more signal types and statistics to VILLASnode config --- etc/node/websocket-demo.conf | 57 ++++++++++++++++++++++++++---------- 1 file changed, 42 insertions(+), 15 deletions(-) diff --git a/etc/node/websocket-demo.conf b/etc/node/websocket-demo.conf index 520841a..3f7dfdd 100644 --- a/etc/node/websocket-demo.conf +++ b/etc/node/websocket-demo.conf @@ -24,27 +24,51 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. *********************************************************************************/ +stats = 10; + nodes = { - sig_1 = { + sig = { type = "signal", - + signal = "mixed", - values = 4, - rate = 25 + values = 5, + rate = 20, + hooks = ( + { type = "stats" } + ) }, - ws_1 = { + stats = { + type = "stats", + node = "sig", + rate = 10, + }, + ws_sig = { type = "websocket", description = "Demo Channel", - vectorize = 50, - source = { - simulator = "OP5600", - location = "ACS lab" - }, series = ( - { label = "Random walk", unit = "V" }, + { label = "Random walk", unit = "V", yaxis = 2 }, { label = "Sine", unit = "A" }, - { label = "Rect", unit = "Var"}, + { label = "Square", unit = "Var"}, + { label = "Triangle", unit = "°C" }, { label = "Ramp", unit = "°C" } + ), + hooks = ( + { type = "stats" } + ) + }, + ws_stats = { + type = "websocket", + description = "Statistics", + series = ( + #{ label = "owd.total" } + { label = "owd.last" }, + { label = "owd.highest" }, + { label = "owd.lowest" }, + { label = "owd.mean" }, + { label = "owd.variance", yaxis = 2 } + ) + hooks = ( + { type = "stats" } ) } }; @@ -53,8 +77,11 @@ nodes = { paths = ( { - in = "sig_1", - out = "ws_1", - reverse = false + in = "sig", + out = "ws_sig" + }, + { + in = "stats.data[31-35]", # OWD + out = "ws_stats" } ); -- GitLab