Sign inSign up

intrepidde/rpi-mqtt-cpucore

By intrepidde

Updated 1 day ago

To send the RPi/ARM CPUcore temperature via MQTT to a broker every minute

Image
1

8.6K

intrepidde/rpi-mqtt-cpucore repository overview

Dockerfile to create a container for Raspberry Pi and other ARM CPUs (tested on RPi-1B/2/3 and Amlogic S905x) 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= 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: 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

Tag summary

Content type

Image

Digest

sha256:59817876f

Size

4.8 MB

Last updated

1 day ago

docker pull intrepidde/rpi-mqtt-cpucore