Commit graph

2332 commits

Author SHA1 Message Date
andig
0ca26eafa2 Use stable sort for auth map to maintain consistent order 2022-10-04 13:36:11 +02:00
andig
6a9103224a
Cleanup handling of flags (#4718) 2022-10-04 11:27:41 +02:00
andig
98b8ca194d Fix missing config defaults 2022-10-04 11:22:37 +02:00
andig
09283f0b34 Revert "Cleanup handling of flags (#4717)"
This reverts commit 98a43ad599.
2022-10-04 11:03:24 +02:00
andig
98a43ad599
Cleanup handling of flags (#4717) 2022-10-04 10:53:38 +02:00
andig
eca1cb533b chore: simplify 2022-10-03 11:42:16 +02:00
andig
06fa749039 Templates: simplify shortening text 2022-10-02 20:28:41 +02:00
andig
2b5a0e41cf chore: use slices 2022-10-02 20:13:28 +02:00
andig
3a3f6cb4ec chore: fix title use 2022-10-02 19:55:20 +02:00
andig
cb3f393572
Templates: remove unused parameter dependencies (#4699) 2022-10-02 19:51:08 +02:00
andig
b5b73bd107 Templates: simplify language handling 2022-10-02 19:42:26 +02:00
andig
3af110652f Templates: simplify handling of linked templates 2022-10-02 19:20:00 +02:00
andig
8a655efce8
Add random plant id during configure (#4697) 2022-10-02 19:09:42 +02:00
andig
880557594f
Templates: simplify guided setup (#4698) 2022-10-02 19:09:30 +02:00
Andreas Linde
42432c263f
Rename patch targets (#4696)
Make the names more generic

- `patch-asn1` into `patch-asn1-sudo`
- `patch-asn1-docker` into `patch-asn`
2022-10-02 18:41:26 +02:00
Andreas Linde
de1a4058f9
Attempt to make the asn1 patch work in docker (#4695)
Assumption is that there is write access without sudo, as running `sudo patch …` causes the following error:
```
#26 0.112 sudo patch -N -t -d /usr/local/go/src/vendor/golang.org/x/crypto/cryptobyte -i /build/patch/asn1.diff
289
#26 0.112 make: sudo: No such file or directory
```
2022-10-02 18:11:21 +02:00
Andreas Linde
967de7635d
chore: apply asn1 patch to GOROOT (#4694)
* Modify asn1 patch

This mirrors how it is working locally:
- `sudo` needs to be called this way to modify a readonly file the current user only has read access to
- `sudo` may not be used to call `make patch-asn1` as it would change the user context and patch the the file for the root user (it was go 1.17 for the root user)
- the network stack uses the crypt package in `GOROOT` instead of any downlaoded package via modules or vendor

* Makefile fixes

- make sure sudo runs with the current users paths and not with the root paths

* Remove crypto tests and crypto mod

These tests require crypto to be added as a mod, but the network stack won’t use the crypto package in mods or vendors but the system crypto package. Hence the tests will not validate if the network stack use the patched version
2022-10-02 17:51:22 +02:00
andig
21169b84b6 Simplify extracting vehicle from list (#4692) 2022-10-02 16:46:20 +02:00
andig
103107a3f2
Enyaq: add odometer and vehicle details (#4691) 2022-10-02 16:38:45 +02:00
andig
850ba83721 chore: ignore vendor folder 2022-10-02 16:37:21 +02:00
andig
04d198a4e2
Ocpp: request list of required configuration keys (#4687) 2022-10-02 15:15:01 +02:00
andig
edb635faa3
Test soc poll honoring rate limit (#4686) 2022-10-02 14:26:59 +02:00
andig
b7edb0c524 chore: patch before packaging 2022-10-02 10:37:29 +02:00
andig
f9bb02155d chore: add patch check 2022-10-02 10:26:02 +02:00
andig
78156fcbb3 chore: use :: for phony targets 2022-10-02 10:25:14 +02:00
andig
edb3e2f790 chore: fix discuss not available on Windows 2022-10-02 10:24:46 +02:00
andig
7920b28a3b Remove outdated port flag 2022-10-02 10:18:38 +02:00
andig
4dac7c790d Revert "Check for patched go crypto lib at runtime (#4671)"
This reverts commit 940f6f100f.
2022-10-02 10:06:25 +02:00
andig
06bdb8349e
Add dump --cfg command and cleanup flags (#4668) 2022-10-01 21:25:02 +02:00
Andreas Linde
940f6f100f
Check for patched go crypto lib at runtime (#4671)
Panic if the used crypto library is not being used for compiling
2022-10-01 19:15:29 +02:00
andig
a9600a4bd6 chore: patch test 2022-10-01 16:44:08 +02:00
andig
c80b622d5b
chore: use go mod vendor for patching (#4669) 2022-10-01 16:42:21 +02:00
andig
008ef7fe52 chore: fix discuss funcmap 2022-10-01 13:55:44 +02:00
andig
afddfc934b chore: diagnose patch on CI 2022-10-01 13:53:54 +02:00
andig
57dd9355f1 OAuth: fix nil token access 2022-09-30 23:55:56 +02:00
Hofy
05976b479d
Continue soc poll until target reached (#4656) 2022-09-30 22:06:20 +02:00
andig
97bf4acab1 Add discuss command (#4659) 2022-09-30 21:57:22 +02:00
premultiply
ea79afee58
Redact pin and mac from config (#4657) 2022-09-30 21:26:50 +02:00
andig
eeae2f0b97 chore: fix ASN1 patch 2022-09-30 20:40:22 +02:00
premultiply
3b03621123
Sungrow: Fix energy scale (#4648) 2022-09-30 12:47:30 +02:00
Andreas Linde
9f03dc7b1c
Add support for Elli chargers (#4207) 2022-09-30 10:52:17 +02:00
premultiply
b2a6924feb
Sungrow: remove energy scale (#4643) 2022-09-29 23:57:32 +02:00
andig
38b3506d22 Docker: remove ui to speedup build process 2022-09-29 16:21:07 +02:00
andig
cf8e9bb298 Allow 64 characters machine id
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Github & APT (push) Has been cancelled
Release / Hassio Addon (push) Has been cancelled
2022-09-29 09:50:08 +02:00
andig
d72877f0a7 Hide plant id 2022-09-29 09:47:38 +02:00
andig
3cd40f0861 Fix machine-id error message not user-friendly
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Github & APT (push) Has been cancelled
Release / Hassio Addon (push) Has been cancelled
2022-09-28 18:48:52 +02:00
andig
cc320e510a
Re-add cache parameter for vehicles (#4615)
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Github & APT (push) Has been cancelled
Release / Hassio Addon (push) Has been cancelled
2022-09-28 15:41:03 +02:00
andig
dcf615fe49 chore: simplify client generation 2022-09-28 13:44:17 +02:00
andig
f06922b298
Fronius Gen24: fix integer deprecated (#4602) 2022-09-27 17:43:27 +02:00
premultiply
2252758bd9
solax template: fix rs485 (#4596) 2022-09-27 10:49:47 +02:00