Skip to main content

xComfortMQTT

Project description

xComfortMQTT

Travis Release License PyPI

Installing

You can install xComfortMQTT directly from PyPI:

sudo pip3 install -U xComfortMQTT

Config

Insert this snippet to the file /etc/xComfortMQTT.yml:

---
shc:
  host: 192.168.0.2
  username: admin
  password: very-strong-password

mqtt:
  host: 192.168.0.1

Usage

Update /etc/xComfortMQTT.yml and run

xComfortMQTT -c /etc/xComfortMQTT.yml

Systemd

Insert this snippet to the file /etc/systemd/system/xComfortMQTT.service:

[Unit]
Description=xComfortMQTT
After=network.target

[Service]
Type=simple
User=pi
ExecStart=/usr/local/bin/xComfortMQTT -c /etc/xComfortMQTT.yml
Restart=always
RestartSec=5
StartLimitIntervalSec=0

[Install]
WantedBy=multi-user.target

Enable the service start on boot:

sudo systemctl enable xComfortMQTT.service

Start the service:

sudo systemctl start xComfortMQTT.service

View the service log:

journalctl -u xComfortMQTT.service -f

PM2

pm2 start /usr/bin/python3 --name "xComfortMQTT" -- /usr/local/bin/xComfortMQTT -c /etc/xComfortMQTT.yml
pm2 save

Development

git clone git@github.com:blavka/xComfortMQTT.git
cd xComfortMQTT
./test.sh
sudo python3 setup.py develop

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for xComfortMQTT, version 1.1.1
Filename, size File type Python version Upload date Hashes
Filename, size xComfortMQTT-1.1.1.tar.gz (7.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page