https://github.com/hardwario/cp2influxdb
COOPER to InfluxDB
https://github.com/hardwario/cp2influxdb
cooper influxdb iot multisensor python
Last synced: 4 months ago
JSON representation
COOPER to InfluxDB
- Host: GitHub
- URL: https://github.com/hardwario/cp2influxdb
- Owner: hardwario
- License: mit
- Created: 2019-02-09T21:53:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-13T12:38:19.000Z (almost 4 years ago)
- Last Synced: 2025-01-30T20:06:40.306Z (over 1 year ago)
- Topics: cooper, influxdb, iot, multisensor, python
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# COOPER to InfluxDB
[](https://travis-ci.org/hardwario/cp2influxdb)
[](https://github.com/hardwario/cp2influxdb/releases)
[](https://github.com/hardwario/cp2influxdb/blob/master/LICENSE)
[](https://pypi.org/project/cp2influxdb/)
## Installing
You can install **cp2influxdb** directly from PyPI:
```sh
sudo pip3 install -U cp2influxdb
```
## Usage
Update config.yml and run
```sh
cp2influxdb -c config.yml
```
### Systemd
Insert this snippet to the file /etc/systemd/system/cp2influxdb.service:
```
[Unit]
Description=COOPER cp2influxdb
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
User=pi
ExecStart=/usr/local/bin/cp2influxdb -c /etc/cooper/cp2influxdb.yml
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
```
Start the service:
sudo systemctl start cp2influxdb.service
Enable the service start on boot:
sudo systemctl enable cp2influxdb.service
View the service log:
journalctl -u cp2influxdb.service -f
## License
This project is licensed under the [**MIT License**](https://opensource.org/licenses/MIT/) - see the [**LICENSE**](LICENSE) file for details.