mirror of
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git
synced 2025-09-03 13:12:44 +02:00
Text updates and grammer changes
Text updates and grammer changes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<div class="w3-panel w3-card">
|
||||
|
||||
<h1>Camera configuration</h1>
|
||||
<h1>Camera Configuration</h1>
|
||||
|
||||
<!-- Tab menu -->
|
||||
<div class="w3-row">
|
||||
@@ -26,7 +26,7 @@
|
||||
<button class="accordion" type='button'>Resolution</button>
|
||||
<div class="panel">
|
||||
<p></p>
|
||||
<label>Video size</label>
|
||||
<label>Video size:</label>
|
||||
<select id="videoSize" class="w3-select" name="option">
|
||||
<option value="-W640 -H360">640x360</option>
|
||||
<option value="-W768 -H432">768x432</option>
|
||||
@@ -36,10 +36,10 @@
|
||||
<option value="-W1920 -H1080">1920x1080</option>
|
||||
</select>
|
||||
<p></p>
|
||||
<label>Bitrate (kbps)</label>
|
||||
<label>Bitrate (kbps):</label>
|
||||
<input id="bitRate" class="w3-input" type="text">
|
||||
<p></p>
|
||||
<label>Format</label>
|
||||
<label>Format:</label>
|
||||
<select id="format" class="w3-select" name="option">
|
||||
<option value="0">FixedQp</option>
|
||||
<option value="1">CBR</option>
|
||||
@@ -47,14 +47,14 @@
|
||||
<option value="3">SMART</option>
|
||||
</select>
|
||||
<p></p>
|
||||
<label>Frame rate (images per secondes)</label>
|
||||
<label>Frame rate (images per secondes):</label>
|
||||
<div class="w3-row-padding">
|
||||
<div class="w3-half">
|
||||
<label>Images</label>
|
||||
<label>Images:</label>
|
||||
<input id="frmRateNum" class="w3-input" type="text">
|
||||
</div>
|
||||
<div class="w3-half">
|
||||
<label>Secondes</label>
|
||||
<label>Seconds:</label>
|
||||
<input id="frmRateDen" class="w3-input" type="text">
|
||||
</div>
|
||||
</div>
|
||||
@@ -64,13 +64,13 @@
|
||||
<button class="accordion" type='button'>Network / Security</button>
|
||||
<div class="panel">
|
||||
<p></p>
|
||||
<label>Username</label>
|
||||
<label>Username:</label>
|
||||
<input id="videoUser" class="w3-input" type="text">
|
||||
<br />
|
||||
<label>Password</label>
|
||||
<label>Password:</label>
|
||||
<input id="videoPassword" class="w3-input" type="password">
|
||||
<br />
|
||||
<label>Port (default 8554)</label>
|
||||
<label>Port (default 8554):</label>
|
||||
<input id="videoPort" class="w3-input" type="number">
|
||||
<p></p>
|
||||
</div>
|
||||
@@ -78,13 +78,13 @@
|
||||
<button class="accordion" type='button'>Auto Night</button>
|
||||
<div class="panel">
|
||||
<p></p>
|
||||
<label>Auto Night mode</label>
|
||||
<label>Auto Night Mode</label>
|
||||
<select id="autoNightMode" class="w3-select" name="option">
|
||||
<option value="hw">Hardware</option>
|
||||
<option value="sw">Software</option>
|
||||
</select>
|
||||
<br />
|
||||
<label>Use average measurement on switching. Number of measurements</label>
|
||||
<label>Use average measurement on switching. Number of measurements:</label>
|
||||
<select id="avg" class="w3-select" name="option">
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
|
@@ -50,7 +50,7 @@ if [ -n "$F_cmd" ]; then
|
||||
if [ -s "/system/sdcard/VERSION" ]; then
|
||||
V_BRANCH=$(/system/sdcard/bin/jq -r .branch /system/sdcard/VERSION)
|
||||
V_COMMIT=$(/system/sdcard/bin/jq -r .commit /system/sdcard/VERSION)
|
||||
echo "commit <b>${V_COMMIT}</b> from branch <b>${V_BRANCH}</b>"
|
||||
echo "commit <b>${V_COMMIT}</b> from the <b>${V_BRANCH}</b> branch"
|
||||
else
|
||||
echo "Need to update to create a version file."
|
||||
fi
|
||||
|
@@ -202,7 +202,7 @@ if [ -n "$F_cmd" ]; then
|
||||
if [ -s "/system/sdcard/VERSION" ]; then
|
||||
V_BRANCH=$(/system/sdcard/bin/jq -r .branch /system/sdcard/VERSION)
|
||||
V_COMMIT=$(/system/sdcard/bin/jq -r .commit /system/sdcard/VERSION)
|
||||
echo "commit <b>${V_COMMIT}</b> from branch <b>${V_BRANCH}</b>"
|
||||
echo "commit <b>${V_COMMIT}</b> from the <b>${V_BRANCH}</b> branch"
|
||||
else
|
||||
echo "Need to update to create a version file."
|
||||
fi
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<!-- Control card -->
|
||||
<div class="w3-panel w3-card">
|
||||
<h1> Control system</h1>
|
||||
<h1> Control System</h1>
|
||||
<div class="w3-row">
|
||||
<a href="javascript:void(0)" onclick="openTab(event, 'services');">
|
||||
<div class="w3-third tablink w3-bottombar w3-hover-light-grey w3-padding w3-border-theme">Services</div>
|
||||
@@ -19,7 +19,7 @@
|
||||
<table class="w3-table-all" id="tabServices">
|
||||
<thead>
|
||||
<tr class="w3-theme">
|
||||
<th>Service name</th>
|
||||
<th>Service Name</th>
|
||||
<th>Control</th>
|
||||
<th>Autostart</th>
|
||||
</tr>
|
||||
|
@@ -32,14 +32,14 @@ $.get("cgi-bin/state.cgi", {cmd: "hostname"}, function(hostname){document.title
|
||||
<div class="w3-sidebar w3-bar-block w3-animate-left" style="display:none;z-index:5" id="sideBar">
|
||||
<button class="w3-bar-item w3-button w3-large w3-theme" onclick="w3_close()">Close ×</button>
|
||||
<p class="w3-large">Camera</p>
|
||||
<label class="switch"><input id="auto_night_mode" type="checkbox"><span class="slider round"></span></label> Auto night detecion<br />
|
||||
<label class="switch"><input id="auto_night_mode" type="checkbox"><span class="slider round"></span></label> Auto Night Detecion<br />
|
||||
<label class="switch"><input id="ir_led" type="checkbox"><span class="slider round"></span></label> IR Led<br />
|
||||
<label class="switch"><input id="ir_cut" type="checkbox"><span class="slider round"></span></label> IR Filter<br />
|
||||
<label class="switch"><input id="blue_led" type="checkbox"><span class="slider round"></span></label> Blue led<br />
|
||||
<label class="switch"><input id="yellow_led" type="checkbox"><span class="slider round"></span></label> Yellow led<br />
|
||||
<label class="switch"><input id="blue_led" type="checkbox"><span class="slider round"></span></label> Blue LED<br />
|
||||
<label class="switch"><input id="yellow_led" type="checkbox"><span class="slider round"></span></label> Yellow LED<br />
|
||||
<p class="w3-large">Motion</p>
|
||||
<label class="switch"><input id="motion_detection" type="checkbox"><span class="slider round"></span></label> Detection<br />
|
||||
<label class="switch"><input id="motion_mail" type="checkbox"><span class="slider round"></span></label> Send emails<br />
|
||||
<label class="switch"><input id="motion_mail" type="checkbox"><span class="slider round"></span></label> Send Emails<br />
|
||||
<label class="switch"><input id="motion_telegram" type="checkbox"><span class="slider round"></span></label> Send Telegram<br />
|
||||
<label class="switch"><input id="motion_led" type="checkbox"><span class="slider round"></span></label> LED<br />
|
||||
<label class="switch"><input id="motion_snapshot" type="checkbox"><span class="slider round"></span></label> Snapshots<br />
|
||||
@@ -63,8 +63,8 @@ $.get("cgi-bin/state.cgi", {cmd: "hostname"}, function(hostname){document.title
|
||||
<button onclick="openPage('softnight');" class="w3-bar-item w3-button">Software Night Detection</button>
|
||||
</div>
|
||||
</div>
|
||||
<button class="w3-bar-item w3-button" onclick="openPage('control');" title="System control"><i class="fas fa-tools"></i></button>
|
||||
<button class="w3-bar-item w3-button" onclick="openPage('info');" title="System informations"><i class="fa fa-info-circle"></i></button>
|
||||
<button class="w3-bar-item w3-button" onclick="openPage('control');" title="System Control"><i class="fas fa-tools"></i></button>
|
||||
<button class="w3-bar-item w3-button" onclick="openPage('info');" title="System Information"><i class="fa fa-info-circle"></i></button>
|
||||
<button class="w3-bar-item w3-button" onclick="openPage('sdcard');" title="View files on SD Card"><i class="fa fa-sd-card"></i></button>
|
||||
<div class="w3-dropdown-hover w3-right">
|
||||
<button class="w3-button" id="notifAlarm"><i class="fa fa-bell"></i></button>
|
||||
@@ -92,8 +92,8 @@ $.get("cgi-bin/state.cgi", {cmd: "hostname"}, function(hostname){document.title
|
||||
<p id="about">
|
||||
<strong>Dafang Hacks : </strong><br />
|
||||
Version: <em id="version">VERSION</em><br />
|
||||
<a href="https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/issues" target="_blank">Report issues</a> |
|
||||
<a href="index.html">Back main UI</a><br />
|
||||
<a href="https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/issues" target="_blank">Report and view issues</a> |
|
||||
<a href="index.html">Back to original UI</a><br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -109,14 +109,14 @@ $.get("cgi-bin/state.cgi", {cmd: "hostname"}, function(hostname){document.title
|
||||
</header>
|
||||
<div class="w3-container">
|
||||
<p id="theme">
|
||||
<label>Choose your theme</label>
|
||||
<label>Choose your theme:</label>
|
||||
<select id="theme" class="w3-select" name="option">
|
||||
<option value="w3-theme-dark-grey">Dark grey</option>
|
||||
<option value="w3-theme-dark-grey">Dark Grey</option>
|
||||
<option value="w3-theme-black">Black</option>
|
||||
<option value="w3-theme-night-blue">Light blue</option>
|
||||
<option value="w3-theme-night-blue">Light Blue</option>
|
||||
<option value="w3-theme-grey">Grey</option>
|
||||
<option value="w3-theme-indigo">Indigo</option>
|
||||
<option value="w3-theme-light-green">Light green</option>
|
||||
<option value="w3-theme-light-green">Light Green</option>
|
||||
<option value="w3-theme-orange">Orange</option>
|
||||
<option value="w3-theme-pink">Pink</option>
|
||||
<option value="w3-theme-teal">Teal</option>
|
||||
@@ -130,8 +130,8 @@ $.get("cgi-bin/state.cgi", {cmd: "hostname"}, function(hostname){document.title
|
||||
<!-- Footer -->
|
||||
<footer class="w3-container w3-card w3-theme w3-center">
|
||||
<a class="w3-bar-item w3-button" href="https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks" target="_blank" title="GitHub project page"><i class="fab fa-github"></i></a>
|
||||
<span class="w3-bar-item w3-button" onclick="document.getElementById('about').style.display='block'" title="Camera information"><i class="fas fa-info-circle"></i></span>
|
||||
<span class="w3-bar-item w3-button" onclick="document.getElementById('theme').style.display='block'" title="Choose theme color"><i class="fas fa-palette"></i></span>
|
||||
<span class="w3-bar-item w3-button" onclick="document.getElementById('about').style.display='block'" title="Camera Information"><i class="fas fa-info-circle"></i></span>
|
||||
<span class="w3-bar-item w3-button" onclick="document.getElementById('theme').style.display='block'" title="Choose Theme Color"><i class="fas fa-palette"></i></span>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<div class="w3-panel w3-card">
|
||||
<h1>Informations</h1>
|
||||
<h1>Information</h1>
|
||||
<div class="w3-row">
|
||||
<a href="javascript:void(0)" onclick="openTab(event, 'overview');">
|
||||
<div id='tab' class="w3-third tablink w3-bottombar w3-hover-light-grey w3-padding w3-border-theme">Overview</div>
|
||||
@@ -20,44 +20,44 @@
|
||||
<table class="w3-table w3-striped w3-border">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td> Hostname </td>
|
||||
<td> Hostname: </td>
|
||||
<td id="hostname"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Model </td>
|
||||
<td> Model: </td>
|
||||
<td id="model"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Firmware date </td>
|
||||
<td> Firmware date: </td>
|
||||
<td id="fwDate"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Firmware branch </td>
|
||||
<td> Firmware Branch: </td>
|
||||
<td id="fwBranch"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Firmware commit </td>
|
||||
<td> Firmware Commit: </td>
|
||||
<td id="fwCommit"> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td> Kernel Version </td>
|
||||
<td> Kernel Version: </td>
|
||||
<td id="kernel"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Bootloader Version </td>
|
||||
<td> Bootloader Version: </td>
|
||||
<td id="bootLoader"> </td>
|
||||
<tr>
|
||||
<tr>
|
||||
<td> Local Time </td>
|
||||
<td> Local Time: </td>
|
||||
<td id="localTime"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Uptime </td>
|
||||
<td> System Uptime: </td>
|
||||
<td id="uptime"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Load Average </td>
|
||||
<td> Load Average: </td>
|
||||
<td id="loadAvg"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -71,31 +71,31 @@
|
||||
<table class="w3-table w3-striped w3-border">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td> SSID </td>
|
||||
<td> SSID: </td>
|
||||
<td id="ssid"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Link Quality </td>
|
||||
<td> Link Quality: </td>
|
||||
<td id="linkQuality"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> IP Address </td>
|
||||
<td> IP Address: </td>
|
||||
<td id="ip"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> MAC Address </td>
|
||||
<td> MAC Address: </td>
|
||||
<td id="mac"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Netmask </td>
|
||||
<td> Netmask: </td>
|
||||
<td id="netmask"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Gateway </td>
|
||||
<td> Gateway: </td>
|
||||
<td id="gateway"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> DNS </td>
|
||||
<td> DNS: </td>
|
||||
<td id="dns"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -139,28 +139,28 @@
|
||||
|
||||
<div id="logs" class="w3-container tab " style="display:none">
|
||||
<p></p>
|
||||
<button class="accordion" type='button'>System logs</button>
|
||||
<button class="accordion" type='button'>System Logs</button>
|
||||
<div class="panel">
|
||||
<div class="w3-code notranslate" id='dmesg'></div>
|
||||
</div>
|
||||
|
||||
<button class="accordion" type='button'>logcat</button>
|
||||
<button class="accordion" type='button'>LogCat</button>
|
||||
<div class="panel">
|
||||
<div class="w3-code notranslate" id='logCat'></div>
|
||||
</div>
|
||||
<button class="accordion" type='button'>video server</button>
|
||||
<button class="accordion" type='button'>Video Server</button>
|
||||
<div class="panel">
|
||||
<div class="w3-code notranslate" id='logVideo'></div>
|
||||
</div>
|
||||
<button class="accordion" type='button'>last update</button>
|
||||
<button class="accordion" type='button'>Last Update</button>
|
||||
<div class="panel">
|
||||
<div class="w3-code notranslate" id='logUpdate'></div>
|
||||
</div>
|
||||
<button class="accordion" type='button'>process list</button>
|
||||
<button class="accordion" type='button'>Process List</button>
|
||||
<div class="panel">
|
||||
<div class="w3-code notranslate" id='logProcess'></div>
|
||||
</div>
|
||||
<button class="accordion" type='button'>mounts</button>
|
||||
<button class="accordion" type='button'>Mounts</button>
|
||||
<div class="panel">
|
||||
<div class="w3-code notranslate" id='logMounts'></div>
|
||||
</div>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
function timedRefresh(timeoutPeriod) {
|
||||
timeoutPeriod -= 1;
|
||||
$('#message').text("Rebooting ... wait..." + timeoutPeriod);
|
||||
$('#message').text("Rebooting ... please wait..." + timeoutPeriod);
|
||||
|
||||
if (timeoutPeriod == 0) {
|
||||
window.location.href = window.location.href;
|
||||
@@ -57,53 +57,53 @@ function showupdatepage(result) {
|
||||
var update_status = parseInt(update[1],10);
|
||||
|
||||
if (update_status == 0) {
|
||||
$('#updatemsg').html("You have already the lastest version from branch " + update[0])
|
||||
$('#updatemsg').html("You have already the lastest version from the " + update[0] + " branch")
|
||||
if (update[0] == "master") {
|
||||
$('#updatemsg').append('<button class="accordion" type="button" onclick="accordionUpdate(this);">Others Update options</button> \
|
||||
$('#updatemsg').append('<button class="accordion" type="button" onclick="accordionUpdate(this);">Other Update Options</button> \
|
||||
<div class="panel"> <p></p>\
|
||||
<input id="switchBeta" class="w3-btn w3-block w3-theme" type="text" value="Switch to beta firmware" onclick="start(\'beta\',\'full\')"/><br /> \
|
||||
<input id="fullStable" class="w3-btn w3-block w3-theme" type="text" value="Force full update to stable (remove version file + update)" onclick="start(\'master\',\'full\')"/><br /> \
|
||||
<input id="switchBeta" class="w3-btn w3-block w3-theme" type="text" value="Switch to BETA firmware" onclick="start(\'beta\',\'full\')"/><br /> \
|
||||
<input id="fullStable" class="w3-btn w3-block w3-theme" type="text" value="Force full update to STABLE (remove version file + update)" onclick="start(\'master\',\'full\')"/><br /> \
|
||||
</div>');
|
||||
|
||||
}
|
||||
else {
|
||||
$('#updatemsg').append('<button class="accordion" type="button" onclick="accordionUpdate(this);">Others Update options</button> \
|
||||
$('#updatemsg').append('<button class="accordion" type="button" onclick="accordionUpdate(this);">Other Update Options</button> \
|
||||
<div class="panel"> <p></p>\
|
||||
<input id="switchStable" class="w3-btn w3-block w3-theme" type="text" value="Switch to stable firmware" onclick="start(\'master\',\'full\')"/><br /> \
|
||||
<input id="fullBeta" class="w3-btn w3-block w3-theme" type="text" value="Force full update to beta(remove version file + update)" onclick="start(\'beta\',\'full\')"/><br /> \
|
||||
<input id="switchStable" class="w3-btn w3-block w3-theme" type="text" value="Switch to STABLE firmware" onclick="start(\'master\',\'full\')"/><br /> \
|
||||
<input id="fullBeta" class="w3-btn w3-block w3-theme" type="text" value="Force full update to BETA (remove version file + update)" onclick="start(\'beta\',\'full\')"/><br /> \
|
||||
</div>');
|
||||
}
|
||||
}
|
||||
else if (update_status == -1) {
|
||||
$('#updatemsg').html("No version file found. <br /> You can update the firmware on this camera to the latest from <a target='_blank' href='https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks'>Github repository</a>. <br />Settings will be retained after update.")
|
||||
$('#updatemsg').html("No version file found. <br /> You can update the firmware on this camera to the latest version from <a target='_blank' href='https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks'>Github repository</a>. <br />Settings will be retained after update.")
|
||||
$('#updatemsg').append('\
|
||||
<input id="updateStable" class="w3-btn w3-block w3-theme" type="text" value="Update firmware (stable)" onclick="start(\'master\',\'cumul\')"/><br /> \
|
||||
<input id="updateBeta" class="w3-btn w3-block w3-theme" type="text" value="Update firmware (beta)" onclick="start(\'beta\',\'cumul\')"/><br />');
|
||||
<input id="updateStable" class="w3-btn w3-block w3-theme" type="text" value="Update firmware (STABLE)" onclick="start(\'master\',\'cumul\')"/><br /> \
|
||||
<input id="updateBeta" class="w3-btn w3-block w3-theme" type="text" value="Update firmware (BETA)" onclick="start(\'beta\',\'cumul\')"/><br />');
|
||||
}
|
||||
else if (update_status > 0) {
|
||||
$('#updatemsg').html("You are "+ update_status +" commits behind "+ update[0] + " branch");
|
||||
if (update[0] == "master") {
|
||||
$('#updatemsg').append('<input id="updateStable" class="w3-btn w3-block w3-theme" type="text" value="Update firmware (stable)" onclick="start(\'master\',\'cumul\')"/><br />');
|
||||
$('#updatemsg').append('<button class="accordion" type="button" onclick="accordionUpdate(this);">Others Update options</button> \
|
||||
$('#updatemsg').append('<input id="updateStable" class="w3-btn w3-block w3-theme" type="text" value="Update firmware (STABLE)" onclick="start(\'master\',\'cumul\')"/><br />');
|
||||
$('#updatemsg').append('<button class="accordion" type="button" onclick="accordionUpdate(this);">Other Update Options</button> \
|
||||
<div class="panel"><p></p> \
|
||||
<input id="switchBeta" class="w3-btn w3-block w3-theme" type="text" value="Switch to beta firmware" onclick="start(\'beta\',\'full\')"/><br /> \
|
||||
<input id="fullStable" class="w3-btn w3-block w3-theme" type="text" value="Force full update to stable (remove version file + update)" onclick="start(\'master\',\'full\')"/><br /> \
|
||||
<input id="switchBeta" class="w3-btn w3-block w3-theme" type="text" value="Switch to BETA firmware" onclick="start(\'beta\',\'full\')"/><br /> \
|
||||
<input id="fullStable" class="w3-btn w3-block w3-theme" type="text" value="Force full update to STABLE (remove version file + update)" onclick="start(\'master\',\'full\')"/><br /> \
|
||||
</div>');
|
||||
}
|
||||
else {
|
||||
$('#updatemsg').append('<input id="updateBeta" class="w3-btn w3-block w3-theme" type="text" value="Update firmware (beta)" onclick="start(\'beta\',\'cumul\')"/><br />');
|
||||
$('#updatemsg').append('<button class="accordion" type="button" onclick="accordionUpdate(this);">Others Update options</button> \
|
||||
$('#updatemsg').append('<input id="updateBeta" class="w3-btn w3-block w3-theme" type="text" value="Update firmware (BETA)" onclick="start(\'beta\',\'cumul\')"/><br />');
|
||||
$('#updatemsg').append('<button class="accordion" type="button" onclick="accordionUpdate(this);">Other Update Options</button> \
|
||||
<div class="panel"> <p></p>\
|
||||
<input id="switchStable" class="w3-btn w3-block w3-theme" type="text" value="Switch to stable firmware" onclick="start(\'master\',\'full\')"/><br /> \
|
||||
<input id="fullBeta" class="w3-btn w3-block w3-theme" type="text" value="Force full update to beta(remove version file + update)" onclick="start(\'beta\',\'full\')"/><br /> \
|
||||
<input id="switchStable" class="w3-btn w3-block w3-theme" type="text" value="Switch to STABLE firmware" onclick="start(\'master\',\'full\')"/><br /> \
|
||||
<input id="fullBeta" class="w3-btn w3-block w3-theme" type="text" value="Force full update to BETA (remove version file + update)" onclick="start(\'beta\',\'full\')"/><br /> \
|
||||
</div>');
|
||||
}
|
||||
}
|
||||
else {
|
||||
$('#updatemsg').text("There is a problem with your VERSION file. Please do a full update to create a correct VERSION file.");
|
||||
$('#updatemsg').text("There is a problem with your VERSION file. Please do a full update to create a valid VERSION file.");
|
||||
$('#updatemsg').append('\
|
||||
<input id="updateStable" class="w3-btn w3-block w3-theme" type="text" value="Update firmware (stable)" onclick="start(\'master\',\'cumul\')"/><br /> \
|
||||
<input id="updateBeta" class="w3-btn w3-block w3-theme" type="text" value="Update firmware (beta)" onclick="start(\'beta\',\'cumul\')"/><br />');
|
||||
<input id="updateStable" class="w3-btn w3-block w3-theme" type="text" value="Update firmware (STABLE)" onclick="start(\'master\',\'cumul\')"/><br /> \
|
||||
<input id="updateBeta" class="w3-btn w3-block w3-theme" type="text" value="Update firmware (BETA)" onclick="start(\'beta\',\'cumul\')"/><br />');
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -116,7 +116,7 @@ function start(branch,mode) {
|
||||
//Open modal window
|
||||
document.getElementById('modal_box').style.display='block'
|
||||
$('#modal_title').html('Update in progress');
|
||||
$('#modal_content').html('<h4>Please note: at the end of this process the camera will reboot without notice</h4> \
|
||||
$('#modal_content').html('<h4>Please note: at the end of this process the camera will reboot without notice!</h4> \
|
||||
<div class="w3-light-grey"><div id="progress" class="w3-container w3-theme" style="width:0%"><span id="progressValue">0%</span></div></div><br><h4 id=message></h4>');
|
||||
|
||||
var url = 'cgi-bin/action.cgi?cmd=update&release='+branch+'&mode='+mode;
|
||||
@@ -129,7 +129,7 @@ function start(branch,mode) {
|
||||
if (result.length > 0) {
|
||||
update(false);
|
||||
} else {
|
||||
$('#modal_content').text("Error starting update progress");
|
||||
$('#modal_content').text("Error starting update process!!!");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@@ -11,7 +11,7 @@ function getConfig() {
|
||||
|
||||
}
|
||||
|
||||
//Get network informations
|
||||
//Get network information
|
||||
function getInfo(infoname) {
|
||||
$.get("cgi-bin/info2.cgi", {cmd: "get_info", info: infoname}, function(config){
|
||||
config = config.replace(/\n/g,'<br />');
|
||||
|
@@ -30,7 +30,7 @@ function getFiles(dir) {
|
||||
<tbody>");
|
||||
var config_all = config.split("\n");
|
||||
if ( config_all.length == 1)
|
||||
$('#'+dir).html("<h1>No file found</h1>");
|
||||
$('#'+dir).html("<h1>No files found</h1>");
|
||||
for (var i = 0; i < config_all.length-1; i++) {
|
||||
var config_info = config_all[i].split("#:#");
|
||||
var file_info = config_info[3].split(".");
|
||||
@@ -45,7 +45,7 @@ function getFiles(dir) {
|
||||
<a href=\""+config_info[3]+"\" download><i class='fas fa-download' title='Download file'></i></a> \
|
||||
<span onclick=\"deleteFile('"+config_info[3]+"','"+dir+"')\"><i class='fas fa-trash' title='Delete file'></i></span>\
|
||||
"+html_photo+"\
|
||||
</td></tr>");
|
||||
</td></tr>");
|
||||
}
|
||||
$('#'+dir).append("</tbody></table><p></p>");
|
||||
|
||||
|
@@ -52,7 +52,7 @@
|
||||
var update_status = parseInt(update[1],10);
|
||||
|
||||
if (update_status == 0) {
|
||||
$('#updatemsg').html("You have already the lastest version from branch " + update[0])
|
||||
$('#updatemsg').html("You have already the lastest version from the " + update[0] + " branch")
|
||||
if (update[0] == "master") {
|
||||
$('#btn_switch_beta').removeAttr('style');
|
||||
$('#btn_force_update_master').removeAttr('style');
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<div class="w3-panel w3-card">
|
||||
<h1>SD Card files</h1>
|
||||
<h1>SD Card Files</h1>
|
||||
<div class="w3-row">
|
||||
<a href="javascript:void(0)" onclick="openTab(event, 'motion');getFiles('motion');">
|
||||
<div class="w3-third tablink w3-bottombar w3-hover-light-grey w3-padding w3-border-theme">Motion</div>
|
||||
|
@@ -1,9 +1,9 @@
|
||||
|
||||
<div class="w3-panel w3-card">
|
||||
<h1 class="is-size-4">Software auto night setting</h1>
|
||||
<h1 class="is-size-4">Software Auto Night Settings</h1>
|
||||
|
||||
|
||||
Please stop autonight detection service if its running.
|
||||
Please stop the autonight detection service if its running.
|
||||
|
||||
<form id="swNightForm" action="cgi-bin/action.cgi?cmd=save_sw_night_config" method="post">
|
||||
<!--button id='play' type="button">Pause</button-->
|
||||
@@ -34,7 +34,7 @@ Please stop autonight detection service if its running.
|
||||
<br>
|
||||
<table border="1" id="t_wait" style="margin: 0px;" class='w3-table wait'>
|
||||
<tr><td class='code_text'>Wait </td>
|
||||
<td class='code_text'><input type="text" id="sec_wait" value=3 size="3"> sec after changing mode</td>
|
||||
<td class='code_text'><input type="text" id="sec_wait" value=3 size="3"> seconds after changing mode</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -73,7 +73,7 @@ Please stop autonight detection service if its running.
|
||||
<tr><td colspan="3"></td>
|
||||
<td><table>
|
||||
<tr><td><input type="text" id="count_eq2" disabled=true value=0 size="2"></td></tr>
|
||||
<tr><td class='code_text'>if count > <input type="text" id="eq2_count" value=10 size="3" class='code_text'> switch to day mode </tr>
|
||||
<tr><td class='code_text'>if count > <input type="text" id="eq2_count" value=10 size="3" class='code_text'> switch to day mode </tr>
|
||||
</table></td></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
Reference in New Issue
Block a user