From b91da0f681ef96bb611b723ffebe718fb6c08ca5 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Fri, 3 Mar 2023 01:08:20 +0100 Subject: [PATCH 1/9] Added documentation regarding missing web api endpoints --- docs/Web-API.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/Web-API.md b/docs/Web-API.md index f772b05c..dbdd8a2a 100644 --- a/docs/Web-API.md +++ b/docs/Web-API.md @@ -9,7 +9,9 @@ may be incomplete | -------- | --- | -- | | Get | yes | /api/config/get | | Post | yes | /api/config/delete | +| Get | yes | /api/config/list | | Post | yes | /api/config/upload | +| Get+Post | yes | /api/device/config | | Get | no | /api/devinfo/status | | Get+Post | yes | /api/dtu/config | | Get | no | /api/eventlog/status?inv=inverter-serialnumber | @@ -21,6 +23,7 @@ may be incomplete | Post | yes | /api/limit/config | | Get | no | /api/limit/status | | Get | no | /api/livedata/status | +| Post | yes | /api/maintenance/reboot | | Get+Post | yes | /api/mqtt/config | | Get | no | /api/mqtt/status | | Get+Post | yes | /api/network/config | @@ -30,7 +33,9 @@ may be incomplete | Get+Post | yes | /api/ntp/time | | Get | no | /api/power/status | | Post | yes | /api/power/config | -| Get+Post | yes | /api/security/password | +| Get | no | /api/prometheus/metrics | +| Get+Post | yes | /api/security/config | +| Get | yes | /api/security/authenticate | | Get | no | /api/system/status | @@ -46,6 +51,7 @@ may be incomplete - Other API calls use e.g. `/api/limit/status` to GET data and a different URL `/api/limit/config` to POST data. - If you want to investigate the web api communication, a good tool is [Postman](https://www.postman.com/) - Settings API require username and password provided with Basic Authentication credentials +- If you disable the readonly access to the web API, every endpoint requires authentication ### Get information From 4b00619c48dbc14255d153dc57f75e8c5f625cbb Mon Sep 17 00:00:00 2001 From: Martin Dummer Date: Sun, 5 Mar 2023 19:00:53 +0100 Subject: [PATCH 2/9] README.md: add PCB chapter and fill it with numerous pcb projects Signed-off-by: Martin Dummer --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0b6fe300..876a58c8 100644 --- a/README.md +++ b/README.md @@ -228,6 +228,11 @@ A documentation of the Web API can be found here: [Web-API Documentation](docs/W * * +## Available layouts for printed circuit boards +* [BreakoutBoard - sample printed circuit board for OpenDTU and Ahoy](https://github.com/dokuhn/openDTU-BreakoutBoard) +* [Board for OpenDTU with Display](https://github.com/SteffMUC/openDTU_wDisplay2) +* [OpenDTU PCB mit Display](https://github.com/turrican944/OpenDTU-PCB) +* [PCB for OpenDTU in Cable Branchbox](https://github.com/plewka/ESP-Solar_OpenDTU) ## Building * Building the WebApp @@ -261,4 +266,3 @@ A documentation of the Web API can be found here: [Web-API Documentation](docs/W - [Ahoy](https://github.com/grindylow/ahoy) - [DTU Simulator](https://github.com/Ziyatoe/DTUsimMI1x00-Hoymiles) - [OpenDTU extended to talk to Victrons MPPT battery chargers (Ve.Direct)](https://github.com/helgeerbe/OpenDTU_VeDirect) -- [BreakoutBoard - sample printed circuit board for OpenDTU and Ahoy](https://github.com/dokuhn/openDTU-BreakoutBoard) From ec3841db2db030787c40f19ca20eefbb724f895a Mon Sep 17 00:00:00 2001 From: Martin Dummer Date: Sun, 5 Mar 2023 19:32:10 +0100 Subject: [PATCH 3/9] README.md: add more links to 3D printable cases Signed-off-by: Martin Dummer --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 876a58c8..458272cc 100644 --- a/README.md +++ b/README.md @@ -227,6 +227,8 @@ A documentation of the Web API can be found here: [Web-API Documentation](docs/W * * * +* +* ## Available layouts for printed circuit boards * [BreakoutBoard - sample printed circuit board for OpenDTU and Ahoy](https://github.com/dokuhn/openDTU-BreakoutBoard) From 95741c7fa2f7bc88942d3c7e6406bdb64e421558 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Mon, 6 Mar 2023 19:42:37 +0100 Subject: [PATCH 4/9] webapp: Implement dark theme --- webapp/package.json | 2 +- webapp/src/components/NavBar.vue | 17 ++-- webapp/src/components/ThemeSwitcher.vue | 106 ++++++++++++++++++++++++ webapp/src/locales/de.json | 5 ++ webapp/src/locales/en.json | 5 ++ webapp/src/locales/fr.json | 5 ++ webapp/yarn.lock | 8 +- 7 files changed, 137 insertions(+), 11 deletions(-) create mode 100644 webapp/src/components/ThemeSwitcher.vue diff --git a/webapp/package.json b/webapp/package.json index f09ffa31..c8009ab8 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@popperjs/core": "^2.11.6", - "bootstrap": "^5.2.3", + "bootstrap": "^5.3.0-alpha1", "bootstrap-icons-vue": "^1.8.1", "mitt": "^3.0.0", "spark-md5": "^3.0.2", diff --git a/webapp/src/components/NavBar.vue b/webapp/src/components/NavBar.vue index e8285301..79328fd7 100644 --- a/webapp/src/components/NavBar.vue +++ b/webapp/src/components/NavBar.vue @@ -1,5 +1,5 @@