Skip to content

Commit e9c22ae

Browse files
authored
Merge pull request #71 from SenaxInc/copilot/add-config-generator-preview-again
Add config generator page to website preview for 112025
2 parents cf18258 + d0c475e commit e9c22ae

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.github/workflows/html-render.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,19 @@ jobs:
172172
out.write(html_content)
173173
174174
print(f'Extracted dashboard HTML: {len(html_content)} bytes')
175+
176+
# Find the CONFIG_GENERATOR_HTML constant
177+
config_pattern = r'static const char CONFIG_GENERATOR_HTML\[\] PROGMEM = R"HTML\((.*?)\)HTML"'
178+
config_match = re.search(config_pattern, content, re.DOTALL)
179+
180+
if config_match:
181+
config_html = config_match.group(1)
182+
183+
config_file = output_dir + '/config-generator.html'
184+
with open(config_file, 'w', encoding='utf-8') as out:
185+
out.write(config_html)
186+
187+
print(f'Extracted config generator HTML: {len(config_html)} bytes')
175188
EOF
176189
177190
- name: Take screenshots with Playwright
@@ -281,6 +294,9 @@ jobs:
281294
## Dashboard
282295
![Dashboard](screenshots/dashboard.png)
283296
297+
## Config Generator
298+
![Config Generator](screenshots/config-generator.png)
299+
284300
---
285301
*Screenshots automatically generated by GitHub Actions*
286302
*Last updated: $(date -u +"%Y-%m-%d %H:%M:%S UTC")*

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ __pycache__/
3939

4040
# Node modules (if any web interface)
4141
node_modules/
42+
package.json
43+
package-lock.json
4244

4345
# SD card test files (generated during testing)
4446
test_logs/

TankAlarm-112025-Server-BluesOpta/WEBSITE_PREVIEW.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ This document contains screenshots of the web interface served by the TankAlarm-
55
## Dashboard
66
![Dashboard](screenshots/dashboard.png)
77

8+
## Config Generator
9+
![Config Generator](screenshots/config-generator.png)
10+
811
---
912
*Screenshots automatically generated by GitHub Actions*
1013
*Last updated: $(date -u +"%Y-%m-%d %H:%M:%S UTC")*

0 commit comments

Comments
 (0)