esphome-ratgdo/static/index.html

242 lines
7.1 KiB
HTML
Raw Normal View History

2023-06-08 17:57:45 +00:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
2023-06-13 22:54:57 +00:00
<title>ESPHome ratgdo</title>
2023-06-08 17:57:45 +00:00
<meta
name="description"
2023-06-13 22:54:57 +00:00
content="Install ratgdo on your ESPHome devices."
2023-06-08 17:57:45 +00:00
/>
<meta name="viewport" content="width=device-width" />
<meta name="color-scheme" content="dark light" />
2023-06-13 22:54:57 +00:00
<meta property="og:title" content="ESPHome ratgdo" />
<meta property="og:site_name" content="ESPHome ratgdo" />
2023-06-08 17:57:45 +00:00
<meta
property="og:url"
2023-09-12 18:32:59 +00:00
content="https://ratgdo.github.io/esphome-ratgdo/"
2023-06-08 17:57:45 +00:00
/>
<meta property="og:type" content="website" />
<meta
property="og:description"
content="Install RATGTO on your ESPHome devices."
/>
<meta
property="og:image"
2023-09-12 18:32:59 +00:00
content="https://ratgdo.github.io/esphome-ratgdo/header.png"
2023-06-08 17:57:45 +00:00
/>
<meta name="twitter:card" content="summary_large_image" />
2023-06-13 22:54:57 +00:00
<meta name="twitter:site" content="@esphome_ratgdo" />
<meta name="twitter:title" content="ESPHome ratgdo" />
2023-06-08 17:57:45 +00:00
<meta
name="twitter:description"
2023-06-13 22:54:57 +00:00
content="Install ratgdo on your ESPHome devices."
2023-06-08 17:57:45 +00:00
/>
<meta
name="twitter:image"
2023-09-12 18:32:59 +00:00
content="https://ratgdo.github.io/esphome-ratgdo/header.png"
2023-06-08 17:57:45 +00:00
/>
<style>
body {
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI",
Roboto, Ubuntu, sans-serif;
padding: 0;
margin: 0;
line-height: 1.4;
}
.content {
max-width: 600px;
margin: 0 auto;
padding: 12px;
}
.header {
display: block;
width: 100%;
aspect-ratio: 1200 / 675;
border-radius: 12px;
}
h3 {
margin-top: 1.5em;
}
a {
color: #03a9f4;
}
.hidden {
display: none;
}
li {
padding: 4px 0;
}
.footer {
margin-top: 24px;
border-top: 1px solid #ccc;
padding-top: 24px;
text-align: center;
}
.footer .initiative {
font-style: italic;
margin-top: 16px;
}
.radios {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
}
.radios label {
padding: 4px;
cursor: pointer;
width: calc(33.3% - 16px);
display: block;
position: relative;
}
.radios input {
position: absolute;
top: 12px;
left: 12px;
}
.radios img {
display: block;
width: calc(100% - 8px);
border: 4px solid rgba(0, 0, 0, 0);
aspect-ratio: 1;
}
input:checked + img {
border-color: #58a6ff;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #333;
color: #fff;
}
a {
color: #58a6ff;
}
}
@media only screen and (max-width: 450px) {
.radios label {
width: calc(50% - 16px);
max-width: initial;
}
}
.diy::after {
content: "DIY";
background-color: #f44336;
color: #fff;
padding: 2px 4px;
border-radius: 4px;
font-size: 0.8em;
position: absolute;
bottom: 12px;
left: 12px;
}
body .diy {
display: none;
}
body.show-diy .diy {
display: initial;
}
</style>
<script
type="module"
src="https://unpkg.com/esp-web-tools@9/dist/web/install-button.js?module"
></script>
</head>
<body>
<div class="content">
<img
class="header"
src="./header.png"
2023-06-13 22:54:57 +00:00
alt="ESPHome ratgdo"
2023-06-08 17:57:45 +00:00
/>
2023-06-13 22:52:37 +00:00
<h1>ESPHome ratgdo</h1>
2023-06-08 17:57:45 +00:00
<p></p>
<p>
2023-11-10 00:21:28 +00:00
Pick your board to flash your ratgdo board with ESPhome for <a href="https://paulwieland.github.io/ratgdo/">ratgdo</a>.
2023-06-08 17:57:45 +00:00
No programming or other software required.
2023-06-13 22:02:37 +00:00
</p>
2023-06-08 17:57:45 +00:00
2023-11-07 17:01:18 +00:00
<p><em>Note: At the moment ESPHome only supports Security + 2.0 door openers (Yellow learn button). Support for other protocols is coming.</em></p>
<h3>v2.5 Board</h3>
2023-06-08 17:57:45 +00:00
<div class="radios">
<label>
<input type="radio" name="type" value="v25board_esp8266_d1_mini_lite" checked />
<img src="./v25board_esp8266_d1_mini_lite.png" alt="ratgdo v2.5 board with ESP8266 D1 Mini Lite" />
2023-06-08 17:57:45 +00:00
</label>
<label>
<input type="radio" name="type" value="v25board_esp32_d1_mini" />
<img src="./v25board_esp32_d1_mini.png" alt="ratgdo v2.5 board with ESP32 D1 Mini" />
</label>
</div>
2023-11-07 22:54:23 +00:00
<h3>v2.0 Board</h3>
2023-06-08 17:57:45 +00:00
<div class="radios">
<label>
2023-11-07 22:54:23 +00:00
<input type="radio" name="type" value="v2board_esp8266_d1_mini_lite" />
<img src="./v2board_esp8266_d1_mini_lite.png" alt="ratgdo v2.0 board with ESP8266 D1 Mini Lite" />
</label>
<label>
<input type="radio" name="type" value="v2board_esp32_d1_mini" />
2023-11-07 22:54:23 +00:00
<img src="./v2board_esp32_d1_mini.png" alt="ratgdo v2.0 board with ESP32 D1 Mini" />
</label>
2023-10-24 18:12:54 +00:00
<label>
<input type="radio" name="type" value="v2board_esp32_lolin_s2_mini" />
2023-11-07 22:54:23 +00:00
<img src="./v2board_esp32_lolin_s2_mini.png" alt="ratgdo v2.0 board with ESP32 lolin s2 mini" />
2023-10-24 18:12:54 +00:00
</label>
2023-06-08 17:57:45 +00:00
</div>
<p class="button-row" align="center">
<esp-web-install-button></esp-web-install-button>
</p>
2023-11-10 00:21:28 +00:00
<h3>Drivers</h3>
<p>If you can't connect to your ratgdo board make sure you have the right driver installed for the type of board you have.</p>
<ul>
<li>ratgdo v2.5i uses a CH340 USB to Serial chipset. [<a href="https://www.wch-ic.com/downloads/CH341SER_EXE.html" target="_blank">driver download</a>]</li>
<li>Most D1 Minis use an FTDI USB to Serial chipset. [<a href="https://ftdichip.com/drivers/vcp-drivers/" target="_blank">driver download</a>]</li>
</ul>
2023-06-08 17:57:45 +00:00
<h3>Advanced Users</h3>
<ul>
<li>
The device is adoptable in
<a
href="https://my.home-assistant.io/redirect/supervisor_addon/?addon=5c53de3b_esphome&repository_url=https%3A%2F%2Fgithub.com%2Fesphome%2Fhome-assistant-addon"
>the ESPHome dashboard</a
>
</li>
<li>
The YAML configuration is on
2023-09-12 18:32:59 +00:00
<a href="https://github.com/RATGDO/esphome-ratgdo/tree/main/static">GitHub</a>
2023-06-08 17:57:45 +00:00
</li>
</ul>
<div class="footer">
<a href="https://esphome.io">ESPHome</a>
&mdash; Installer powered by
<a href="https://esphome.github.io/esp-web-tools/">ESP Web Tools</a>.
</div>
</div>
<script>
document.querySelectorAll('input[name="type"]').forEach((radio) =>
radio.addEventListener("change", () => {
const button = document.querySelector("esp-web-install-button");
button.manifest = `./${radio.value}-manifest.json`;
document.querySelectorAll(".info").forEach((info) => {
info.classList.add("hidden");
});
document
.querySelector(`.info.${radio.value}`)
.classList.remove("hidden");
})
);
document
.querySelector('input[name="type"]:checked')
.dispatchEvent(new Event("change"));
</script>
</body>
</html>