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
59142704
Commit
59142704
authored
Apr 20, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+strip_xml_header
parent
2d027380
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
eyesis4pi_control.php
eyesis4pi_control.php
+12
-1
settings.xml
settings.xml
+2
-2
No files found.
eyesis4pi_control.php
View file @
59142704
...
@@ -396,9 +396,11 @@ if ($get_free_space) {
...
@@ -396,9 +396,11 @@ if ($get_free_space) {
$res_xmls
=
array
();
$res_xmls
=
array
();
foreach
(
$unique_cams
as
$cam
){
foreach
(
$unique_cams
as
$cam
){
$rqstr
=
file_get_contents
(
"http://
{
$cam
[
'ip'
]
}
/eyesis4pi_interface.php?cmd=free_space"
);
$rqstr
=
file_get_contents
(
"http://
{
$cam
[
'ip'
]
}
/eyesis4pi_interface.php?cmd=free_space"
);
$rqstr
=
strip_xml_header
(
$rqstr
);
array_push
(
$res_xmls
,
$rqstr
);
array_push
(
$res_xmls
,
$rqstr
);
//array_push($res_xmls,$rqstr);
}
}
$res_xml
=
implode
(
""
,
$res_xmls
);
$res_xml
=
implode
(
""
,
$res_xmls
);
$res_xml
=
"<?xml version='1.0'?>
\n
<Document>
\n
$res_xml
</Document>
\n
"
;
$res_xml
=
"<?xml version='1.0'?>
\n
<Document>
\n
$res_xml
</Document>
\n
"
;
...
@@ -459,4 +461,13 @@ if ($run_status) {
...
@@ -459,4 +461,13 @@ if ($run_status) {
flush
();
flush
();
}
}
function
strip_xml_header
(
$str
){
$patterns
=
array
(
'/<\?xml(.+)\?>\n/'
,
//xml header
'/\n$/'
//last new line
);
$str
=
preg_replace
(
$patterns
,
''
,
$str
);
return
$str
;
}
?>
?>
\ No newline at end of file
settings.xml
View file @
59142704
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
<footage_limit>
3000
</footage_limit>
<footage_limit>
3000
</footage_limit>
<gpsimu_device_name>
/dev/sda1
</gpsimu_device_name>
<gpsimu_device_name>
/dev/sda1
</gpsimu_device_name>
<box_force_jp4>
checked
</box_force_jp4>
<box_force_jp4>
checked
</box_force_jp4>
<input_quality>
9
7
</input_quality>
<input_quality>
9
8
</input_quality>
<input_trigger_period>
5
00
</input_trigger_period>
<input_trigger_period>
20
00
</input_trigger_period>
<input_hdrvexpos>
0x36000
</input_hdrvexpos>
<input_hdrvexpos>
0x36000
</input_hdrvexpos>
<input_autoexp_max>
30
</input_autoexp_max>
<input_autoexp_max>
30
</input_autoexp_max>
<input_autoexp_lvl>
220
</input_autoexp_lvl>
<input_autoexp_lvl>
220
</input_autoexp_lvl>
...
...
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