Raspberry Pi (RPi) Docker container with mosquitto_pub
(arm32v6 aka RPi A/B/B+ and later)
Sends the CPUcore temperature of a RPi via MQTT to a broker every minute (to be used in OpenHAB and other smart home setups for example)
create environment file containing: MQTTBROKER= MQTTPORT=1883 MQTTBASE= MQTTPARAMETER=
start with: docker run -d --restart=unless-stopped --name rpi-mqtt-cpucore -h --env-file intrepidde/rpi-mqtt-cpucore:1.1 or docker run -d --restart=unless-stopped --name rpi-mqtt-cpucore --uts="host" --env-file intrepidde/rpi-mqtt-cpucore:1.1
Add "-v :" to command line (example: "-v /etc/ssl/certs:/etc/ssl/certs"), in env file MQTTPARAMETER=--cafile /etc/ssl/certs/ --tls-version tlsv1.1 (WITHOUT quotation!) and change port to 8883
based on: arm32v6/alpine:3.12 using mosquitto_pub (alpine:latest not useable on every RPi because of security changes)(2021/02)