diff --git a/README.md b/README.md index 7428f06..3448e96 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ go-solarmanV5-proxy 192.168.1.3 12345 ``` * `-debug` flag can be used to see what's going on under the hood :sunglasses: + * `-silent` flag will make the proxy completely silent * all messages are logged to stdout for now * Data logger configuration (config_hide.html) ![image](img/logger_tcp_srv.png "Config") @@ -36,3 +37,11 @@ All clients then can be connected to port 8899 of the proxy server make ``` * The binary will be placed in the `build` dir + +---- +#### Install +```console +go install github.com/githubDante/go-solarman-proxy@latest +``` + +* for ready to use binaries see [Releases](https://github.com/githubDante/go-solarman-proxy/releases) \ No newline at end of file diff --git a/main.go b/main.go index 5385e02..85e2a38 100644 --- a/main.go +++ b/main.go @@ -11,6 +11,7 @@ import ( func main() { debug := flag.Bool("debug", false, "enable debug logging") + silent := flag.Bool("silent", false, "enable silent mode") flag.Parse() args := flag.Args() @@ -28,6 +29,9 @@ func main() { if *debug { log.EnableDebug() } + if *silent { + log.EnableSilent() + } proxy := server.NewProxy(ip, int(port)) err = proxy.Serve() if err != nil {