Compare commits

...

3 Commits

Author SHA1 Message Date
Rob Watson
6a8af667c3 chore: increase timeouts 2023-07-16 08:56:30 +02:00
Rob Watson
e38fb4d85f chore: update README 2023-07-16 08:56:30 +02:00
Rob Watson
6ae59ae7d9 chore: bump Go version 2023-07-16 08:56:25 +02:00
4 changed files with 11 additions and 5 deletions

View File

@ -1,4 +1,4 @@
FROM golang:1.19-alpine3.15 as go-builder FROM golang:1.20-alpine3.15 as go-builder
ENV GOPATH "" ENV GOPATH ""
RUN apk add git RUN apk add git

View File

@ -2,6 +2,12 @@
A side project to collect, transport and store data from a Goodwe solar inverter. A side project to collect, transport and store data from a Goodwe solar inverter.
## Build
```
GOOS=linux GOARCH=arm go build -o solar-toolkit-daemon ./cmd/daemon
```
## License ## License
Licensed under the MIT license. See the LICENSE file. Licensed under the MIT license. See the LICENSE file.

View File

@ -19,9 +19,9 @@ type Conn interface {
} }
const ( const (
maxAttempts = 3 maxAttempts = 4
timeout = time.Second * 5 timeout = time.Second * 10
readBufferSizeBytes = 4_096 readBufferSizeBytes = 8_192
) )
// Send writes the command to the provided Writer, and reads and validates the // Send writes the command to the provided Writer, and reads and validates the

2
go.mod
View File

@ -1,6 +1,6 @@
module git.netflux.io/rob/solar-toolkit module git.netflux.io/rob/solar-toolkit
go 1.19 go 1.20
require ( require (
github.com/jmoiron/sqlx v1.3.5 github.com/jmoiron/sqlx v1.3.5