Skip to main content

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.

Metadata

Release files for cp2mqtt 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cp2mqtt 1.2.1
File Size Uploaded
cp2mqtt-1.2.1.tar.gz 4.8 kB Details

Release files / cp2mqtt-1.2.1.tar.gz

Download URL cp2mqtt-1.2.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
82602c03300ef1708171254213add6a3daf90adcb22b6af5717c1cd6bf99159d
BLAKE2b-256 checksum
How to use checksums
cd20d3d8e405ece11f8611f74cffe1e235ea3af1a90a0336c31bcc196ba4ed2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.4.6

Release history Release notifications | RSS feed

This release

1.2.1 This release

1 release file

1.2.0

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page