Skip to main content

COOPER to Webhook

Project description

COOPER to Webhook

Travis Release License PyPI

Installing

You can install cp2webhook directly from PyPI:

sudo pip3 install -U cp2webhook

or from source:

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

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 - 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 cp2webhook, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size cp2webhook-1.1.0.tar.gz (5.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page