Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
5a26aa3c
Commit
5a26aa3c
authored
Jun 08, 2017
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
www: rename temp file from /tmp/wrinfo to /tmp/www_wr_mon.txt
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
5db3b83f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
functionsget.php
userspace/rootfs_override/var/www/functionsget.php
+4
-4
No files found.
userspace/rootfs_override/var/www/functionsget.php
View file @
5a26aa3c
...
...
@@ -11,14 +11,14 @@ include 'functions.php';
#Save info to temp file so we dont have to execute command at each call
function
createTempDataFile
(){
shell_exec
(
"/wr/bin/wr_mon -w > /tmp/w
rinfo
"
);
shell_exec
(
"/wr/bin/wr_mon -w > /tmp/w
ww_wr_mon.txt
"
);
}
createTempDataFile
();
#Obtain the temperatures
function
getTemperatures
(
$sub_id
=
-
1
){
$temperatures
=
shell_exec
(
"cat /tmp/w
rinfo
| grep TEMP"
);
$temperatures
=
shell_exec
(
"cat /tmp/w
ww_wr_mon.txt
| grep TEMP"
);
$temperatures
=
split
(
" "
,
$temperatures
);
if
(
$sub_id
!=
-
1
){
$temperatures
=
$temperatures
[
$sub_id
];
...
...
@@ -28,7 +28,7 @@ function getTemperatures($sub_id = -1){
#Obtain the wr servo timing
function
getTiming
(){
$ports
=
shell_exec
(
"cat /tmp/w
rinfo
| grep SERVO"
);
$ports
=
shell_exec
(
"cat /tmp/w
ww_wr_mon.txt
| grep SERVO"
);
$ports
=
explode
(
" "
,
$ports
);
$txt
=
$ports
;
return
$txt
;
...
...
@@ -52,7 +52,7 @@ function getTablePortStatus(){
#Obtain the wr info
function
getPortStatus
(){
$wrinfo
=
shell_exec
(
"cat /tmp/w
rinfo
| grep wri"
);
$wrinfo
=
shell_exec
(
"cat /tmp/w
ww_wr_mon.txt
| grep wri"
);
$wrinfo
=
explode
(
"
\n
"
,
$wrinfo
);
return
$wrinfo
;
}
...
...
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