Skip to content

grigals/revpi-mqtt-publisher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RevPi to MQTT Publisher

This service scrapes RevPi tags and forwards them a specified MQTT broker.

RevPi

  • Configure PiCtory as needed.

Building a Docker Image

  • For 64bit ARM
docker buildx build --platform linux/arm64 -t <repository>/revpi-mqtt-publisher:<version_number> --push .
  • For 32bit ARM
docker buildx build --platform linux/arm -t <repository>/revpi-mqtt-publisher:<version_number> --push .

Deployment

  1. On the RevPi, run docker-compose up -d to deploy the app with docker-compose.yml file.
  2. Navigate to /var/lib/docker/volumes/revpi-mqtt-publisher_mqtt-publisher-config/_data and update config.json
  3. Restart container

Debugging

You might need to relink _config.rsc locations. See RevPi Interface repo.

Commands

Send <namespace from config>/in/RESTART_APP to restart the app remotely. Send <namespace from config>/in/<Tag name (see out topic tags)> to set relevant RevPi tags.

Acknowledgements

  • RevPiInterface lib by HelloHungryImDad

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published