Update evcc repo uri
This commit is contained in:
parent
722e3e0ed1
commit
c77e455809
219 changed files with 536 additions and 536 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
|
@ -170,7 +170,7 @@ jobs:
|
||||||
- name: Prepare Image
|
- name: Prepare Image
|
||||||
run: |
|
run: |
|
||||||
make prepare-image
|
make prepare-image
|
||||||
sed -i -e 's#-ld.*$#& -X github.com/andig/evcc/server/updater.Password=${{ secrets.IMAGE_PASS }}#' buildflags/github.com/andig/evcc/buildflags.txt
|
sed -i -e 's#-ld.*$#& -X github.com/evcc-io/evcc/server/updater.Password=${{ secrets.IMAGE_PASS }}#' buildflags/github.com/evcc-io/evcc/buildflags.txt
|
||||||
mkdir /home/runner/.config/gokrazy
|
mkdir /home/runner/.config/gokrazy
|
||||||
echo ${{ secrets.IMAGE_PASS }}> /home/runner/.config/gokrazy/http-password.txt
|
echo ${{ secrets.IMAGE_PASS }}> /home/runner/.config/gokrazy/http-password.txt
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ builds:
|
||||||
flags:
|
flags:
|
||||||
- -tags=release
|
- -tags=release
|
||||||
ldflags:
|
ldflags:
|
||||||
- -X github.com/andig/evcc/server.Version={{.Version}} -X github.com/andig/evcc/server.Commit={{.ShortCommit}} -s -w
|
- -X github.com/evcc-io/evcc/server.Version={{.Version}} -X github.com/evcc-io/evcc/server.Commit={{.ShortCommit}} -s -w
|
||||||
env:
|
env:
|
||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
goos:
|
goos:
|
||||||
|
|
|
||||||
12
Makefile
12
Makefile
|
|
@ -9,7 +9,7 @@ SHA := $(shell test -d .git && git rev-parse --short HEAD)
|
||||||
VERSION := $(if $(TAG_NAME),$(TAG_NAME),$(SHA))
|
VERSION := $(if $(TAG_NAME),$(TAG_NAME),$(SHA))
|
||||||
BUILD_DATE := $(shell date -u '+%Y-%m-%d_%H:%M:%S')
|
BUILD_DATE := $(shell date -u '+%Y-%m-%d_%H:%M:%S')
|
||||||
BUILD_TAGS := -tags=release
|
BUILD_TAGS := -tags=release
|
||||||
LD_FLAGS := -X github.com/andig/evcc/server.Version=$(VERSION) -X github.com/andig/evcc/server.Commit=$(SHA) -s -w
|
LD_FLAGS := -X github.com/evcc-io/evcc/server.Version=$(VERSION) -X github.com/evcc-io/evcc/server.Commit=$(SHA) -s -w
|
||||||
BUILD_ARGS := -ldflags='$(LD_FLAGS)'
|
BUILD_ARGS := -ldflags='$(LD_FLAGS)'
|
||||||
|
|
||||||
# docker
|
# docker
|
||||||
|
|
@ -20,7 +20,7 @@ TARGETS := arm.v6,arm.v8,amd64
|
||||||
# image
|
# image
|
||||||
IMAGE_FILE := evcc_$(TAG_NAME).image
|
IMAGE_FILE := evcc_$(TAG_NAME).image
|
||||||
IMAGE_ROOTFS := evcc_$(TAG_NAME).rootfs
|
IMAGE_ROOTFS := evcc_$(TAG_NAME).rootfs
|
||||||
IMAGE_OPTIONS := -hostname evcc -http_port 8080 github.com/gokrazy/serial-busybox github.com/gokrazy/breakglass github.com/andig/evcc
|
IMAGE_OPTIONS := -hostname evcc -http_port 8080 github.com/gokrazy/serial-busybox github.com/gokrazy/breakglass github.com/evcc-io/evcc
|
||||||
|
|
||||||
default: build
|
default: build
|
||||||
|
|
||||||
|
|
@ -87,9 +87,9 @@ prepare-image:
|
||||||
go get github.com/gokrazy/tools/cmd/gokr-packer@latest
|
go get github.com/gokrazy/tools/cmd/gokr-packer@latest
|
||||||
mkdir -p flags/github.com/gokrazy/breakglass
|
mkdir -p flags/github.com/gokrazy/breakglass
|
||||||
echo "-forward=private-network" > flags/github.com/gokrazy/breakglass/flags.txt
|
echo "-forward=private-network" > flags/github.com/gokrazy/breakglass/flags.txt
|
||||||
mkdir -p buildflags/github.com/andig/evcc
|
mkdir -p buildflags/github.com/evcc-io/evcc
|
||||||
echo "$(BUILD_TAGS),gokrazy" > buildflags/github.com/andig/evcc/buildflags.txt
|
echo "$(BUILD_TAGS),gokrazy" > buildflags/github.com/evcc-io/evcc/buildflags.txt
|
||||||
echo "-ldflags=$(LD_FLAGS)" >> buildflags/github.com/andig/evcc/buildflags.txt
|
echo "-ldflags=$(LD_FLAGS)" >> buildflags/github.com/evcc-io/evcc/buildflags.txt
|
||||||
|
|
||||||
image:
|
image:
|
||||||
gokr-packer -overwrite=$(IMAGE_FILE) -target_storage_bytes=1258299392 $(IMAGE_OPTIONS)
|
gokr-packer -overwrite=$(IMAGE_FILE) -target_storage_bytes=1258299392 $(IMAGE_OPTIONS)
|
||||||
|
|
@ -105,7 +105,7 @@ image-update:
|
||||||
|
|
||||||
soc:
|
soc:
|
||||||
@echo Version: $(VERSION) $(BUILD_DATE)
|
@echo Version: $(VERSION) $(BUILD_DATE)
|
||||||
go build -o evcc-soc $(BUILD_TAGS) $(BUILD_ARGS) github.com/andig/evcc/cmd/soc
|
go build -o evcc-soc $(BUILD_TAGS) $(BUILD_ARGS) github.com/evcc-io/evcc/cmd/soc
|
||||||
|
|
||||||
stamps:
|
stamps:
|
||||||
docker pull hacksore/hks
|
docker pull hacksore/hks
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
# evcc <!-- omit in toc -->
|
# evcc <!-- omit in toc -->
|
||||||
|
|
||||||
[](https://open.vscode.dev/andig/evcc)
|
[](https://open.vscode.dev/andig/evcc)
|
||||||
[](https://github.com/andig/evcc/actions?query=workflow%3ABuild)
|
[](https://github.com/evcc-io/evcc/actions?query=workflow%3ABuild)
|
||||||
[](https://goreportcard.com/report/github.com/andig/evcc)
|
[](https://goreportcard.com/report/github.com/evcc-io/evcc)
|
||||||
[](https://github.com/andig/evcc/releases)
|
[](https://github.com/evcc-io/evcc/releases)
|
||||||
[](https://hub.docker.com/r/andig/evcc)
|
[](https://hub.docker.com/r/andig/evcc)
|
||||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=48YVXXA7BDNC2)
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=48YVXXA7BDNC2)
|
||||||
|
|
||||||
|
|
@ -23,7 +23,7 @@ EVCC is an extensible EV Charge Controller with PV integration implemented in [G
|
||||||
- status notifications using [Telegram](https://telegram.org), [PushOver](https://pushover.net) and [many more](https://containrrr.dev/shoutrrr/)
|
- status notifications using [Telegram](https://telegram.org), [PushOver](https://pushover.net) and [many more](https://containrrr.dev/shoutrrr/)
|
||||||
- logging using [InfluxDB](https://www.influxdata.com) and [Grafana](https://grafana.com/grafana/)
|
- logging using [InfluxDB](https://www.influxdata.com) and [Grafana](https://grafana.com/grafana/)
|
||||||
- granular charge power control down to mA steps with supported chargers (labeled by e.g. smartWB als [OLC](https://board.evse-wifi.de/viewtopic.php?f=16&t=187))
|
- granular charge power control down to mA steps with supported chargers (labeled by e.g. smartWB als [OLC](https://board.evse-wifi.de/viewtopic.php?f=16&t=187))
|
||||||
- REST and MQTT [APIs](#api) for integration with home automation systems (e.g. [HomeAssistant](https://github.com/andig/evcc-hassio-addon))
|
- REST and MQTT [APIs](#api) for integration with home automation systems (e.g. [HomeAssistant](https://github.com/evcc-io/evcc-hassio-addon))
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ package api
|
||||||
|
|
||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
//go:generate mockgen -package mock -destination ../mock/mock_api.go github.com/andig/evcc/api Charger,ChargeState,ChargePhases,Identifier,Meter,MeterEnergy,Vehicle,ChargeRater,Battery
|
//go:generate mockgen -package mock -destination ../mock/mock_api.go github.com/evcc-io/evcc/api Charger,ChargeState,ChargePhases,Identifier,Meter,MeterEnergy,Vehicle,ChargeRater,Battery
|
||||||
|
|
||||||
// ChargeMode are charge modes modeled after OpenWB
|
// ChargeMode are charge modes modeled after OpenWB
|
||||||
type ChargeMode string
|
type ChargeMode string
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ var ErrNotAvailable = errors.New("not available")
|
||||||
var ErrMustRetry = errors.New("must retry")
|
var ErrMustRetry = errors.New("must retry")
|
||||||
|
|
||||||
// ErrSponsorRequired indicates that a sponsor token is required
|
// ErrSponsorRequired indicates that a sponsor token is required
|
||||||
var ErrSponsorRequired = errors.New("sponsorship required, see https://github.com/andig/evcc#sponsorship")
|
var ErrSponsorRequired = errors.New("sponsorship required, see https://github.com/evcc-io/evcc#sponsorship")
|
||||||
|
|
||||||
// ErrTimeout is the error returned when a timeout happened.
|
// ErrTimeout is the error returned when a timeout happened.
|
||||||
// Modeled after context.DeadlineError
|
// Modeled after context.DeadlineError
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ const Template = (args, { argTypes }) => ({
|
||||||
});
|
});
|
||||||
|
|
||||||
const releaseNotes =
|
const releaseNotes =
|
||||||
'<h1>0.48</h1><p>Bug fixes:</p><ul><li>Withdraw Kia and Hyundai apis (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="817450535" data-permission-text="Title is private" data-url="https://github.com/andig/evcc/issues/699" data-hovercard-type="pull_request" data-hovercard-url="/andig/evcc/pull/699/hovercard" href="https://github.com/andig/evcc/pull/699">#699</a>)</li><li>Simplify Tesla integration and fix upstream changes (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="817525274" data-permission-text="Title is private" data-url="https://github.com/andig/evcc/issues/700" data-hovercard-type="pull_request" data-hovercard-url="/andig/evcc/pull/700/hovercard" href="https://github.com/andig/evcc/pull/700">#700</a>)</li><li>SHM: Check connected status (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="811567860" data-permission-text="Title is private" data-url="https://github.com/andig/evcc/issues/673" data-hovercard-type="pull_request" data-hovercard-url="/andig/evcc/pull/673/hovercard" href="https://github.com/andig/evcc/pull/673">#673</a>)</li></ul><p>Enhancements:</p><ul><li>Add Seat api (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="812885392" data-permission-text="Title is private" data-url="https://github.com/andig/evcc/issues/681" data-hovercard-type="pull_request" data-hovercard-url="/andig/evcc/pull/681/hovercard" href="https://github.com/andig/evcc/pull/681">#681</a>)</li><li>Add Skoda api (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="812883796" data-permission-text="Title is private" data-url="https://github.com/andig/evcc/issues/680" data-hovercard-type="pull_request" data-hovercard-url="/andig/evcc/pull/680/hovercard" href="https://github.com/andig/evcc/pull/680">#680</a>)</li><li>Add Peugeot/Opel/Citroen api (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="815612446" data-permission-text="Title is private" data-url="https://github.com/andig/evcc/issues/692" data-hovercard-type="pull_request" data-hovercard-url="/andig/evcc/pull/692/hovercard" href="https://github.com/andig/evcc/pull/692">#692</a>)</li><li>KEBA: Support mA current resolution adjustments (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="801358501" data-permission-text="Title is private" data-url="https://github.com/andig/evcc/issues/646" data-hovercard-type="pull_request" data-hovercard-url="/andig/evcc/pull/646/hovercard" href="https://github.com/andig/evcc/pull/646">#646</a>)</li></ul>';
|
'<h1>0.48</h1><p>Bug fixes:</p><ul><li>Withdraw Kia and Hyundai apis (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="817450535" data-permission-text="Title is private" data-url="https://github.com/evcc-io/evcc/issues/699" data-hovercard-type="pull_request" data-hovercard-url="/andig/evcc/pull/699/hovercard" href="https://github.com/evcc-io/evcc/pull/699">#699</a>)</li><li>Simplify Tesla integration and fix upstream changes (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="817525274" data-permission-text="Title is private" data-url="https://github.com/evcc-io/evcc/issues/700" data-hovercard-type="pull_request" data-hovercard-url="/andig/evcc/pull/700/hovercard" href="https://github.com/evcc-io/evcc/pull/700">#700</a>)</li><li>SHM: Check connected status (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="811567860" data-permission-text="Title is private" data-url="https://github.com/evcc-io/evcc/issues/673" data-hovercard-type="pull_request" data-hovercard-url="/andig/evcc/pull/673/hovercard" href="https://github.com/evcc-io/evcc/pull/673">#673</a>)</li></ul><p>Enhancements:</p><ul><li>Add Seat api (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="812885392" data-permission-text="Title is private" data-url="https://github.com/evcc-io/evcc/issues/681" data-hovercard-type="pull_request" data-hovercard-url="/andig/evcc/pull/681/hovercard" href="https://github.com/evcc-io/evcc/pull/681">#681</a>)</li><li>Add Skoda api (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="812883796" data-permission-text="Title is private" data-url="https://github.com/evcc-io/evcc/issues/680" data-hovercard-type="pull_request" data-hovercard-url="/andig/evcc/pull/680/hovercard" href="https://github.com/evcc-io/evcc/pull/680">#680</a>)</li><li>Add Peugeot/Opel/Citroen api (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="815612446" data-permission-text="Title is private" data-url="https://github.com/evcc-io/evcc/issues/692" data-hovercard-type="pull_request" data-hovercard-url="/andig/evcc/pull/692/hovercard" href="https://github.com/evcc-io/evcc/pull/692">#692</a>)</li><li>KEBA: Support mA current resolution adjustments (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="801358501" data-permission-text="Title is private" data-url="https://github.com/evcc-io/evcc/issues/646" data-hovercard-type="pull_request" data-hovercard-url="/andig/evcc/pull/646/hovercard" href="https://github.com/evcc-io/evcc/pull/646">#646</a>)</li></ul>';
|
||||||
|
|
||||||
export const AktuelleVersion = Template.bind({});
|
export const AktuelleVersion = Template.bind({});
|
||||||
AktuelleVersion.args = {
|
AktuelleVersion.args = {
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
releaseNotesUrl: function (version) {
|
releaseNotesUrl: function (version) {
|
||||||
return `https://github.com/andig/evcc/releases/tag/${version}`;
|
return `https://github.com/evcc-io/evcc/releases/tag/${version}`;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="flex-grow-1 d-flex flex-column justify-content-between">
|
<div class="flex-grow-1 d-flex flex-column justify-content-between">
|
||||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<a class="navbar-brand" href="https://github.com/andig/evcc">
|
<a class="navbar-brand" href="https://github.com/evcc-io/evcc">
|
||||||
<Logo class="logo"></Logo>
|
<Logo class="logo"></Logo>
|
||||||
</a>
|
</a>
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a
|
<a
|
||||||
class="nav-link"
|
class="nav-link"
|
||||||
href="https://github.com/andig/evcc/discussions"
|
href="https://github.com/evcc-io/evcc/discussions"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
{{ $t("header.support") }}
|
{{ $t("header.support") }}
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
Erzeugen einer Konfigurationsdatei mit Namen
|
Erzeugen einer Konfigurationsdatei mit Namen
|
||||||
<code>evcc.yaml</code>. Die Standardkonfiguration
|
<code>evcc.yaml</code>. Die Standardkonfiguration
|
||||||
<code>evcc.dist.yaml</code> kann dafür als Vorlage dienen (<a
|
<code>evcc.dist.yaml</code> kann dafür als Vorlage dienen (<a
|
||||||
href="https://github.com/andig/evcc/blob/master/evcc.dist.yaml"
|
href="https://github.com/evcc-io/evcc/blob/master/evcc.dist.yaml"
|
||||||
>Download</a
|
>Download</a
|
||||||
>).
|
>).
|
||||||
</li>
|
</li>
|
||||||
|
|
@ -70,7 +70,7 @@
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Viel Spass mit <b>evcc</b>! Bei Problemen kannst Du uns auf
|
Viel Spass mit <b>evcc</b>! Bei Problemen kannst Du uns auf
|
||||||
<a href="https://github.com/andig/evcc/issues">GitHub</a>
|
<a href="https://github.com/evcc-io/evcc/issues">GitHub</a>
|
||||||
erreichen.
|
erreichen.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -21,10 +21,10 @@ import (
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/util/modbus"
|
"github.com/evcc-io/evcc/util/modbus"
|
||||||
"github.com/andig/evcc/util/sponsor"
|
"github.com/evcc-io/evcc/util/sponsor"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ABLeMH charger implementation
|
// ABLeMH charger implementation
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@ package charger
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/provider"
|
"github.com/evcc-io/evcc/provider"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Charger is an api.Charger implementation with configurable getters and setters.
|
// Charger is an api.Charger implementation with configurable getters and setters.
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
type chargerRegistry map[string]func(map[string]interface{}) (api.Charger, error)
|
type chargerRegistry map[string]func(map[string]interface{}) (api.Charger, error)
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package charger
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/andig/evcc/util/test"
|
"github.com/evcc-io/evcc/util/test"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestChargers(t *testing.T) {
|
func TestChargers(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -22,12 +22,12 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/charger/easee"
|
"github.com/evcc-io/evcc/charger/easee"
|
||||||
"github.com/andig/evcc/core"
|
"github.com/evcc-io/evcc/core"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/util/request"
|
"github.com/evcc-io/evcc/util/request"
|
||||||
"github.com/andig/evcc/util/sponsor"
|
"github.com/evcc-io/evcc/util/sponsor"
|
||||||
"github.com/thoas/go-funk"
|
"github.com/thoas/go-funk"
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/util/oauth"
|
"github.com/evcc-io/evcc/util/oauth"
|
||||||
"github.com/andig/evcc/util/request"
|
"github.com/evcc-io/evcc/util/request"
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,14 +6,14 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
|
||||||
"github.com/andig/evcc/core"
|
|
||||||
"github.com/andig/evcc/server"
|
|
||||||
"github.com/andig/evcc/util"
|
|
||||||
"github.com/evcc-io/eebus/app"
|
"github.com/evcc-io/eebus/app"
|
||||||
"github.com/evcc-io/eebus/communication"
|
"github.com/evcc-io/eebus/communication"
|
||||||
"github.com/evcc-io/eebus/ship"
|
"github.com/evcc-io/eebus/ship"
|
||||||
"github.com/evcc-io/eebus/spine"
|
"github.com/evcc-io/eebus/spine"
|
||||||
|
"github.com/evcc-io/evcc/api"
|
||||||
|
"github.com/evcc-io/evcc/core"
|
||||||
|
"github.com/evcc-io/evcc/server"
|
||||||
|
"github.com/evcc-io/evcc/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type EEBus struct {
|
type EEBus struct {
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/util/request"
|
"github.com/evcc-io/evcc/util/request"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package charger
|
||||||
// Code generated by github.com/andig/cmd/tools/decorate.go. DO NOT EDIT.
|
// Code generated by github.com/andig/cmd/tools/decorate.go. DO NOT EDIT.
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func decorateEVSE(base *EVSEWifi, meter func() (float64, error), meterEnergy func() (float64, error), meterCurrent func() (float64, float64, float64, error), chargerEx func(float64) error, identifier func() (string, error)) api.Charger {
|
func decorateEVSE(base *EVSEWifi, meter func() (float64, error), meterEnergy func() (float64, error), meterCurrent func() (float64, float64, float64, error), chargerEx func(float64) error, identifier func() (string, error)) api.Charger {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestEvseWifi(t *testing.T) {
|
func TestEvseWifi(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,10 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/charger/fritzdect"
|
"github.com/evcc-io/evcc/charger/fritzdect"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/util/request"
|
"github.com/evcc-io/evcc/util/request"
|
||||||
"golang.org/x/text/encoding/unicode"
|
"golang.org/x/text/encoding/unicode"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/util/request"
|
"github.com/evcc-io/evcc/util/request"
|
||||||
)
|
)
|
||||||
|
|
||||||
// https://go-e.co/app/api.pdf
|
// https://go-e.co/app/api.pdf
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package charger
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestGoE tests interfaces
|
// TestGoE tests interfaces
|
||||||
|
|
|
||||||
|
|
@ -21,10 +21,10 @@ import (
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/util/modbus"
|
"github.com/evcc-io/evcc/util/modbus"
|
||||||
"github.com/andig/evcc/util/sponsor"
|
"github.com/evcc-io/evcc/util/sponsor"
|
||||||
)
|
)
|
||||||
|
|
||||||
// HeidelbergEC charger implementation
|
// HeidelbergEC charger implementation
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/charger/keba"
|
"github.com/evcc-io/evcc/charger/keba"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// https://www.keba.com/file/downloads/e-mobility/KeContact_P20_P30_UDP_ProgrGuide_en.pdf
|
// https://www.keba.com/file/downloads/e-mobility/KeContact_P20_P30_UDP_ProgrGuide_en.pdf
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"net"
|
"net"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Sender is a KEBA UDP sender
|
// Sender is a KEBA UDP sender
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package charger
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestKeba(t *testing.T) {
|
func TestKeba(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/util/request"
|
"github.com/evcc-io/evcc/util/request"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/util/request"
|
"github.com/evcc-io/evcc/util/request"
|
||||||
)
|
)
|
||||||
|
|
||||||
// HTTP testing appproach from http://hassansin.github.io/Unit-Testing-http-client-in-Go
|
// HTTP testing appproach from http://hassansin.github.io/Unit-Testing-http-client-in-Go
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ package charger
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/charger/nrgble"
|
"github.com/evcc-io/evcc/charger/nrgble"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/godbus/dbus/v5"
|
"github.com/godbus/dbus/v5"
|
||||||
"github.com/lunixbochs/struc"
|
"github.com/lunixbochs/struc"
|
||||||
"github.com/muka/go-bluetooth/bluez/profile/adapter"
|
"github.com/muka/go-bluetooth/bluez/profile/adapter"
|
||||||
|
|
@ -254,7 +254,7 @@ func (nrg *NRGKickBLE) Enabled() (bool, error) {
|
||||||
nrg.log.TRACE.Printf("read info: %+v", res)
|
nrg.log.TRACE.Printf("read info: %+v", res)
|
||||||
|
|
||||||
// workaround internal NRGkick state change after connecting
|
// workaround internal NRGkick state change after connecting
|
||||||
// https://github.com/andig/evcc/pull/274
|
// https://github.com/evcc-io/evcc/pull/274
|
||||||
return !res.PauseCharging || res.ChargingActive, nil
|
return !res.PauseCharging || res.ChargingActive, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -266,7 +266,7 @@ func (nrg *NRGKickBLE) Enable(enable bool) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// workaround internal NRGkick state change after connecting
|
// workaround internal NRGkick state change after connecting
|
||||||
// https://github.com/andig/evcc/pull/274
|
// https://github.com/evcc-io/evcc/pull/274
|
||||||
if !enable && res.PauseCharging {
|
if !enable && res.PauseCharging {
|
||||||
nrg.pauseCharging = false
|
nrg.pauseCharging = false
|
||||||
settings := nrg.mergeSettings(res)
|
settings := nrg.mergeSettings(res)
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package charger
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNRGKickBLE(t *testing.T) {
|
func TestNRGKickBLE(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/util/request"
|
"github.com/evcc-io/evcc/util/request"
|
||||||
)
|
)
|
||||||
|
|
||||||
// https://www.nrgkick.com/wp-content/uploads/2019/08/20190814_API-Dokumentation_04.pdf
|
// https://www.nrgkick.com/wp-content/uploads/2019/08/20190814_API-Dokumentation_04.pdf
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package charger
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNRGKickConnect(t *testing.T) {
|
func TestNRGKickConnect(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/charger/openwb"
|
"github.com/evcc-io/evcc/charger/openwb"
|
||||||
"github.com/andig/evcc/provider"
|
"github.com/evcc-io/evcc/provider"
|
||||||
"github.com/andig/evcc/provider/mqtt"
|
"github.com/evcc-io/evcc/provider/mqtt"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package charger
|
||||||
// Code generated by github.com/andig/cmd/tools/decorate.go. DO NOT EDIT.
|
// Code generated by github.com/andig/cmd/tools/decorate.go. DO NOT EDIT.
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func decorateOpenWB(base *OpenWB, chargePhases func(int) error) api.Charger {
|
func decorateOpenWB(base *OpenWB, chargePhases func(int) error) api.Charger {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package charger
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestOpenWBDecorators(t *testing.T) {
|
func TestOpenWBDecorators(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/util/modbus"
|
"github.com/evcc-io/evcc/util/modbus"
|
||||||
"github.com/volkszaehler/mbmd/meters/rs485"
|
"github.com/volkszaehler/mbmd/meters/rs485"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package charger
|
||||||
// Code generated by github.com/andig/cmd/tools/decorate.go. DO NOT EDIT.
|
// Code generated by github.com/andig/cmd/tools/decorate.go. DO NOT EDIT.
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func decoratePhoenixEMEth(base *PhoenixEMEth, meter func() (float64, error), meterEnergy func() (float64, error), meterCurrent func() (float64, float64, float64, error)) api.Charger {
|
func decoratePhoenixEMEth(base *PhoenixEMEth, meter func() (float64, error), meterEnergy func() (float64, error), meterCurrent func() (float64, float64, float64, error)) api.Charger {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package charger
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestPhoenixEMEthDecorators(t *testing.T) {
|
func TestPhoenixEMEthDecorators(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/util/modbus"
|
"github.com/evcc-io/evcc/util/modbus"
|
||||||
"github.com/volkszaehler/mbmd/meters/rs485"
|
"github.com/volkszaehler/mbmd/meters/rs485"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package charger
|
||||||
// Code generated by github.com/andig/cmd/tools/decorate.go. DO NOT EDIT.
|
// Code generated by github.com/andig/cmd/tools/decorate.go. DO NOT EDIT.
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func decoratePhoenixEVEth(base *PhoenixEVEth, meter func() (float64, error), meterEnergy func() (float64, error), meterCurrent func() (float64, float64, float64, error)) api.Charger {
|
func decoratePhoenixEVEth(base *PhoenixEVEth, meter func() (float64, error), meterEnergy func() (float64, error), meterCurrent func() (float64, float64, float64, error)) api.Charger {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package charger
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestPhoenixEVEthDecorators(t *testing.T) {
|
func TestPhoenixEVEthDecorators(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@ package charger
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/util/modbus"
|
"github.com/evcc-io/evcc/util/modbus"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/util/request"
|
"github.com/evcc-io/evcc/util/request"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Shelly api homepage
|
// Shelly api homepage
|
||||||
|
|
@ -114,7 +114,7 @@ var _ api.Meter = (*Shelly)(nil)
|
||||||
func (c *Shelly) CurrentPower() (float64, error) {
|
func (c *Shelly) CurrentPower() (float64, error) {
|
||||||
var resp shellyStatusResponse
|
var resp shellyStatusResponse
|
||||||
err := c.GetJSON(fmt.Sprintf("%s/%s", c.uri, "status"), &resp)
|
err := c.GetJSON(fmt.Sprintf("%s/%s", c.uri, "status"), &resp)
|
||||||
|
|
||||||
if c.channel >= len(resp.Meters) {
|
if c.channel >= len(resp.Meters) {
|
||||||
return 0, errors.New("invalid channel, power meter missing")
|
return 0, errors.New("invalid channel, power meter missing")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/util/modbus"
|
"github.com/evcc-io/evcc/util/modbus"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SimpleEVSE charger implementation
|
// SimpleEVSE charger implementation
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,10 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/charger/tasmota"
|
"github.com/evcc-io/evcc/charger/tasmota"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/util/request"
|
"github.com/evcc-io/evcc/util/request"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Tasmota project homepage
|
// Tasmota project homepage
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/charger/tplink"
|
"github.com/evcc-io/evcc/charger/tplink"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TPLink charger implementation
|
// TPLink charger implementation
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/util/modbus"
|
"github.com/evcc-io/evcc/util/modbus"
|
||||||
"github.com/volkszaehler/mbmd/encoding"
|
"github.com/volkszaehler/mbmd/encoding"
|
||||||
"github.com/volkszaehler/mbmd/meters/rs485"
|
"github.com/volkszaehler/mbmd/meters/rs485"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package charger
|
||||||
// Code generated by github.com/andig/cmd/tools/decorate.go. DO NOT EDIT.
|
// Code generated by github.com/andig/cmd/tools/decorate.go. DO NOT EDIT.
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func decorateWallbe(base *Wallbe, meter func() (float64, error), meterEnergy func() (float64, error), meterCurrent func() (float64, float64, float64, error), chargerEx func(current float64) error) api.Charger {
|
func decorateWallbe(base *Wallbe, meter func() (float64, error), meterEnergy func() (float64, error), meterCurrent func() (float64, float64, float64, error), chargerEx func(current float64) error) api.Charger {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package charger
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestWallbeLegacy(t *testing.T) {
|
func TestWallbeLegacy(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,10 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/provider"
|
"github.com/evcc-io/evcc/provider"
|
||||||
"github.com/andig/evcc/provider/mqtt"
|
"github.com/evcc-io/evcc/provider/mqtt"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package charger
|
||||||
// Code generated by github.com/andig/cmd/tools/decorate.go. DO NOT EDIT.
|
// Code generated by github.com/andig/cmd/tools/decorate.go. DO NOT EDIT.
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func decorateWarp(base *Warp, meter func() (float64, error), meterEnergy func() (float64, error)) api.Charger {
|
func decorateWarp(base *Warp, meter func() (float64, error), meterEnergy func() (float64, error)) api.Charger {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/server"
|
"github.com/evcc-io/evcc/server"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -4,14 +4,14 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
|
||||||
"github.com/andig/evcc/charger"
|
|
||||||
"github.com/andig/evcc/meter"
|
|
||||||
"github.com/andig/evcc/provider/mqtt"
|
|
||||||
"github.com/andig/evcc/push"
|
|
||||||
"github.com/andig/evcc/server"
|
|
||||||
"github.com/andig/evcc/vehicle"
|
|
||||||
"github.com/dustin/go-humanize"
|
"github.com/dustin/go-humanize"
|
||||||
|
"github.com/evcc-io/evcc/api"
|
||||||
|
"github.com/evcc-io/evcc/charger"
|
||||||
|
"github.com/evcc-io/evcc/meter"
|
||||||
|
"github.com/evcc-io/evcc/provider/mqtt"
|
||||||
|
"github.com/evcc-io/evcc/push"
|
||||||
|
"github.com/evcc-io/evcc/server"
|
||||||
|
"github.com/evcc-io/evcc/vehicle"
|
||||||
)
|
)
|
||||||
|
|
||||||
type config struct {
|
type config struct {
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/andig/evcc/detect"
|
"github.com/evcc-io/evcc/detect"
|
||||||
"github.com/andig/evcc/detect/tasks"
|
"github.com/evcc-io/evcc/detect/tasks"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/korylprince/ipnetgen"
|
"github.com/korylprince/ipnetgen"
|
||||||
"github.com/olekukonko/tablewriter"
|
"github.com/olekukonko/tablewriter"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
@ -97,7 +97,7 @@ func display(res []tasks.Result) {
|
||||||
table.Render()
|
table.Render()
|
||||||
|
|
||||||
fmt.Println(`
|
fmt.Println(`
|
||||||
Please open https://github.com/andig/evcc/issues/new in your browser and copy the
|
Please open https://github.com/evcc-io/evcc/issues/new in your browser and copy the
|
||||||
results above into a new issue. Please tell us:
|
results above into a new issue. Please tell us:
|
||||||
|
|
||||||
1. Is the scan result correct?
|
1. Is the scan result correct?
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@ package cmd
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/andig/evcc/core"
|
"github.com/evcc-io/evcc/core"
|
||||||
"github.com/andig/evcc/server"
|
"github.com/evcc-io/evcc/server"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
var truefalse = map[bool]string{false: "false", true: "true"}
|
var truefalse = map[bool]string{false: "false", true: "true"}
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,10 @@ import (
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/Masterminds/sprig/v3"
|
"github.com/Masterminds/sprig/v3"
|
||||||
"github.com/andig/evcc/server"
|
|
||||||
"github.com/andig/evcc/util"
|
|
||||||
certhelper "github.com/evcc-io/eebus/cert"
|
certhelper "github.com/evcc-io/eebus/cert"
|
||||||
"github.com/evcc-io/eebus/communication"
|
"github.com/evcc-io/eebus/communication"
|
||||||
|
"github.com/evcc-io/evcc/server"
|
||||||
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/server"
|
"github.com/evcc-io/evcc/server"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/tv42/httpunix"
|
"github.com/tv42/httpunix"
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/server"
|
"github.com/evcc-io/evcc/server"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
10
cmd/root.go
10
cmd/root.go
|
|
@ -9,11 +9,11 @@ import (
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/server"
|
"github.com/evcc-io/evcc/server"
|
||||||
"github.com/andig/evcc/server/updater"
|
"github.com/evcc-io/evcc/server/updater"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/util/pipe"
|
"github.com/evcc-io/evcc/util/pipe"
|
||||||
"github.com/andig/evcc/util/sponsor"
|
"github.com/evcc-io/evcc/util/sponsor"
|
||||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
|
||||||
26
cmd/setup.go
26
cmd/setup.go
|
|
@ -8,20 +8,20 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
|
||||||
"github.com/andig/evcc/api/proto/pb"
|
|
||||||
"github.com/andig/evcc/core"
|
|
||||||
"github.com/andig/evcc/hems"
|
|
||||||
"github.com/andig/evcc/provider/javascript"
|
|
||||||
"github.com/andig/evcc/provider/mqtt"
|
|
||||||
"github.com/andig/evcc/push"
|
|
||||||
"github.com/andig/evcc/server"
|
|
||||||
"github.com/andig/evcc/tariff"
|
|
||||||
"github.com/andig/evcc/util"
|
|
||||||
"github.com/andig/evcc/util/cloud"
|
|
||||||
"github.com/andig/evcc/util/pipe"
|
|
||||||
"github.com/andig/evcc/util/sponsor"
|
|
||||||
paho "github.com/eclipse/paho.mqtt.golang"
|
paho "github.com/eclipse/paho.mqtt.golang"
|
||||||
|
"github.com/evcc-io/evcc/api"
|
||||||
|
"github.com/evcc-io/evcc/api/proto/pb"
|
||||||
|
"github.com/evcc-io/evcc/core"
|
||||||
|
"github.com/evcc-io/evcc/hems"
|
||||||
|
"github.com/evcc-io/evcc/provider/javascript"
|
||||||
|
"github.com/evcc-io/evcc/provider/mqtt"
|
||||||
|
"github.com/evcc-io/evcc/push"
|
||||||
|
"github.com/evcc-io/evcc/server"
|
||||||
|
"github.com/evcc-io/evcc/tariff"
|
||||||
|
"github.com/evcc-io/evcc/util"
|
||||||
|
"github.com/evcc-io/evcc/util/cloud"
|
||||||
|
"github.com/evcc-io/evcc/util/pipe"
|
||||||
|
"github.com/evcc-io/evcc/util/sponsor"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/vehicle"
|
"github.com/evcc-io/evcc/vehicle"
|
||||||
)
|
)
|
||||||
|
|
||||||
func usage() {
|
func usage() {
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/andig/evcc/server"
|
"github.com/evcc-io/evcc/server"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/thoas/go-funk"
|
"github.com/thoas/go-funk"
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/andig/evcc/util/request"
|
|
||||||
"github.com/bogosj/tesla"
|
"github.com/bogosj/tesla"
|
||||||
|
"github.com/evcc-io/evcc/util/request"
|
||||||
"github.com/manifoldco/promptui"
|
"github.com/manifoldco/promptui"
|
||||||
"github.com/skratchdot/open-golang/open"
|
"github.com/skratchdot/open-golang/open"
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,10 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/vehicle"
|
"github.com/evcc-io/evcc/vehicle"
|
||||||
"github.com/andig/evcc/vehicle/tronity"
|
"github.com/evcc-io/evcc/vehicle/tronity"
|
||||||
"github.com/skratchdot/open-golang/open"
|
"github.com/skratchdot/open-golang/open"
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -164,7 +164,7 @@ func generate(out io.Writer, packageName, functionName, baseType string, dynamic
|
||||||
Types map[string]typeStruct
|
Types map[string]typeStruct
|
||||||
Combinations [][]string
|
Combinations [][]string
|
||||||
}{
|
}{
|
||||||
API: "github.com/andig/evcc/api",
|
API: "github.com/evcc-io/evcc/api",
|
||||||
Package: packageName,
|
Package: packageName,
|
||||||
Function: functionName,
|
Function: functionName,
|
||||||
BaseType: baseType,
|
BaseType: baseType,
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/server"
|
"github.com/evcc-io/evcc/server"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package core
|
package core
|
||||||
|
|
||||||
import "github.com/andig/evcc/api"
|
import "github.com/evcc-io/evcc/api"
|
||||||
|
|
||||||
// configProvider gives access to configuration repository
|
// configProvider gives access to configuration repository
|
||||||
type configProvider interface {
|
type configProvider interface {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
package core
|
package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type vehicleCoordinator struct {
|
type vehicleCoordinator struct {
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@ package core
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/mock"
|
"github.com/evcc-io/evcc/mock"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,12 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/core/soc"
|
"github.com/evcc-io/evcc/core/soc"
|
||||||
"github.com/andig/evcc/core/wrapper"
|
"github.com/evcc-io/evcc/core/wrapper"
|
||||||
"github.com/andig/evcc/provider"
|
"github.com/evcc-io/evcc/provider"
|
||||||
"github.com/andig/evcc/push"
|
"github.com/evcc-io/evcc/push"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
|
|
||||||
evbus "github.com/asaskevich/EventBus"
|
evbus "github.com/asaskevich/EventBus"
|
||||||
"github.com/avast/retry-go/v3"
|
"github.com/avast/retry-go/v3"
|
||||||
|
|
@ -1256,7 +1256,7 @@ func (lp *LoadPoint) Update(sitePower float64, cheap bool) {
|
||||||
switch {
|
switch {
|
||||||
case !lp.connected():
|
case !lp.connected():
|
||||||
// always disable charger if not connected
|
// always disable charger if not connected
|
||||||
// https://github.com/andig/evcc/issues/105
|
// https://github.com/evcc-io/evcc/issues/105
|
||||||
err = lp.setLimit(0, false)
|
err = lp.setLimit(0, false)
|
||||||
|
|
||||||
case lp.targetSocReached():
|
case lp.targetSocReached():
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package core
|
package core
|
||||||
|
|
||||||
import "github.com/andig/evcc/core/soc"
|
import "github.com/evcc-io/evcc/core/soc"
|
||||||
|
|
||||||
type adapter struct {
|
type adapter struct {
|
||||||
lp *LoadPoint
|
lp *LoadPoint
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ package core
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/core/wrapper"
|
"github.com/evcc-io/evcc/core/wrapper"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LoadpointController gives access to loadpoint
|
// LoadpointController gives access to loadpoint
|
||||||
|
|
|
||||||
|
|
@ -4,13 +4,13 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
|
||||||
"github.com/andig/evcc/core/soc"
|
|
||||||
"github.com/andig/evcc/mock"
|
|
||||||
"github.com/andig/evcc/push"
|
|
||||||
"github.com/andig/evcc/util"
|
|
||||||
evbus "github.com/asaskevich/EventBus"
|
evbus "github.com/asaskevich/EventBus"
|
||||||
"github.com/benbjohnson/clock"
|
"github.com/benbjohnson/clock"
|
||||||
|
"github.com/evcc-io/evcc/api"
|
||||||
|
"github.com/evcc-io/evcc/core/soc"
|
||||||
|
"github.com/evcc-io/evcc/mock"
|
||||||
|
"github.com/evcc-io/evcc/push"
|
||||||
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,13 +7,13 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
|
||||||
"github.com/andig/evcc/push"
|
|
||||||
"github.com/andig/evcc/util"
|
|
||||||
"github.com/avast/retry-go/v3"
|
"github.com/avast/retry-go/v3"
|
||||||
|
"github.com/evcc-io/evcc/api"
|
||||||
|
"github.com/evcc-io/evcc/push"
|
||||||
|
"github.com/evcc-io/evcc/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:generate mockgen -package mock -destination ../mock/mock_loadpoint.go github.com/andig/evcc/core Updater
|
//go:generate mockgen -package mock -destination ../mock/mock_loadpoint.go github.com/evcc-io/evcc/core Updater
|
||||||
|
|
||||||
// Updater abstracts the LoadPoint implementation for testing
|
// Updater abstracts the LoadPoint implementation for testing
|
||||||
type Updater interface {
|
type Updater interface {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package core
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SiteAPI is the external site API
|
// SiteAPI is the external site API
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"math"
|
"math"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
const chargeEfficiency = 0.9 // assume charge 90% efficiency
|
const chargeEfficiency = 0.9 // assume charge 90% efficiency
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
"github.com/evcc-io/evcc/api"
|
||||||
"github.com/andig/evcc/mock"
|
"github.com/evcc-io/evcc/mock"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"math"
|
"math"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
|
||||||
"github.com/andig/evcc/util"
|
|
||||||
"github.com/benbjohnson/clock"
|
"github.com/benbjohnson/clock"
|
||||||
|
"github.com/evcc-io/evcc/api"
|
||||||
|
"github.com/evcc-io/evcc/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ChargeRater is responsible for providing charged energy amount
|
// ChargeRater is responsible for providing charged energy amount
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,10 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/api"
|
|
||||||
"github.com/andig/evcc/mock"
|
|
||||||
"github.com/andig/evcc/util"
|
|
||||||
"github.com/benbjohnson/clock"
|
"github.com/benbjohnson/clock"
|
||||||
|
"github.com/evcc-io/evcc/api"
|
||||||
|
"github.com/evcc-io/evcc/mock"
|
||||||
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package detect
|
package detect
|
||||||
|
|
||||||
import "github.com/andig/evcc/detect/tasks"
|
import "github.com/evcc-io/evcc/detect/tasks"
|
||||||
|
|
||||||
type Criteria map[string]interface{}
|
type Criteria map[string]interface{}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package detect
|
package detect
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/andig/evcc/detect/tasks"
|
"github.com/evcc-io/evcc/detect/tasks"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/andig/evcc/detect/tasks"
|
"github.com/evcc-io/evcc/detect/tasks"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type TaskList struct {
|
type TaskList struct {
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/util/jq"
|
"github.com/evcc-io/evcc/util/jq"
|
||||||
"github.com/itchyny/gojq"
|
"github.com/itchyny/gojq"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/charger/keba"
|
"github.com/evcc-io/evcc/charger/keba"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
const Keba TaskType = "keba"
|
const Keba TaskType = "keba"
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/andig/evcc/util/modbus"
|
"github.com/evcc-io/evcc/util/modbus"
|
||||||
gridx "github.com/grid-x/modbus"
|
gridx "github.com/grid-x/modbus"
|
||||||
"github.com/volkszaehler/mbmd/meters"
|
"github.com/volkszaehler/mbmd/meters"
|
||||||
"github.com/volkszaehler/mbmd/meters/rs485"
|
"github.com/volkszaehler/mbmd/meters/rs485"
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/util"
|
|
||||||
mqtt "github.com/eclipse/paho.mqtt.golang"
|
mqtt "github.com/eclipse/paho.mqtt.golang"
|
||||||
|
"github.com/evcc-io/evcc/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
const Mqtt TaskType = "mqtt"
|
const Mqtt TaskType = "mqtt"
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"runtime"
|
"runtime"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/go-ping/ping"
|
"github.com/go-ping/ping"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"gitlab.com/bboehmke/sunny"
|
"gitlab.com/bboehmke/sunny"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
const Tcp TaskType = "tcp"
|
const Tcp TaskType = "tcp"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package tasks
|
package tasks
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/jinzhu/copier"
|
"github.com/jinzhu/copier"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/andig/evcc/detect/tasks"
|
"github.com/evcc-io/evcc/detect/tasks"
|
||||||
"github.com/andig/evcc/util"
|
"github.com/evcc-io/evcc/util"
|
||||||
"github.com/fatih/structs"
|
"github.com/fatih/structs"
|
||||||
"github.com/jeremywohl/flatten"
|
"github.com/jeremywohl/flatten"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
4
dist/index.html
vendored
4
dist/index.html
vendored
|
|
@ -1,4 +1,4 @@
|
||||||
<!DOCTYPE html><html lang="de"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="description" content="EV Charge Controller"><meta name="author" content="andig"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><link rel="apple-touch-icon" sizes="180x180" href="ico/apple-touch-icon.png?[[.Version]]"><link rel="icon" type="image/png" sizes="32x32" href="ico/favicon-32x32.png?[[.Version]]"><link rel="icon" type="image/png" sizes="16x16" href="ico/favicon-16x16.png?[[.Version]]"><link rel="manifest" href="ico/site.webmanifest"><link rel="mask-icon" href="ico/safari-pinned-tab.svg?[[.Version]]" color="#18191a"><link rel="shortcut icon" href="ico/favicon.ico?[[.Version]]"><meta name="apple-mobile-web-app-title" content="evcc"><meta name="application-name" content="evcc"><meta name="msapplication-TileColor" content="#18191a"><meta name="msapplication-config" content="ico/browserconfig.xml"><meta name="theme-color" content="#18191a"><title>evcc</title><link href="css/chunk-vendors.63c5e34a.css" rel="preload" as="style"><link href="css/index.61734b83.css" rel="preload" as="style"><link href="js/chunk-vendors.255a20c6.js" rel="preload" as="script"><link href="js/index.9033e567.js" rel="preload" as="script"><link href="css/chunk-vendors.63c5e34a.css" rel="stylesheet"><link href="css/index.61734b83.css" rel="stylesheet"></head><body><script>window.evcc = {
|
<!DOCTYPE html><html lang="de"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="description" content="EV Charge Controller"><meta name="author" content="andig"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><link rel="apple-touch-icon" sizes="180x180" href="ico/apple-touch-icon.png?[[.Version]]"><link rel="icon" type="image/png" sizes="32x32" href="ico/favicon-32x32.png?[[.Version]]"><link rel="icon" type="image/png" sizes="16x16" href="ico/favicon-16x16.png?[[.Version]]"><link rel="manifest" href="ico/site.webmanifest"><link rel="mask-icon" href="ico/safari-pinned-tab.svg?[[.Version]]" color="#18191a"><link rel="shortcut icon" href="ico/favicon.ico?[[.Version]]"><meta name="apple-mobile-web-app-title" content="evcc"><meta name="application-name" content="evcc"><meta name="msapplication-TileColor" content="#18191a"><meta name="msapplication-config" content="ico/browserconfig.xml"><meta name="theme-color" content="#18191a"><title>evcc</title><link href="css/chunk-vendors.63c5e34a.css" rel="preload" as="style"><link href="css/index.dc3fd4c3.css" rel="preload" as="style"><link href="js/chunk-vendors.255a20c6.js" rel="preload" as="script"><link href="js/index.a52119eb.js" rel="preload" as="script"><link href="css/chunk-vendors.63c5e34a.css" rel="stylesheet"><link href="css/index.dc3fd4c3.css" rel="stylesheet"></head><body><script>window.evcc = {
|
||||||
version: "[[.Version]]",
|
version: "[[.Version]]",
|
||||||
configured: "[[.Configured]]",
|
configured: "[[.Configured]]",
|
||||||
};</script><div id="app"></div><script src="js/chunk-vendors.255a20c6.js"></script><script src="js/index.9033e567.js"></script></body></html>
|
};</script><div id="app"></div><script src="js/chunk-vendors.255a20c6.js"></script><script src="js/index.a52119eb.js"></script></body></html>
|
||||||
2
dist/js/index.9033e567.js
vendored
2
dist/js/index.9033e567.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/index.9033e567.js.map
vendored
1
dist/js/index.9033e567.js.map
vendored
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue