1
0
mirror of https://github.com/fritz-smh/yi-hack.git synced 2026-08-11 16:33:00 +00:00

Add hardware detection in logs, display versions informations in web interface also

This commit is contained in:
fritz-smh
2016-03-22 22:50:50 +01:00
parent d9a57455c9
commit 8184ec3717
3 changed files with 37 additions and 13 deletions
+10
View File
@@ -0,0 +1,10 @@
</pre>
<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>
@@ -21,12 +21,5 @@
<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>
<h2>Software and hardware informations</h2>
<pre>