Skip to content

Connect to a running pellmon instance over DBUS and publish all data on MQTT. Refactor to Python3

License

Notifications You must be signed in to change notification settings

bec65/pellmonMQTT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pellmonMQTT

An MQTT client for PellMon. This is an attempt to refactor/migrate from Python2.7 -> Python3. Tested running python 3.12.7

PellmonMQTT connects to the PellMon DBUS interface and publishes all data at pellmon/item and subscribes to all settings at pellmon/settings/item. Changed data items are republished and received data is written to the corresponding PellMon item. Events are published to pellmon/__event__.

Usage:

usage: pellmonMQTT [-h] -u user -p password [-H HOST] [-P PORT] [-d {SESSION,SYSTEM}]

options:
  -h, --help            show this help message and exit
  -H HOST, --host HOST  mqtt host to connect to. Defaults to localhost
  -P PORT, --port PORT  network port to connect to. Defaults to 1883
  -t TOPIC, --topic TOPIC
                        Defines the topic to publish/listen to, default is pellmon
  -u USERNAME, --username USERNAME
                        Define a username which will be used to connect to the mqtt broker
  -p PASSWORD, --password PASSWORD
                        Define a password which will be used to connect to the mqtt broker
  -d {SESSION,SYSTEM}, --dbus {SESSION,SYSTEM}
                        which bus to use, SESSION is default

About

Connect to a running pellmon instance over DBUS and publish all data on MQTT. Refactor to Python3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%