Skip to content

Commit

Permalink
Update mbusd to support multiple instances
Browse files Browse the repository at this point in the history
  • Loading branch information
madejackson committed Aug 6, 2024
1 parent 4b5f1eb commit 4050fc1
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions servapps/mbusd/cosmos-compose.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
{
"name": "serialPort",
"label": "serial Port",
"initialValue": "/dev/ttyACM2",
"initialValue": "ttyACM2",
"type": "select",
"options": [
["/dev/ttyACM0", "/dev/ttyACM0 -> Serialport 0 -> Coprocessor"],
["/dev/ttyACM1", "/dev/ttyACM1 -> Serialport 1 -> KNX, RS485 or RS232"],
["/dev/ttyACM2", "/dev/ttyACM2 -> Serialport 2 -> RS485 or RS232"],
["/dev/ttyACM3", "/dev/ttyACM3 -> Serialport 3 -> RS485 or RS232"]
["ttyACM0", "/dev/ttyACM0 -> Serialport 0 -> Coprocessor"],
["ttyACM1", "/dev/ttyACM1 -> Serialport 1 -> KNX, RS485 or RS232"],
["ttyACM2", "/dev/ttyACM2 -> Serialport 2 -> RS485 or RS232"],
["ttyACM3", "/dev/ttyACM3 -> Serialport 3 -> RS485 or RS232"]
]
},
{
Expand Down Expand Up @@ -51,18 +51,18 @@
],
"form.serialPort.label": "serieller Anschluss",
"form.serialPort.options": [
["/dev/ttyACM0", "/dev/ttyACM0 -> Serieller Anschluss 0 -> Koprocessor"],
["/dev/ttyACM1", "/dev/ttyACM1 -> Serieller Anschluss 1 -> KNX, RS485 oder RS232"],
["/dev/ttyACM2", "/dev/ttyACM2 -> Serieller Anschluss 2 -> RS485 oder RS232"],
["/dev/ttyACM3", "/dev/ttyACM3 -> Serieller Anschluss 3 -> RS485 oder RS232"]
["ttyACM0", "/dev/ttyACM0 -> Serieller Anschluss 0 -> Koprocessor"],
["ttyACM1", "/dev/ttyACM1 -> Serieller Anschluss 1 -> KNX, RS485 oder RS232"],
["ttyACM2", "/dev/ttyACM2 -> Serieller Anschluss 2 -> RS485 oder RS232"],
["ttyACM3", "/dev/ttyACM3 -> Serieller Anschluss 3 -> RS485 oder RS232"]
]
}
}
},
"services": {
"{ServiceName}": {
"image": "ghcr.io/aseracorp/mbusd:latest",
"container_name": "{ServiceName}",
"container_name": "{ServiceName}-{Context.serialPort}",
"restart": "unless-stopped",
"UID": 1000,
"GID": 1000,
Expand All @@ -76,7 +76,7 @@
},
"command": "-d -L - -p /dev/ttyModbus -s {Context.baudrate} -m {Context.mode}",
"devices": [
"{Context.serialPort}:/dev/ttyModbus:rwm"
"/dev/{Context.serialPort}:/dev/ttyModbus:rwm"
],
"volumes": [
{
Expand Down

0 comments on commit 4050fc1

Please sign in to comment.