Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hardwario/cp2mqtt
COOPER to MQTT Bridge
https://github.com/hardwario/cp2mqtt
iot mqtt multisensor python zeromq
Last synced: about 5 hours ago
JSON representation
COOPER to MQTT Bridge
- Host: GitHub
- URL: https://github.com/hardwario/cp2mqtt
- Owner: hardwario
- License: mit
- Created: 2018-10-08T16:16:58.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-13T12:38:03.000Z (over 2 years ago)
- Last Synced: 2024-10-29T01:29:53.248Z (10 days ago)
- Topics: iot, mqtt, multisensor, python, zeromq
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# COOPER to MQTT
[![Travis](https://img.shields.io/travis/hardwario/cp2mqtt/master.svg)](https://travis-ci.org/hardwario/cp2mqtt)
[![Release](https://img.shields.io/github/release/hardwario/cp2mqtt.svg)](https://github.com/hardwario/cp2mqtt/releases)
[![License](https://img.shields.io/github/license/hardwario/cp2mqtt.svg)](https://github.com/hardwario/cp2mqtt/blob/master/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/cp2mqtt.svg)](https://pypi.org/project/cp2mqtt/)## Installing
You can install **cp2mqtt** directly from PyPI:
```sh
sudo pip3 install -U cp2mqtt
```## Usage
Update config.yml and run
```sh
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**](https://opensource.org/licenses/MIT/) - see the [**LICENSE**](LICENSE) file for details.