https://github.com/hardwario/cp2azure
COOPER to Azure Bridge
https://github.com/hardwario/cp2azure
azure iot multisensor python zeromq
Last synced: 30 days ago
JSON representation
COOPER to Azure Bridge
- Host: GitHub
- URL: https://github.com/hardwario/cp2azure
- Owner: hardwario
- License: mit
- Created: 2018-09-28T08:22:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-13T12:40:53.000Z (almost 4 years ago)
- Last Synced: 2026-02-20T17:12:08.705Z (3 months ago)
- Topics: azure, iot, multisensor, python, zeromq
- Language: Python
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# COOPER to Azure IoT Hub
[](https://travis-ci.org/hardwario/cp2azure)
[](https://github.com/hardwario/cp2azure/releases)
[](https://github.com/hardwario/cp2azure/blob/master/LICENSE)
## Installing
You can install **cp2azure** directly from PyPI:
```sh
sudo apt-get install libboost-python-dev
sudo pip3 install -U cp2azure
```
## Usage
Update config.yml and run
```sh
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**](https://opensource.org/licenses/MIT/) - see the [**LICENSE**](LICENSE) file for details.