Intrepid.de

Login Form

intrepidde/rpi-mqtt-cpucore

state: running

Dockerfile to create a container for Raspberry Pi  (see similar project for ARM A64/Pine A64 here intrepidde/pinea64-mqtt-cpulipo)
Update: Working/Tested with Amlogic S905x (Nexbox A5) too. (LibreELEC 8.90.0 with Docker AddOn)

Sends the CPUcore temperature of a RPi via MQTT to a broker every minute
(to be used in OpenHAB for example)

create environment file containing:
MQTTBROKER=<hostname of your broker>
MQTTPORT=1883
MQTTBASE=<MQTT Base Path>
MQTTPARAMETER=<other Parameters or empty>

start with:
docker run -d --restart=unless-stopped --name rpi-mqtt-cpucore -h <container-hostname> --env-file <path-to-env-file> intrepidde/rpi-mqtt-cpucore:1.1
or
docker run -d --restart=unless-stopped --name rpi-mqtt-cpucore --uts="host" --env-file <path-to-env-file> intrepidde/rpi-mqtt-cpucore:1.1

Add "-v <local path>:<container path>" to command line (example: "-v /etc/ssl/certs:/etc/ssl/certs"),
in env file MQTTPARAMETER=--cafile /etc/ssl/certs/<your ca-file> --tls-version tlsv1.1
(WITHOUT quotation!) and change port to 8883

based on: armhf/alpine:3.4 using mosquitto_pub