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 /lib/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.

Source Distribution

cp2webhook-1.0.1.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file cp2webhook-1.0.1.tar.gz.

File metadata

  • Download URL: cp2webhook-1.0.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for cp2webhook-1.0.1.tar.gz
Algorithm Hash digest
SHA256 fd1c89d387c88301bddf710b72e953f72ff8b090d2a00c405026fd7151569dee
MD5 91066260df667d48a291550576d7425f
BLAKE2b-256 8c658f7d34eaa1976359bd16f8fc95047043839236b12d184c7d3660aaa8ee55

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page