1
0
mirror of https://github.com/fritz-smh/yi-hack synced 2025-06-09 00:46:21 +00:00
yi-hack/sd/test/http/index.html
2016-03-09 22:20:10 +01:00

33 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Yi hack</title>
</head>
<body>
<h1>Yi HTTP Server</h1>
<p>This Yi is powered by a custom firmware. See <a href="https://github.com/fritz-smh/yi-hack">https://github.com/fritz-smh/yi-hack</a> for more informations</a>.</p>
<h2>RTSP stream channels</h2>
<p>This camera IP is <span id="ip"></span></p>
<ul>
<li><a id="ch0_0" href="">High definition video stream</a></li>
<li><a id="ch0_1" href="">Low definition video stream</a></li>
<li><a id="ch0_3" href="">Audio stream</a></li>
</ul>
<h2>API</h2>
<ul>
<li><strong><a href="/motion">GET /motion</a></strong> : if a motion has been detected in the last minute, display the filename. Else, display nothing. Example of filename : <em>record/2016Y03M08D22H/20M00S.mp4</em></li>
</ul>
<h2>Record files</h2>
<ul>
<li><a href="/record/">Click here to access the record files.</a></li>
</ul>
<script type="text/javascript">
var ip = location.host;
document.getElementById("ip").textContent=ip;
document.getElementById("ch0_0").href="rtsp://"+ip+":554/ch0_0.h264";
document.getElementById("ch0_1").href="rtsp://"+ip+":554/ch0_1.h264";
document.getElementById("ch0_3").href="rtsp://"+ip+":554/ch0_3.h264";
</script>
</body>
</html>