Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hardwario/cp2webhook
COOPER to Webhook (REST API endpoint)
https://github.com/hardwario/cp2webhook
cooper iot python webhook zeromq
Last synced: 6 days ago
JSON representation
COOPER to Webhook (REST API endpoint)
- Host: GitHub
- URL: https://github.com/hardwario/cp2webhook
- Owner: hardwario
- License: mit
- Created: 2019-04-23T08:41:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-13T12:36:57.000Z (over 2 years ago)
- Last Synced: 2024-09-29T09:25:44.406Z (about 2 months ago)
- Topics: cooper, iot, python, webhook, zeromq
- Language: Python
- Homepage:
- Size: 10.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 Webhook
[![Travis](https://img.shields.io/travis/hardwario/cp2webhook/master.svg)](https://travis-ci.org/hardwario/cp2webhook)
[![Release](https://img.shields.io/github/release/hardwario/cp2webhook.svg)](https://github.com/hardwario/cp2webhook/releases)
[![License](https://img.shields.io/github/license/hardwario/cp2webhook.svg)](https://github.com/hardwario/cp2webhook/blob/master/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/cp2webhook.svg)](https://pypi.org/project/cp2webhook/)## Installing
You can install **cp2webhook** directly from PyPI:
```sh
sudo pip3 install -U cp2webhook
```or from source:
```sh
git clone https://github.com/hardwario/cp2webhook.git
cd cp2webhook
sudo pip3 install -r requirements.txt
sudo pip3 install -e .
```> Note: Parameter `-e` instructs to install files as symlinks, so changes to the source files will be immediately available to other users of the package on the host.
## Usage
Update config.yml and run
```sh
cp2webhook -c config.yml
```### Systemd
Insert this snippet to the file /etc/systemd/system/cp2webhook.service:
```
[Unit]
Description=COOPER cp2webhook
After=network.target[Service]
Type=simple
User=pi
ExecStart=/usr/local/bin/cp2webhook -c /etc/cooper/cp2webhook.yml
Restart=always
RestartSec=5
StartLimitIntervalSec=0[Install]
WantedBy=multi-user.target
```Start the service:
sudo systemctl start cp2webhook.service
Enable the service start on boot:
sudo systemctl enable cp2webhook.service
View the service log:
journalctl -u cp2webhook.service -f
## License
This project is licensed under the [**MIT License**](https://opensource.org/licenses/MIT/) - see the [**LICENSE**](LICENSE) file for details.