Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
motosat
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
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
motosat
Commits
70cb390d
Commit
70cb390d
authored
Oct 14, 2019
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added call arguments
parent
8d3e1fea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
log_phone_sensors.php
log_phone_sensors.php
+10
-3
No files found.
log_phone_sensors.php
View file @
70cb390d
<?php
<?php
$phone_ip
=
"
http://
192.168.7.222"
;
$phone_ip
=
"192.168.7.222"
;
$phone_port
=
"8123"
;
$phone_port
=
"8123"
;
$phone_url
=
$phone_ip
.
":"
.
$phone_port
;
$log_dir
=
dirname
(
get_included_files
()[
0
])
.
"/logs"
;
// "/home/eyesis/git/motosat/attic/logs/";
$log_file
=
fopen
(
"/home/eyesis/git/motosat/attic/logs/phone07.log"
,
"w"
);
$log_name
=
"phone07.log"
;
if
(
isset
(
$_GET
[
"ip"
]))
{
$phone_ip
=
myfval
(
$_GET
[
"ip"
]);}
if
(
isset
(
$_GET
[
"log_dir"
]))
{
$log_dir
=
myfval
(
$_GET
[
"log_dir"
]);}
if
(
isset
(
$_GET
[
"log_name"
]))
{
$log_name
=
myfval
(
$_GET
[
"log_name"
]);}
$phone_url
=
"http://"
.
$phone_ip
.
":"
.
$phone_port
;
$log_file
=
fopen
(
trim
(
$log_dir
,
"/"
)
.
"/"
.
$log_name
,
"w"
);
$ts_l
=
14
;
$ts_l
=
14
;
$acc_l
=
35
;
$acc_l
=
35
;
$mag_l
=
35
;
$mag_l
=
35
;
...
...
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