mirror of
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git
synced 2025-09-09 15:40:45 +02:00
Update status.cgi
fix typo
This commit is contained in:
@@ -272,7 +272,7 @@ cat << EOF
|
||||
<div class="columns">
|
||||
|
||||
<div class="column">
|
||||
<label>Audio Test</label>
|
||||
<label>Audio Output Test</label>
|
||||
<div class="buttons">
|
||||
<button class="button is-link" onClick="call('cgi-bin/action.cgi?cmd=audio_test')">Test</button>
|
||||
</div>
|
||||
@@ -386,7 +386,7 @@ cat << EOF
|
||||
|
||||
<!-- MJPEG RTSP -->
|
||||
<div class='card status_card'>
|
||||
<header class='card-header'><p class='card-header-title'>Start MJGEP RTSP</p></header>
|
||||
<header class='card-header'><p class='card-header-title'>Start MJPEG RTSP</p></header>
|
||||
<div class='card-content'>
|
||||
<button class="button is-link" onClick="call('cgi-bin/action.cgi?cmd=mjpeg_start')">Start</button>
|
||||
<button class="button is-warning" onClick="call('cgi-bin/action.cgi?cmd=rtsp_stop')">Stop</button>
|
||||
@@ -401,6 +401,81 @@ cat << EOF
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Audio Settings -->
|
||||
<div class='card status_card'>
|
||||
<header class='card-header'>
|
||||
<p class='card-header-title'>Audio Settings</p>
|
||||
</header>
|
||||
<div class='card-content'>
|
||||
<form id="formaudioin" action="cgi-bin/action.cgi?cmd=conf_audioin" method="post">
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<div class="field is-horizontal">
|
||||
<div class="field-label is-normal">
|
||||
<label class="label">Select audio format</label>
|
||||
</div>
|
||||
|
||||
<div class="field-body">
|
||||
<div class="select">
|
||||
<select name="audioinFormat">
|
||||
<option value="OFF" $(source /system/sdcard/config/rtspserver.conf; if [ "$(echo $AUDIOFORMAT | grep OFF)" != "" ]; then echo selected; fi)>OFF</option>
|
||||
<option value="OPUS" $(source /system/sdcard/config/rtspserver.conf; if [ "$(echo $AUDIOFORMAT | grep OPUS)" != "" ]; then echo selected; fi)>OPUS</option>
|
||||
<option value="PCM" $(source /system/sdcard/config/rtspserver.conf; if [ "$(echo $AUDIOFORMAT | grep -w PCM)" != "" ]; then echo selected; fi)>PCM</option>
|
||||
<option value="PCMU" $(source /system/sdcard/config/rtspserver.conf; if [ "$(echo $AUDIOFORMAT | grep -w PCMU)" != "" ]; then echo selected; fi)>PCMU</option>
|
||||
<option value="MP3-8000" $(source /system/sdcard/config/rtspserver.conf; if [ "$(echo $AUDIOFORMAT$AUDIOOUTB | grep -w MP38000)" != "" ]; then echo selected; fi)>MP3-8000</option>
|
||||
<option value="MP3-44100" $(source /system/sdcard/config/rtspserver.conf; if [ "$(echo $AUDIOFORMAT$AUDIOOUTBR | grep -w MP344100)" != "" ]; then echo selected; fi)>MP3-44100</option>
|
||||
</select>
|
||||
</div>
|
||||
<span class="help">
|
||||
Needs a restart to become active.
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field is-horizontal">
|
||||
<div class="field-label is-normal">
|
||||
<label class="label">Filter (low filter)</label>
|
||||
</div>
|
||||
<div class="field-body">
|
||||
<div class="select">
|
||||
<select name="audioinFilter">
|
||||
<option value="0" $(if [ "$(/system/sdcard/bin/setconf -g q)" == "0" ]; then echo selected; fi)>No filter</option>
|
||||
<option value="1" $(if [ "$(/system/sdcard/bin/setconf -g q)" == "1" ]; then echo selected; fi)>Filter 1</option>
|
||||
<option value="2" $(if [ "$(/system/sdcard/bin/setconf -g q)" == "2" ]; then echo selected; fi)>Filter 2</option>
|
||||
<option value="3" $(if [ "$(/system/sdcard/bin/setconf -g q)" == "3" ]; then echo selected; fi)>NS Filter LOW</option>
|
||||
<option value="4" $(if [ "$(/system/sdcard/bin/setconf -g q)" == "4" ]; then echo selected; fi)>NS Filter MODERATE</option>
|
||||
<option value="5" $(if [ "$(/system/sdcard/bin/setconf -g q)" == "5" ]; then echo selected; fi)>NS Filter HIGH</option>
|
||||
<option value="6" $(if [ "$(/system/sdcard/bin/setconf -g q)" == "6" ]; then echo selected; fi)>NS Filter VERY HIGH</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field is-horizontal">
|
||||
<div class="field-label is-normal">
|
||||
<label class="label">High pass filter</label>
|
||||
</div>
|
||||
<div class="field-body">
|
||||
<p class="control">
|
||||
<input type="checkbox" name="HFEnabled" value="enabled" $(if [ "$(/system/sdcard/bin/setconf -g l)" == "true" ]; then echo checked; fi)/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="field is-horizontal">
|
||||
<div class="field-label is-normal">
|
||||
<label class="label">Volume</label>
|
||||
</div>
|
||||
<input class="slider is-fullwidth" name="audioinVol" step="1" min="-1" max="120" value="$(/system/sdcard/bin/setconf -g h)" type="range">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="control">
|
||||
<input id="audioinSubmit" class="button is-primary" type="submit" value="Set" />
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- OSD -->
|
||||
<div class='card status_card'>
|
||||
<header class='card-header'><p class='card-header-title'>OSD Display</p></header>
|
||||
@@ -578,83 +653,6 @@ cat << EOF
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Audio In (Mic) -->
|
||||
<div class='card status_card'>
|
||||
<header class='card-header'>
|
||||
<p class='card-header-title'>Audio In (Mic)</p>
|
||||
</header>
|
||||
<div class='card-content'>
|
||||
<form id="formaudioin" action="cgi-bin/action.cgi?cmd=conf_audioin" method="post">
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<div class="field is-horizontal">
|
||||
<div class="field-label is-normal">
|
||||
<label class="label">Select audio format</label>
|
||||
</div>
|
||||
|
||||
<div class="field-body">
|
||||
<div class="select">
|
||||
<select name="audioinFormat">
|
||||
<option value="OFF" $(source /system/sdcard/config/rtspserver.conf; if [ "$(echo $AUDIOFORMAT | grep OFF)" != "" ]; then echo selected; fi)>OFF</option>
|
||||
<option value="OPUS" $(source /system/sdcard/config/rtspserver.conf; if [ "$(echo $AUDIOFORMAT | grep OPUS)" != "" ]; then echo selected; fi)>OPUS</option>
|
||||
<option value="PCM" $(source /system/sdcard/config/rtspserver.conf; if [ "$(echo $AUDIOFORMAT | grep -w PCM)" != "" ]; then echo selected; fi)>PCM</option>
|
||||
<option value="PCMU" $(source /system/sdcard/config/rtspserver.conf; if [ "$(echo $AUDIOFORMAT | grep -w PCMU)" != "" ]; then echo selected; fi)>PCMU</option>
|
||||
<option value="MP3-8000" $(source /system/sdcard/config/rtspserver.conf;if [ "$(echo $AUDIOFORMAT$AUDIOOUTB | grep -w MP38000)" != "" ]; then echo selected; fi)>MP3-8000</option>
|
||||
<option value="MP3-44100" $(source /system/sdcard/config/rtspserver.conf; if [ "$(echo $AUDIOFORMAT$AUDIOOUTBR | grep -w MP344100)" != "" ]; then echo selected; fi)>MP3-44100</option>
|
||||
</select>
|
||||
</div>
|
||||
<span class="help">
|
||||
Need to restart the camera to be taken into account
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field is-horizontal">
|
||||
<div class="field-label is-normal">
|
||||
<label class="label">Filter (low filter)</label>
|
||||
</div>
|
||||
<div class="field-body">
|
||||
<div class="select">
|
||||
<select name="audioinFilter">
|
||||
<option value="0" $(if [ "$(/system/sdcard/bin/setconf -g q)" == "0" ]; then echo selected; fi)>No filter</option>
|
||||
<option value="1" $(if [ "$(/system/sdcard/bin/setconf -g q)" == "1" ]; then echo selected; fi)>Filter 1</option>
|
||||
<option value="2" $(if [ "$(/system/sdcard/bin/setconf -g q)" == "2" ]; then echo selected; fi)>Filter 2</option>
|
||||
<option value="3" $(if [ "$(/system/sdcard/bin/setconf -g q)" == "3" ]; then echo selected; fi)>NS Filter LOW</option>
|
||||
<option value="4" $(if [ "$(/system/sdcard/bin/setconf -g q)" == "4" ]; then echo selected; fi)>NS Filter MODERATE</option>
|
||||
<option value="5" $(if [ "$(/system/sdcard/bin/setconf -g q)" == "5" ]; then echo selected; fi)>NS Filter HIGH</option>
|
||||
<option value="6" $(if [ "$(/system/sdcard/bin/setconf -g q)" == "6" ]; then echo selected; fi)>NS Filter VERY HIGH</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field is-horizontal">
|
||||
<div class="field-label is-normal">
|
||||
<label class="label">High pass filter</label>
|
||||
</div>
|
||||
<div class="field-body">
|
||||
<p class="control">
|
||||
<input type="checkbox" name="HFEnabled" value="enabled" $(if [ "$(/system/sdcard/bin/setconf -g l)" == "true" ]; then echo checked; fi)/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="field is-horizontal">
|
||||
<div class="field-label is-normal">
|
||||
<label class="label">Volume</label>
|
||||
</div>
|
||||
<input class="slider is-fullwidth" name="audioinVol" step="1" min="-1" max="120" value="$(/system/sdcard/bin/setconf -g h)" type="range">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="control">
|
||||
<input id="audioinSubmit" class="button is-primary" type="submit" value="Set" />
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Original Xiaomi Software -->
|
||||
<div class='card status_card'>
|
||||
<header class='card-header'><p class='card-header-title'>Start original Xiaomi Software</p></header>
|
||||
@@ -663,8 +661,6 @@ cat << EOF
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- Process List -->
|
||||
<div class='card status_card'>
|
||||
<header class='card-header'><p class='card-header-title'>Process List</p></header>
|
||||
|
Reference in New Issue
Block a user