summaryrefslogtreecommitdiff
path: root/include/pio/static/index.html
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-09-27 00:54:57 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-09-27 00:54:57 +0300
commitd3a295872c49defb55fc8e4e43e55550991e0927 (patch)
treeb9dca15454f9027d5a9dad0d4443a20de04dbc5d /include/pio/static/index.html
parentb7cbc2571c1870b4582ead45277d0aa7f961bec8 (diff)
parentbdbb296697f55f4c3a07af43c9aaf7a9ea86f3d0 (diff)
Merge branch 'master' of ch1p.io:homekit
Diffstat (limited to 'include/pio/static/index.html')
-rw-r--r--include/pio/static/index.html63
1 files changed, 63 insertions, 0 deletions
diff --git a/include/pio/static/index.html b/include/pio/static/index.html
new file mode 100644
index 0000000..d4a8040
--- /dev/null
+++ b/include/pio/static/index.html
@@ -0,0 +1,63 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
+ <title>Configuration</title>
+ <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
+ <link rel="stylesheet" type="text/css" href="/style.css">
+ <script src="/md5.js"></script>
+ <script src="/app.js"></script>
+</head>
+<body onload="initApp()">
+<div class="title">Settings <span id="loading_label">(loading...)</span></div>
+<div class="block">
+ <form method="post" action="/status" name="network_settings">
+ <div class="form_label">WiFi SSID</div>
+ <div class="form_input">
+ <select id="ssid_select" name="ssid" class="full-width">
+ <option value="">Loading...</option>
+ </select>
+ </div>
+
+ <div class="form_label">WiFi Password</div>
+ <div class="form_input">
+ <input type="password" value="" name="psk" class="full-width" id="fld_psk" maxlength="63" disabled>
+ <div class="form_sublabel">
+ <label for="show_psk"><input type="checkbox" name="show_psk" id="show_psk"> show password</label>
+ </div>
+ </div>
+
+ <div class="form_label">Home ID</div>
+ <div class="form_input">
+ <input type="text" value="" maxlength="16" name="hid" id="fld_hid" class="full-width" disabled>
+ </div>
+
+ <button type="submit" disabled="disabled" name="submit">Save and Reboot</button>
+ </form>
+</div>
+
+<div class="title">Update firmware (.bin)</div>
+<div class="block">
+ <form method="post" action="/update" enctype="multipart/form-data" name="update_settings">
+ <div class="form_input">
+ <input type="file" accept=".bin,.bin.gz" name="file">
+ </div>
+ <button type="submit" name="submit" disabled="disabled">Upload</button>
+ </form>
+</div>
+
+<div class="title">Reset settings</div>
+<div class="block">
+ <form method="post" action="/reset">
+ <button type="submit" name="submit" class="is_reset">Reset</button>
+ </form>
+</div>
+
+<div class="title">Info</div>
+<div class="block">
+ ESP8266-based <b>relayctl</b>, firmware v{version}<br>
+ Part of <a href="https://git.ch1p.io/homekit.git/">homekit</a> by <a href="https://ch1p.io">Evgeny Zinoviev</a> &copy; 2022
+</div>
+</body>
+</html> \ No newline at end of file