Public Repository

Last pushed: 6 months ago
Short Description
To send the RPi CPUcore temperature via MQTT to a broker every minute
Full Description

Dockerfile to create a container for Raspberry Pi
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

https://github.com/FoxRomeo/rpi-mqtt-cpucore
https://www.intrepid.de/index.php/projects/git-docker/2-intrepidde-rpi-mqtt-cpucore

Docker Pull Command
Owner
intrepidde

Comments (0)