cp2mqtt-1.2.1
توضیحات
COOPER to MQTT
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cp2mqtt-1.2.1 |
| نام | cp2mqtt |
| نسخه کتابخانه | 1.2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | HARDWARIO s.r.o. |
| ایمیل نویسنده | ask@hardwario.com |
| آدرس صفحه اصلی | https://github.com/hardwario/cp2mqtt |
| آدرس اینترنتی | https://pypi.org/project/cp2mqtt/ |
| مجوز | MIT |
# COOPER to MQTT
[](https://travis-ci.org/hardwario/cp2mqtt)
[](https://github.com/hardwario/cp2mqtt/releases)
[](https://github.com/hardwario/cp2mqtt/blob/master/LICENSE)
[](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.
نحوه نصب
نصب پکیج whl cp2mqtt-1.2.1:
pip install cp2mqtt-1.2.1.whl
نصب پکیج tar.gz cp2mqtt-1.2.1:
pip install cp2mqtt-1.2.1.tar.gz