2017-03-08 09:58:35 -03:00
|
|
|
# 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
|
|
|
|
#
|
2022-12-14 17:41:58 +01:00
|
|
|
# Author: Steffen Vogel <post@steffenvogel.de>
|
2017-03-08 09:58:35 -03:00
|
|
|
# Copyright: 2016, Institute for Automation of Complex Power Systems, EONERC
|
|
|
|
##
|
|
|
|
|
|
|
|
name = "villas-acs" # The name of this VILLASnode. Might by used by node-types
|
|
|
|
# to identify themselves (default is the hostname).
|
|
|
|
|
2017-05-05 19:24:16 +00:00
|
|
|
|
2019-03-26 14:02:12 +01:00
|
|
|
logging = {
|
|
|
|
level = "debug"
|
2019-03-26 07:47:45 +01:00
|
|
|
}
|
2017-03-08 09:58:35 -03:00
|
|
|
|
|
|
|
http = {
|
|
|
|
port = 80 # Port for HTTP connections
|
|
|
|
}
|
|
|
|
|
|
|
|
############ Dictionary of nodes ############
|
|
|
|
|
|
|
|
nodes = {
|
|
|
|
ws = {
|
2019-03-26 07:47:45 +01:00
|
|
|
type = "websocket"
|
|
|
|
unit = "MVa"
|
|
|
|
units = [ "V", "A", "Var" ]
|
|
|
|
description = "Demo Channel"
|
2017-03-08 09:58:35 -03:00
|
|
|
series = (
|
|
|
|
{ label = "Random walk" },
|
|
|
|
{ label = "Sine" },
|
|
|
|
{ label = "Rect" },
|
|
|
|
{ label = "Ramp" }
|
2017-05-05 19:24:16 +00:00
|
|
|
)
|
2019-03-26 07:47:45 +01:00
|
|
|
}
|
2017-03-08 09:58:35 -03:00
|
|
|
socket1 = {
|
2019-03-26 07:47:45 +01:00
|
|
|
type = "socket"
|
|
|
|
layper = "udp"
|
2018-08-20 18:31:27 +02:00
|
|
|
|
|
|
|
in = {
|
|
|
|
address = "*:12000"
|
2019-03-26 07:47:45 +01:00
|
|
|
}
|
2018-08-20 18:31:27 +02:00
|
|
|
out = {
|
|
|
|
address = "127.0.0.1:12001"
|
|
|
|
}
|
2019-03-26 07:47:45 +01:00
|
|
|
}
|
2017-03-08 09:58:35 -03:00
|
|
|
socket2 = {
|
2019-03-26 07:47:45 +01:00
|
|
|
type = "socket"
|
|
|
|
layer = "udp"
|
2018-08-20 18:31:27 +02:00
|
|
|
|
|
|
|
in = {
|
|
|
|
address = "*:12001"
|
2019-03-26 07:47:45 +01:00
|
|
|
}
|
2018-08-20 18:31:27 +02:00
|
|
|
out = {
|
|
|
|
address = "127.0.0.1:1200"
|
|
|
|
}
|
2017-03-08 09:58:35 -03:00
|
|
|
}
|
2019-03-26 07:47:45 +01:00
|
|
|
}
|
2017-03-08 09:58:35 -03:00
|
|
|
|
|
|
|
############ List of paths ############
|
|
|
|
|
|
|
|
paths = (
|
2019-03-26 14:02:12 +01:00
|
|
|
{
|
|
|
|
in = "socket2",
|
|
|
|
out = "ws"
|
|
|
|
}
|
2019-03-26 07:47:45 +01:00
|
|
|
)
|