1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-16 00:00:02 +01:00
VILLASnode/etc/examples/api.conf
Steffen Vogel 1b1643834c Use spaces for indention of .conf files
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2024-02-29 23:18:47 +01:00

105 lines
2.6 KiB
Text

# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0
http = {
port = 8080
}
nodes = {
api_node = {
type = "api"
in = {
signals = (
{
name = "sig1_in",
type = "float",
unit = "V",
description = "Signal 1",
rate = 100,
readable = true,
writable = false,
payload = "samples"
},
{
name = "sig2_in",
type = "float",
unit = "A",
description = "Signal 1",
rate = 100,
readable = true,
writable = false,
payload = "samples"
},
{
name = "sig3_in",
type = "float",
unit = "A",
description = "Signal 1",
rate = 100,
readable = true,
writable = false,
payload = "samples"
}
)
}
out = {
signals = (
# Output signals have no name, type and unit settings as those are implicitly
# derived from the signals which are routed to this node
{
description = "Signal 1",
rate = 100,
readable = true,
writable = false,
payload = "samples"
},
{
description = "Signal 1",
rate = 100,
readable = true,
writable = false,
payload = "samples"
},
{
description = "Signal 1",
rate = 100,
readable = true,
writable = false,
payload = "samples"
}
)
}
}
signal_node = {
type = "signal"
signal = "mixed"
values = 5
rate = 1.0
}
}
paths = (
{
in = [
"api_node"
],
hooks = (
"print"
)
},
{
in = [
"signal_node"
]
out = [
"api_node"
]
hooks = (
"print"
)
}
)