Skip to content

Commit

Permalink
Proxy version 1.0.4
Browse files Browse the repository at this point in the history
- added support for silent mode operations
  • Loading branch information
githubDante committed Oct 15, 2024
1 parent c5b5bbc commit 5db44ac
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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)
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -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 {
Expand Down

0 comments on commit 5db44ac

Please sign in to comment.