spali / go-rscp

Go library to communicate with a E3DC system implementing the RSCP (Remote Storage Control Protocol)
https://github.com/spali/go-rscp
MIT License
27 stars 9 forks source link
battery binary client command-line commandline e3-dc e3dc go go-e3dc go-rscp golang hauskraftwerk json quattroporte rscp s10 smart smarthome solar speicher

go-rscp & e3dc command line utility

Build Status Coverage Status CodeQL Go Report Card GoDoc GitHub license

Go library (rscp) and command line utility (e3dc) to communicate with a E3DC system implementing the RSCP (Remote Storage Control Protocol).

Please be gentle with me, this is my first real go project and it's bigger than I thought ;) There is still a lot to improve to be a good reusable library, but most works for my specific usecase using it as a command line utility. Contributions are very welcome, see also the check TODO or search in the code for TODO: comments.

Usage

All arguments can also be set as E3DC_ prefixed environment variable or in a config file like:

host 127.0.0.1
user myuser
password mypassword
key mykey

rscp library

See cmd/example for a small example with different requests and responses.

e3dc command line utility

Request sent, is always last argument or can be piped through stdin as json string.

See the examples below for more information.

Examples

*Note: top element has always to be an array*

*Note: these examples assume you have the default .config file setup or exported the environment variables.*

*Note: all example use the default output format, check the help ./e3dc -help for other formats.*

TODO