https://github.com/strum355/currentcost-influx
Rust program to read data over Serial-USB from Current Cost CC128 and stored in InfluxDB
https://github.com/strum355/currentcost-influx
currentcost energy-monitor influxdb rust
Last synced: about 1 month ago
JSON representation
Rust program to read data over Serial-USB from Current Cost CC128 and stored in InfluxDB
- Host: GitHub
- URL: https://github.com/strum355/currentcost-influx
- Owner: Strum355
- Created: 2019-12-26T15:51:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-30T15:51:41.000Z (over 6 years ago)
- Last Synced: 2025-03-11T13:23:01.248Z (over 1 year ago)
- Topics: currentcost, energy-monitor, influxdb, rust
- Language: Rust
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Current Cost CC128 to InfluxDB
[](https://cloud.drone.io/Strum355/currentcost-influx)
This program reads the output from Current Cost CC128 devices through Serial-USB and pushes data to an InfluxDB instance for graphing in Grafana.
## Usage
### CLI
```
currentcost-influx-amd64 [OPTIONS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-i, --influx-url [default: http://localhost:8086]
-u, --usb-path [default: /dev/ttyUSB0]
```
### SystemD
1. Copy the binary and rename to `/usr/local/bin/currentcost-influx`
2. Copy the systemd unit file to `/etc/systemd/system/`
3. Modify the systemd file as necessary (InfluxDB URL, USB device path etc). Make sure InfluxDB is up n runing!
4. Enable with `systemctl enable currentcost-influx.service` and start with `systemctl start currentcost-influx.service`