Skip to content

HilscherAutomation/netFIELD-example-device-manager-plugin

Repository files navigation

netFIELD cockpit plugin template

License: MIT

This template helps you create a cockpit plugin for the Hilscher Connect Gateway.

enter your the Menu name you wish to have in the uiplugin/manifest.json file in the label value.

enter the start file of your app in the uiplugin/manifest.json file in the path value.

adjust your dockerfile accordingly

then

Docker build for arm

docker build --rm -f "Dockerfile.arm32v7" -t hilschercockpitpinger:latest .

or

Docker build for x86

docker build --rm -f "Dockerfile.x86" -t hilschercockpitpinger:latest .

then

Docker run

docker run \
    -v /usr/local/share/cockpit:/usr/local/share/cockpit/ \
    -v /etc/gateway/mqtt-config.json:/etc/gateway/mqtt-config.json:ro \
    hilschercockpitpinger:latest

For integration into the netFIELD.io Container Manager ...

add the following Container create options into the Container Create tab

{
  "HostConfig": {
    "Binds": [
      "/usr/local/share/cockpit:/usr/local/share/cockpit",
      "/etc/gateway/mqtt-config.json:/etc/gateway/mqtt-config.json:ro"
    ]
  }
}