Skip to content

Commit

Permalink
new App: modbus2mqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
madejackson committed Oct 28, 2024
1 parent b2dc672 commit e9ff45f
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 0 deletions.
73 changes: 73 additions & 0 deletions servapps/modbus2mqtt/cosmos-compose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"cosmos-installer": {
"form": [
{
"name": "adminOnly",
"label": "Do you want to make this service admin only?",
"initialValue": true,
"type": "checkbox"
}
],
"translation": {
"de": {
"form.adminOnly.label": "Möchten Sie diesen Dienst nur für Administratoren zugänglich machen?"
}
}
},
"minVersion": "0.16.0",
"services": {
"{ServiceName}": {
"container_name": "{ServiceName}",
"labels": {
"cosmos-force-network-secured": "true",
"cosmos-auto-update": "true",
"cosmos-icon": "https://aseracorp.github.io/resiSTORE/servapps/modbus2mqtt/icon.png",
"cosmos-stack": "{ServiceName}",
"cosmos-stack-main": "{ServiceName}"
},
"image": "modbus2mqtt/modbus2mqtt-{CPU_ARCH}",
"restart": "unless-stopped",
"volumes": [
{
"source": "{ServiceName}-data",
"target": "/data",
"type": "volume"
}
],
"UID": 1000,
"GID": 1000,
"environment": [
"PUID=1000",
"PGID=1000",
"TZ=Europe/Zurich",
"DEBUG=httpserver config",
"MODBUS2MQTT_CONFIG_URL=http://{ServiceName}:3000"
],
"links": [
"Mosquitto"
],
"routes": [
{
"name": "{ServiceName}",
"description": "Expose {ServiceName}-Configuration to the web",
"useHost": true,
"target": "http://{ServiceName}:3000",
"mode": "SERVAPP",
"Timeout": 14400000,
"ThrottlePerMinute": 12000,
"BlockCommonBots": true,
"SmartShield": {
"Enabled": true
},
"AuthEnabled": true
{if Context.adminOnly}
, "AuthAdmin": true
{/if}
}
],
"group_add": [
"dialout"
]
}
}
}
15 changes: 15 additions & 0 deletions servapps/modbus2mqtt/description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "HA-enoceanmqtt",
"description": "Gateway Modbus to MQTT",
"longDescription": "<p></p>",
"translation": {
"de": {
"description": "Gateway von Modbus auf MQTT",
"longDescription": "<p></p>"
}
},
"tags": ["smart home", "home automation", "IoT", "Raspberry Pi", "local server", "privacy", "control", "automation", "devices", "services", "home assistant"],
"repository": "https://github.com/modbus2mqtt/server",
"image": "https://hub.docker.com/r/modbus2mqtt/modbus2mqtt-{CPU_ARCH}",
"supported_architectures": ["amd64", "aarch64", "armv7"]
}
Binary file added servapps/modbus2mqtt/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added servapps/modbus2mqtt/screenshots/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e9ff45f

Please sign in to comment.