Skip to content

Commit 8cf83cf

Browse files
committed
flash page tweaks
1 parent 9cfa721 commit 8cf83cf

2 files changed

Lines changed: 36 additions & 3 deletions

File tree

web-flasher/index.html

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,15 @@
165165
padding-top: 0.9rem;
166166
border-top: 1px solid var(--line);
167167
}
168+
.after-steps {
169+
margin: 0;
170+
padding-left: 1.2rem;
171+
color: var(--tx-soft);
172+
font-size: 0.94rem;
173+
line-height: 1.55;
174+
}
175+
.after-steps li { margin-bottom: 0.65rem; }
176+
.after-steps li:last-child { margin-bottom: 0; }
168177
</style>
169178
</head>
170179
<body>
@@ -206,9 +215,13 @@ <h2 id="h-erase">Start fresh (optional)</h2>
206215

207216
<section class="panel" aria-labelledby="h-after">
208217
<h2 id="h-after">When it’s done</h2>
209-
<p>On your home network, open the setup page:</p>
210-
<p><a class="link-main" href="http://azimuth.local:8080/">azimuth.local:8080</a></p>
211-
<p class="fine-print">If that link doesn’t open, find the board in your router’s device list and use its IP with port <strong>8080</strong>. Brand-new devices can join Wi‑Fi through the <strong>Azimuth-Setup</strong> network, then open <code>192.168.4.1</code> in the browser (port 80).</p>
218+
<p>Connect the device to Wi‑Fi first, then use the normal settings page on your home network.</p>
219+
<ol class="after-steps">
220+
<li>Join <strong>Azimuth-Setup</strong> from your phone or computer.</li>
221+
<li>Complete the captive portal or open <code>192.168.4.1</code> and enter your home Wi‑Fi.</li>
222+
<li>After it’s online, open <a class="link-main" href="http://azimuth.local:8080/">azimuth.local:8080</a> (same LAN as the device).</li>
223+
</ol>
224+
<p class="fine-print">If <code>azimuth.local</code> doesn’t load, use the device’s IP from your router with port <strong>8080</strong>.</p>
212225
</section>
213226
</div>
214227
<script>
@@ -222,5 +235,24 @@ <h2 id="h-after">When it’s done</h2>
222235
if (el) el.hidden = true;
223236
})();
224237
</script>
238+
<script>
239+
(function () {
240+
var mark = "Installation complete!";
241+
setInterval(function () {
242+
document.querySelectorAll("ewt-install-dialog").forEach(function (host) {
243+
if (host.dataset.ewtAutocloseScheduled) return;
244+
var root = host.shadowRoot;
245+
if (!root) return;
246+
if ((root.textContent || "").indexOf(mark) === -1) return;
247+
host.dataset.ewtAutocloseScheduled = "1";
248+
setTimeout(function () {
249+
if (!host.isConnected) return;
250+
var inner = host.shadowRoot && host.shadowRoot.querySelector("ew-dialog");
251+
if (inner && typeof inner.close === "function") inner.close();
252+
}, 700);
253+
});
254+
}, 200);
255+
})();
256+
</script>
225257
</body>
226258
</html>

web-flasher/manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "Azimuth",
33
"version": "0.1.0-dev",
44
"new_install_prompt_erase": true,
5+
"new_install_improv_wait_time": 0,
56
"builds": [
67
{
78
"chipFamily": "ESP32-C3",

0 commit comments

Comments
 (0)