Files
follow-me-stairs/installer/index.html
T
Jackson AndresandClaude Opus 5.5 5bc298375c
Installer / Build (push) Failing after 3s
Installer / Publish (push) Skipped
Shared palette for the wizard and installer page
Warm grey text on near-black, amber #c28947, dark brown solid buttons. The
wizard strip no longer labels LEDs before the LED count is known.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 20:19:39 -04:00

75 lines
4.5 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Follow-Me Installer</title>
<meta name="description" content="Install the follow-me stair light on an Apollo MTR-1 from your browser.">
<script type="module" src="https://unpkg.com/esp-web-tools@10.4.0/dist/web/install-button.js?module"></script>
<style>
:root{
--bg:#07090a; --panel:#0e0e10; --text:#dfd8c9; --muted:#8d8980; --dim:#55534f;
--line:#171514; --line-2:#1f1d16; --accent:#c28947;
--button:#2e281b; --button-text:#dddad6;
color-scheme:dark;
}
@font-face{font-family:"IBM Plex Sans";font-weight:100 700;font-display:swap;src:url(fonts/plex-sans.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-weight:400;font-display:swap;src:url(fonts/plex-mono-400.woff2) format("woff2")}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.6 "IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif}
main{max-width:640px;margin:0 auto;padding:48px 16px 64px}
h1{font-size:28px;line-height:1.2;font-weight:600;margin:0 0 12px}
h2{font-size:19px;margin:40px 0 10px}
p{margin:0 0 12px}
.muted{color:var(--muted)}
ol{padding-left:22px;margin:0 0 20px}
li{margin:0 0 6px}
a{color:var(--accent)}
code{font:14px "IBM Plex Mono",ui-monospace,Menlo,monospace;color:var(--text)}
.install{margin:24px 0 0}
.install button{border:1px solid var(--line-2);border-radius:3px;background:var(--button);color:var(--button-text);font:500 15px/1 "IBM Plex Sans",system-ui,sans-serif;padding:14px 20px;cursor:pointer}
esp-web-install-button[install-unsupported] button{display:none}
.warn{background:var(--panel);border-left:2px solid var(--accent);padding:10px 14px;margin:20px 0 0;font-size:15px;color:var(--text)}
footer{border-top:1px solid var(--line);margin-top:48px;padding-top:16px;font-size:14px;color:var(--muted)}
footer ul{list-style:none;padding:0;margin:0 0 12px}
footer li{display:inline;margin-right:16px}
/* ESP Web Tools dialogs */
esp-web-install-button{--improv-primary-color:var(--accent);--improv-text-color:var(--text);--mdc-theme-primary:var(--accent);--mdc-theme-surface:var(--panel);--mdc-dialog-heading-ink-color:var(--text);--mdc-dialog-content-ink-color:var(--muted)}
</style>
</head>
<body>
<main>
<h1>Follow-Me installer</h1>
<p>Follow-me is a stair light. A radar sensor at the stairs tracks where each person is. An LED strip along the stairs lights the part next to that person, and the lit part moves with them.</p>
<p class="muted">This page installs follow-me on an Apollo MTR-1. Version __VERSION__.</p>
<h2>Install</h2>
<p class="muted">Use Chrome or Edge on a computer. Phones and other browsers cannot connect to the sensor over USB.</p>
<ol>
<li>Connect the MTR-1 to this computer with a USB-C data cable. A charge-only cable does not work.</li>
<li>Click <b>Install Follow-Me</b> and pick the sensor from the list.</li>
<li>When the install is complete, enter your Wi-Fi name and password.</li>
<li>Click <b>Visit device</b> to open the sensor's web page.</li>
</ol>
<esp-web-install-button class="install" manifest="firmware/manifest.json">
<button slot="activate">Install Follow-Me</button>
<p slot="unsupported">This browser cannot install firmware. Open this page in Chrome or Edge on a computer.</p>
<p slot="not-allowed">The installer works only over HTTPS. Open this page from its https:// address.</p>
</esp-web-install-button>
<p class="warn">Installing erases the sensor. A sensor that already has a follow-me setup must go through the setup wizard again. To keep the setup, update the sensor from ESPHome instead.</p>
<h2>After installing</h2>
<p>On the sensor's web page, click <b>Set up Follow-Me</b>. The setup wizard asks for the shape of your stairs, has you walk them once, and lines up the LED strip.</p>
<p>If the Wi-Fi step did not appear, connect your phone to the <code>Apollo MTR1 Hotspot</code> network and enter your Wi-Fi there.</p>
<p>WLED needs some settings changed first. The wizard checks them and can change them for you.</p>
<footer>
<ul>
<li><a href="https://github.com/RandomPedestrian07/follow-me-stairs">Source and documentation</a></li>
<li><a href="https://github.com/RandomPedestrian07/follow-me-stairs/blob/main/docs/settings.md">Settings</a></li>
</ul>
MIT license. IBM Plex fonts: <a href="fonts/OFL.txt">SIL Open Font License 1.1</a>. Installer by <a href="https://esphome.github.io/esp-web-tools/">ESP Web Tools</a>.
</footer>
</main>
</body>
</html>