Skip to content

FoxRomeo/rpi-mqtt-cpucore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rpi-mqtt-cpucore

Docker pulls
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)

https://github.com/FoxRomeo/rpi-mqtt-cpucore

About

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)

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors