Skip to main content

COOPER to Azure IoT Hub

Project description

COOPER to Azure IoT Hub

Travis Release License

Installing

You can install cp2azure directly from PyPI:

sudo apt-get install libboost-python-dev
sudo pip3 install -U cp2azure

Usage

Update config.yml and run

cp2azure -c config.yml

Systemd

Insert this snippet to the file /lib/systemd/system/cp2azure.service:

[Unit]
Description=COOPER cp2azure
After=network.target

[Service]
Type=simple
User=pi
ExecStart=/usr/local/bin/cp2azure -c /etc/cooper/cp2azure.yml
Restart=always
RestartSec=5
StartLimitIntervalSec=0

[Install]
WantedBy=multi-user.target

Start the service:

sudo systemctl start cp2azure.service

Enable the service start on boot:

sudo systemctl enable cp2azure.service

View the service log:

journalctl -u cp2azure.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

cp2azure-1.4.0.tar.gz (4.6 kB view hashes)

Uploaded Source

Supported by

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