The original author of the the API and the MQTT bridge is https://github.com/magcode/sunricher-wifi-mqtt
To run the MQTT bridge in Docker the necessary sunricher.properties file must be mounted.
Example sunricher.properties
mqttServer=<protocol and host of MQTT broker>
mqttUsername=<mqtt username, can be empty>
mqttPassword=<mqtt password, can be empty>
mqttVersion=<mqtt version, can be empty, defaults to 3>
logLevel=<log level, e.g. ERROR,WARN,INFO,DEBUG,TRACE>
ledHost=<host of sunricher device>
topic=<mqtt topic>
disableWifi=<true|false>
docker run --rm -v /path/to/sunricher.properties:/usr/app/sunricher.properties dannyyy/sunricher-mqtt:latest
docker run -d -v /path/to/sunricher.properties:/usr/app/sunricher.properties dannyyy/sunricher-mqtt:2.0.2
This project repository (https://github.com/dannyyy/sunricher-wifi-mqtt) also contains a sample manifest for Kubernetes
sunricher-properties and the content of sunricher.properties according to the main readme file.kubectl create namespace sunricher-mqtt)kubectl apply -f sunricher-mqtt.yaml -n sunricher-mqttContent type
Image
Digest
Size
194.2 MB
Last updated
over 6 years ago
docker pull dannyyy/sunricher-mqtt