Skip to content

Commit 80177aa

Browse files
authored
Restructure device tree and remove soc server (evcc-io#1060)
1 parent 70da155 commit 80177aa

File tree

160 files changed

+60
-1450
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+60
-1450
lines changed

β€ŽMakefileβ€Ž

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,4 @@ image-update:
102102

103103
soc:
104104
@echo Version: $(VERSION) $(BUILD_DATE)
105-
go build -o evcc-soc $(BUILD_TAGS) $(BUILD_ARGS) github.com/andig/evcc/soc/client
106-
107-
server:
108-
@echo Version: $(VERSION) $(BUILD_DATE)
109-
go build -o soc-server $(BUILD_TAGS) $(BUILD_ARGS) github.com/andig/evcc/soc/server
110-
111-
publish-server:
112-
GOOS=linux GOARCH=amd64 go build -o soc-server $(BUILD_TAGS) $(BUILD_ARGS) github.com/andig/evcc/soc/server
113-
docker build -f soc/Dockerfile --platform linux/amd64 -t andig/evcc-cloud .
114-
docker push andig/evcc-cloud
105+
go build -o evcc-soc $(BUILD_TAGS) $(BUILD_ARGS) github.com/andig/evcc/cmd/soc

β€Žapi/plugin.goβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package api
2+
3+
// Custom meter/charger/vehicle type
4+
const Custom = "custom"
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"fmt"
55

66
"github.com/andig/evcc/api"
7-
"github.com/andig/evcc/internal"
87
"github.com/andig/evcc/provider"
98
"github.com/andig/evcc/util"
109
)
@@ -19,7 +18,7 @@ type Charger struct {
1918

2019
func init() {
2120
registry.Add("default", NewConfigurableFromConfig)
22-
registry.Add(internal.Custom, NewConfigurableFromConfig)
21+
registry.Add(api.Custom, NewConfigurableFromConfig)
2322
}
2423

2524
// NewConfigurableFromConfig creates a new configurable charger

0 commit comments

Comments
Β (0)