Commit 35daa725 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

refresh camogm command

parent 07f574f2
......@@ -74,6 +74,7 @@ $rec_fast = false;
$rec_norm = false;
$rec_reset = false;
$rec_refresh = false;
$system_reboot = false;
// keys assign
......@@ -116,6 +117,7 @@ foreach($_GET as $key=>$value) {
case "reboot" : $system_reboot = true;break;
case "reset_rec" : $rec_reset = true;break;
case "refresh_rec" : $rec_refresh = true;break;
case "get_free_space" : $get_free_space=true; break;
case "mount_point" : $mount_point = $value; break;
......@@ -212,6 +214,13 @@ if ($rec_reset){
print("ok");
}
if ($rec_refresh){
for ($i=0;$i<count($unique_cams);$i++) {
file_get_contents("http://{$unique_cams[$i]['ip']}/eyesis4pi_interface.php?cmd=refresh_camogm_fastrec", 'r');
}
print("ok");
}
# presets for recording to a file system
function set_normal_recording($ip){
fopen("http://{$ip}/camogm_interface.php?cmd=set_prefix&prefix=/mnt/sda1/", 'r');
......@@ -223,7 +232,7 @@ function set_normal_recording($ip){
function set_fast_recording($ip){
fopen("http://{$ip}/camogm_interface.php?cmd=setrawdevpath&path=/dev/sda2", 'r');
//experimental, default = 0 = disabled, set 1 to enable
fopen("http://{$ip}/camogm_interface.php?cmd=set_dummy_read&dummy_read=0", 'r');
fopen("http://{$ip}/camogm_interface.php?cmd=set_dummy_read&dummy_read=1", 'r');
fopen("http://{$ip}/camogm_interface.php?cmd=setjpeg", 'r');
}
......
......@@ -10,7 +10,7 @@
<input_quality>97</input_quality>
<input_trigger_period>250</input_trigger_period>
<input_hdrvexpos>0x36000</input_hdrvexpos>
<input_autoexp_max>1</input_autoexp_max>
<input_autoexp_max>30</input_autoexp_max>
<input_autoexp_lvl>220</input_autoexp_lvl>
<input_autoexp_fracpix>98</input_autoexp_fracpix>
<input_autoexp_frames_ahead>1</input_autoexp_frames_ahead>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment