Skip to content

Commit 602ff0a

Browse files
committed
Merge remote-tracking branch 'origin/master' into mqtt
2 parents 5d1cbf8 + acbd1fc commit 602ff0a

File tree

54 files changed

+17605
-9143
lines changed

Some content is hidden

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

54 files changed

+17605
-9143
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ permissions:
88
on:
99
workflow_dispatch:
1010
inputs:
11-
v1_ref:
12-
required: true
13-
description: The branch/tag for the v1 UI
14-
default: master
1511
v2_ref:
1612
required: true
1713
description: The branch/tag for the v2 UI
@@ -60,13 +56,9 @@ jobs:
6056
- openevse_esp32-poe-iso
6157
- openevse_esp32-heltec-wifi-lora-v2
6258
gui:
63-
- name: gui-v1
64-
repo: OpenEVSE/openevse_wifi_gui
65-
build_flags: ""
66-
ref: ${{ inputs.v1_ref }}
6759
- name: gui-v2
68-
repo: KipK/openevse-gui-v2
69-
build_flags: "-D DISABLE_WIFI_PORTAL -D WEB_SERVER_ROOT_PAGE_INDEX"
60+
repo: OpenEVSE/openevse-gui-v2
61+
build_flags: ""
7062
ref: ${{ inputs.v2_ref }}
7163

7264
steps:
@@ -130,7 +122,7 @@ jobs:
130122
- name: Upload output to GitHub
131123
uses: actions/upload-artifact@v3
132124
with:
133-
name: ${{ matrix.env }}_${{ matrix.gui.name }}.bin
125+
name: ${{ matrix.env }}.bin
134126
path: .pio/build/${{ matrix.env }}/firmware.bin
135127

136128
release:
@@ -163,18 +155,7 @@ jobs:
163155
prerelease: true
164156
title: Development Build
165157
files: |
166-
*gui-v1.bin
167-
168-
- name: Upload assets to the v2 GUI release
169-
if: github.ref_name == 'master'
170-
uses: "marvinpinto/action-automatic-releases@latest"
171-
with:
172-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
173-
automatic_release_tag: v2_gui
174-
prerelease: true
175-
title: V2 GUI pre-release
176-
files: |
177-
*gui-v2.bin
158+
*.bin
178159
179160
- name: Upload assets to release
180161
if: startsWith(github.ref_name, 'v')

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[submodule "gui"]
2-
path = gui
3-
url = https://github.com/openevse/openevse_wifi_gui
1+
[submodule "gui-v2"]
2+
path = gui-v2
3+
url = https://github.com/OpenEVSE/openevse-gui-v2
44
branch = master

gui

Lines changed: 0 additions & 1 deletion
This file was deleted.

min_spiffs.csv

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ nvs, data, nvs, 0x9000, 0x5000,
33
otadata, data, ota, 0xe000, 0x2000,
44
app0, app, ota_0, 0x10000, 0x1E0000,
55
app1, app, ota_1, 0x1F0000,0x1E0000,
6-
spiffs, data, spiffs, 0x3D0000,0x30000,
6+
spiffs, data, spiffs, 0x3D0000,0x20000,
7+
coredump, data, coredump,0x3F0000,0x10000,

min_spiffs_debug.csv

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
nvs, data, nvs, 0x9000, 0x5000,
33
otadata, data, ota, 0xe000, 0x2000,
44
app0, app, ota_0, 0x10000, 0x3C0000,
5-
spiffs, data, spiffs, 0x3D0000,0x30000,
5+
spiffs, data, spiffs, 0x3D0000,0x20000,
6+
coredump, data, coredump,0x3F0000,0x10000,

scripts/extra_script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def process_html_app(source, dest, env):
178178

179179
gui_name = environ.get("GUI_NAME")
180180
if gui_name in (None, ""):
181-
gui_name = "gui"
181+
gui_name = "gui-v2"
182182

183183
gui_dir = join(env.subst("$PROJECT_DIR"), gui_name)
184184
dist_dir = join(gui_dir, "dist")

src/web_server_static.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,12 @@ struct StaticFile
2929

3030
#define IS_ALIGNED(x) (0 == ((uint32_t)(x) & 0x3))
3131

32-
#ifdef WEB_SERVER_ROOT_PAGE_INDEX
3332
#define WEB_SERVER_INDEX_PAGE "index.html"
34-
#else
35-
#define WEB_SERVER_INDEX_PAGE "home.html"
36-
#endif
3733

3834
// Pages
3935
static const char _HOME_PAGE[] PROGMEM = "/" WEB_SERVER_INDEX_PAGE;
4036
#define HOME_PAGE FPSTR(_HOME_PAGE)
4137

42-
#ifndef DISABLE_WIFI_PORTAL
43-
static const char _WIFI_PAGE[] PROGMEM = "/wifi_portal.html";
44-
#define WIFI_PAGE FPSTR(_WIFI_PAGE)
45-
#endif
46-
4738
class StaticFileResponse: public MongooseHttpServerResponse
4839
{
4940
private:
@@ -59,9 +50,6 @@ static bool web_static_get_file(MongooseHttpServerRequest *request, StaticFile *
5950
String path = request->uri();
6051
if(path == "/") {
6152
path = String(
62-
#ifndef DISABLE_WIFI_PORTAL
63-
net.isWifiModeApOnly() ? WIFI_PAGE :
64-
#endif
6553
HOME_PAGE);
6654

6755
}

src/web_static/web_server.arduinoocpp_png.h

Lines changed: 0 additions & 106 deletions
This file was deleted.

0 commit comments

Comments
 (0)