Skip to content

Strum355/currentcost-influx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Current Cost CC128 to InfluxDB

Build Status

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 <influx-url>     [default: http://localhost:8086]
    -u, --usb-path <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

About

Rust program to read data over Serial-USB from Current Cost CC128 and stored in InfluxDB

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages