From 7683f6637fa7d82b0f7de0b801e534a223ae578a Mon Sep 17 00:00:00 2001 From: andig Date: Thu, 12 Nov 2020 11:50:22 +0100 Subject: [PATCH] Refactor configuration handling (#424) --- README.md | 3 +- assets/index.html | 17 ++++---- assets/js/app.js | 93 ++++++++++++++++++++----------------------- core/loadpoint.go | 1 + core/site.go | 57 -------------------------- core/site_api.go | 1 - hems/semp/semp.go | 1 - server/http.go | 12 +----- server/mqtt.go | 2 +- server/socket.go | 43 ++++++++++---------- server/socket_test.go | 2 +- 11 files changed, 79 insertions(+), 153 deletions(-) diff --git a/README.md b/README.md index 9f02bf7cd..400939288 100644 --- a/README.md +++ b/README.md @@ -447,8 +447,7 @@ EVCC provides a REST and MQTT APIs. ### REST API -- `/api/config`: EVCC static configuration -- `/api/state`: EVCC dynamic state +- `/api/state`: EVCC state (static configuration and dynamic state) - `/api/mode`: global charge mode (writable) - `/api/targetsoc`: global target SoC (writable) - `/api/loadpoints//mode`: loadpoint charge mode (writable) diff --git a/assets/index.html b/assets/index.html index 94e56e78b..8016db7d7 100644 --- a/assets/index.html +++ b/assets/index.html @@ -176,14 +176,14 @@ loadpoints: + v-bind:id="id" :key="id" :state="loadpoint" :pv="state.gridConfigured" :multi="multi">