Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

COOPER to MQTT

Project description

COOPER to MQTT

Travis Release License PyPI

Installing

You can install cp2mqtt directly from PyPI:

sudo pip3 install -U cp2mqtt

Usage

Update config.yml and run

cp2mqtt -c config.yml

Systemd

Insert this snippet to the file /lib/systemd/system/cp2mqtt.service:

[Unit]
Description=COOPER cp2mqtt
After=network.target

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

[Install]
WantedBy=multi-user.target

Start the service:

sudo systemctl start cp2mqtt.service

Enable the service start on boot:

sudo systemctl enable cp2mqtt.service

View the service log:

journalctl -u cp2mqtt.service -f

License

This project is licensed under the MIT License - see the LICENSE file for details.

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 cp2mqtt, version 1.2.1
Filename, size File type Python version Upload date Hashes
Filename, size cp2mqtt-1.2.1.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page