Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MITIK-MGMT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Wireless Passive Measurements
Collection management
MITIK-MGMT
Commits
b0e9d210
Commit
b0e9d210
authored
5 months ago
by
Autodistries
Browse files
Options
Downloads
Patches
Plain Diff
remove debug statements, fix gps
parent
59a91658
No related branches found
No related tags found
1 merge request
!1
Refactoring, new features
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
files/positionGetter.sh
+4
-4
4 additions, 4 deletions
files/positionGetter.sh
playbooks/start_sens_sniffer.yml
+1
-1
1 addition, 1 deletion
playbooks/start_sens_sniffer.yml
with
5 additions
and
5 deletions
files/positionGetter.sh
+
4
−
4
View file @
b0e9d210
...
@@ -17,8 +17,8 @@ gpsLocations=$(mktemp /tmp/locations-XXXXXX.gps)
...
@@ -17,8 +17,8 @@ gpsLocations=$(mktemp /tmp/locations-XXXXXX.gps)
# fi
# fi
# this test prevents any further connection
# this test prevents any further connection
while
[
$(
pgrep
-
a
"sniffer.py"
>
/dev/null
;
echo
$?
)
==
0
]
;
do
while
[
$(
pgrep
-
f
"sniffer.py"
>
/dev/null
;
echo
$?
)
==
0
]
;
do
# Location °N, °E is expected
data
=
$(
gpspipe
-w
-n
10 |grep
-om1
"[-]
\?
[[:digit:]]
\{
1,3
\}\.
[[:digit:]]
\{
9
\}
.*[[:digit:]]
\{
1,3
\}\.
[[:digit:]]
\{
9
\}
"
|
sed
's/"lon"://g'
)
data
=
$(
gpspipe
-w
-n
10 |grep
-om1
"[-]
\?
[[:digit:]]
\{
1,3
\}\.
[[:digit:]]
\{
9
\}
.*[[:digit:]]
\{
1,3
\}\.
[[:digit:]]
\{
9
\}
"
|
sed
's/"lon"://g'
)
# 48.714318200,2.206028200
# 48.714318200,2.206028200
# │ Latitude: 48.71441340 N │
# │ Latitude: 48.71441340 N │
...
@@ -42,5 +42,5 @@ awk -F',' '
...
@@ -42,5 +42,5 @@ awk -F',' '
}
}
END {
END {
print lat/NR,lon/NR,alt/NR;
print lat/NR,lon/NR,alt/NR;
}'
$gpsLocations
>
"
$(
echo
$3
"/location
-"
$4
"
.log"
)
"
}'
$gpsLocations
>
"
$(
echo
$3
"/
"
$4
"
$(
date
+%Y%m%d_%H%M%S
)
-
location
.gps
.log"
)
"
# will write eg as ~/mitik-sens/
location-MM-DD-HH-MM-wifiX-chan6.log
# will write eg as ~/mitik-sens/
This diff is collapsed.
Click to expand it.
playbooks/start_sens_sniffer.yml
+
1
−
1
View file @
b0e9d210
...
@@ -104,4 +104,4 @@
...
@@ -104,4 +104,4 @@
name
:
"
ansible_sens_gps
{{
_hour
}}
{{
_minute
}}"
name
:
"
ansible_sens_gps
{{
_hour
}}
{{
_minute
}}"
minute
:
"
{{
_minute
}}"
minute
:
"
{{
_minute
}}"
hour
:
"
{{
_hour
}}"
hour
:
"
{{
_hour
}}"
job
:
"
/home/{{ansible_ssh_user}}/positionGetter.sh
{{_gps_poll_timeout}}
10
'{{_workdir}}'
'{{_location_prefix}}
location$(date
+%Y%m%d_%H%M%S).gps
'"
job
:
"
/home/{{ansible_ssh_user}}/positionGetter.sh
{{_gps_poll_timeout}}
10
'{{_workdir}}'
'{{_location_prefix}}'"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment