From cf61bc500c9472cce6def2bdabdf97f69fe7067a Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 8 Mar 2017 09:58:35 -0300 Subject: [PATCH] added simple example configuratin file for Markus --- etc/eric-lab.conf | 70 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 etc/eric-lab.conf diff --git a/etc/eric-lab.conf b/etc/eric-lab.conf new file mode 100644 index 000000000..d96a2b82f --- /dev/null +++ b/etc/eric-lab.conf @@ -0,0 +1,70 @@ +# Example configuration file for VILLASnode +# +# This example includes all valid configuration options for the server. +# Please note, that using all options at the same time does not really +# makes sense. The purpose of this example is to serve as a reference. +# +# The syntax of this file is similar to JSON. +# A detailed description of the format can be found here: +# http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files +# +# Author: Steffen Vogel +# Copyright: 2016, Institute for Automation of Complex Power Systems, EONERC +## + +stats = 3; # The interval in seconds to print path statistics. + # A value of 0 disables the statistics. + +name = "villas-acs" # The name of this VILLASnode. Might by used by node-types + # to identify themselves (default is the hostname). + + +log = { + level = 5; # The level of verbosity for debug messages + # Higher number => increased verbosity + + faciltities = [ "path", "socket" ]; # The list of enabled debug faciltities. + # If omitted, all faciltities are enabled + # For a full list of available faciltities, check lib/log.c +}; + +http = { + htdocs = "/villas/web/socket/", # Root directory of internal webserver + port = 80 # Port for HTTP connections +} + +############ Dictionary of nodes ############ + +nodes = { + ws = { + type = "websocket", + unit = "MVa", + units = [ "V", "A", "Var" ], + description = "Demo Channel", + series = ( + { label = "Random walk" }, + { label = "Sine" }, + { label = "Rect" }, + { label = "Ramp" } + ) + }, + socket1 = { + type = "socket", + layper = "udp", + local = "*:12000", + remote = "127.0.0.1:12001" + }, + socket2 = { + type = "socket", + layper = "udp", + local = "*:12001", + remote = "127.0.0.1:12000" + } +}; + + +############ List of paths ############ + +paths = ( + { in = "socket2", out = "ws" } +);