Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eyesis4pi-393-gui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
eyesis4pi-393-gui
Commits
35daa725
Commit
35daa725
authored
Mar 31, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refresh camogm command
parent
07f574f2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
eyesis4pi_control.php
eyesis4pi_control.php
+10
-1
settings.xml
settings.xml
+1
-1
No files found.
eyesis4pi_control.php
View file @
35daa725
...
...
@@ -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'
);
}
...
...
settings.xml
View file @
35daa725
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment