Skip to content

seanosteen/mqtt_heartbeat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MQTT Heartbeat

This is a simple python-based script, runnning in a container that will publish an updated timestamp and a system uptime value to an MQTT topic of your choice.

Docker Command:

docker run -d \
   -e MQTT_HOST=<CHANGE_ME> \
   -e MQTT_USERNAME=<CHANGE_ME> \
   -e MQTT_PASSWORD=<CHANGE_ME> \
   -e MQTT_TOPIC=Docker/Heartbeats" \
   -e HEARTBEAT_INTERVAL=30 \
   --name mqtt_heartbeat \
   --restart unless-stopped \
   -h <SETHOSTNAMEHERE> \
   seanosteen/mqtt_heartbeat

About

A Python container that attaches to an MQTT broker to publish heartbeat timestamps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published