1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

Added configuration example for the api-client node type

Signed-off-by: pipeacosta <pipeacosta@gmail.com>
This commit is contained in:
pipeacosta 2023-08-25 07:20:24 +00:00
parent b3b08fc684
commit 1dea56a6d3

View file

@ -0,0 +1,104 @@
nodes = {
api_client_node = {
type = "api-client",
# The HTTP REST API endpoint of the uAPI server
endpoint = "http://localhost:8080/api/universal/node_ri1_api",
rate = 0.5 # Rate at which we poll the broker for updates
timeout = 1, # Timeout of HTTP request in seconds (default is 1, must be smaller than 1 / rate)
verify_ssl = false, # Verification of SSL server certificates (default is true)
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 = (
{
name = "ri1-rtds-f",
type = "float",
unit = "Hz",
description = "Frequency",
rate = 1,
readable = true,
writable = false,
payload = "samples"
},
{
name = "ri1-rtds-u",
type = "float",
unit = "kV",
description = "Voltage",
rate = 1,
readable = true,
writable = false,
payload = "samples"
}
)
}
}
# signal = {
# type = "signal"
# signal = "mixed"
# values = 2 # values per sample
# rate = 1.0
# },
loopback_node = {
type = "loopback",
queuelen = 1024
}
}
paths = (
# {
# in = "signal"
# out = "api_client_node"
# hooks = (
# { type = "print" }
# )
# },
{
in = "api_client_node"
out = "loopback_node"
hooks = (
{ type = "print" }
)
}
)