-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
33 lines (32 loc) · 1.36 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>POCUS-Pi</title>
<link rel="stylesheet" type="text/css" href="./style.css">
</head>
<body>
<h2>Sonostreamer</h2>
<fieldset id="status-field">
<legend>System Status</legend>
<p><div id="internet-status" class="status"></div><span class="status-label">Internet</span></p>
<p><div id="capture-device-status" class="status"></div><span class="status-label">Capture Device</span></p>
<p><div id="stream-status" class="status"></div><span class="status-label">Livestream</span></p>
</fieldset>
<div class="button-grid">
<button onclick="requestUpdate()" disabled class="up-to-date" id="update-btn"></button>
<button onclick="fetch('./stream/start')">Start Livestream</button>
<button onclick="fetch('./stream/stop')">Stop Livestream</button>
<button onclick="location.href='./settings'">Settings / Wifi</button>
<button onclick="fetch('./system/reboot')">Reboot System</button>
<button onclick="fetch('./system/shutdown')">Shutdown System</button>
</div>
<fieldset id="status-field">
<legend>Stream URL & Video Source</legend>
<p id="stream-url"></p>
<p id="video-source"></p>
</fieldset>
<script src="./client.js"></script>
</body>
</html>