splink-influx

command module
v0.0.0-...-f1ed34c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

A utility to read performance data from Selectronic SP PRO inverters and send to the InfluxDB time-series database.

Installation

The utility expects the serial connection to the inverter to be available over Ethernet. You may use a dedicated serial to Ethernet dongle (such as that sold by Selectronic). An alternative and cheaper solution is to run ser2net on a host with a USB serial adapter.

Compiling this Go application should yield a static executable which can be deployed to a convenient host with access to both the serial host and the InfluxDB host. A simple systemd unit file might look like the following:

[Unit]
Description=Interface between SP LINK protocol and InfluxDB
After=network.target

[Service]
Type=simple
ExecStart=/usr/local/bin/splink

[Install]
WantedBy=multi-user.target

Configuration

Configuration uses the Viper configuration system. Place a file named config.yaml, config.toml, config.json (or other supported formats) in either the directory of the splink executable or /etc/splink. Supported configuration options are:

  • host -- the serial to Ethernet host
  • port -- the port over which serial to Ethernet is served
  • influx_host -- the host running InfluxDB
  • influx_port -- the port on which InfluxDB is listening for data
  • password -- the management password for the SP PRO

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址