This program reads the output from Current Cost CC128 devices through Serial-USB and pushes data to an InfluxDB instance for graphing in Grafana.
currentcost-influx-amd64 [OPTIONS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-i, --influx-url <influx-url> [default: http://localhost:8086]
-u, --usb-path <usb-path> [default: /dev/ttyUSB0]
- Copy the binary and rename to
/usr/local/bin/currentcost-influx
- Copy the systemd unit file to
/etc/systemd/system/
- Modify the systemd file as necessary (InfluxDB URL, USB device path etc). Make sure InfluxDB is up n runing!
- Enable with
systemctl enable currentcost-influx.service
and start withsystemctl start currentcost-influx.service