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 details)

Uploaded Source

File details

Details for the file cp2azure-1.4.0.tar.gz.

File metadata

  • Download URL: cp2azure-1.4.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.7

File hashes

Hashes for cp2azure-1.4.0.tar.gz
Algorithm Hash digest
SHA256 55f2b5d775303627d1b8dec08ff0d01d2215ab9c84e74228831677ebde06b707
MD5 540fb7a9557ba5c1409424e1f060f2eb
BLAKE2b-256 2649af6e94e8d5a459b1f6c344c4ef2bba53aaa79688cddcd3d25c1edc8be43f

See more details on using hashes here.

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