File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed
TankAlarm-112025-Server-BluesOpta Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff 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 
283296
297+ ## Config Generator
298+ 
299+
284300 ---
285301 *Screenshots automatically generated by GitHub Actions*
286302 *Last updated: $(date -u +"%Y-%m-%d %H:%M:%S UTC")*
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ __pycache__/
3939
4040# Node modules (if any web interface)
4141node_modules /
42+ package.json
43+ package-lock.json
4244
4345# SD card test files (generated during testing)
4446test_logs /
Original file line number Diff line number Diff 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")*
You can’t perform that action at this time.
0 commit comments