Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Astreos_Arduino
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hicham Brahimi
Astreos_Arduino
Commits
aafeb5ac
Commit
aafeb5ac
authored
6 years ago
by
hichbra
Browse files
Options
Downloads
Patches
Plain Diff
fix name
parent
f6d36f83
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Raspberry/Raspberry_central/RecuperationValeur.py
+3
-2
3 additions, 2 deletions
Raspberry/Raspberry_central/RecuperationValeur.py
with
3 additions
and
2 deletions
Raspberry/Raspberry_central/RecuperationValeur.py
+
3
−
2
View file @
aafeb5ac
...
@@ -5,7 +5,8 @@ import sys
...
@@ -5,7 +5,8 @@ import sys
import
subprocess
import
subprocess
import
os
import
os
port
=
"
ttyACM0
"
port
=
sys
.
argv
[
1
]
#"ttyACM0"
try
:
try
:
os
.
makedirs
(
port
)
os
.
makedirs
(
port
)
except
OSError
:
except
OSError
:
...
@@ -30,7 +31,7 @@ while True:
...
@@ -30,7 +31,7 @@ while True:
print
(
s
);
print
(
s
);
output_file
.
write
(
s
);
output_file
.
write
(
s
);
if
((
datetime
.
now
()
-
delai
).
seconds
)
/
60
>=
60
:
if
((
datetime
.
now
()
-
delai
).
seconds
)
/
60
>=
60
:
print
(
"
PROCESS
"
)
print
(
"
PROCESS
"
+
port
)
output_file
.
close
()
output_file
.
close
()
fichierAEnvoyer
=
file
fichierAEnvoyer
=
file
file
=
port
+
"
/
"
+
datetime
.
now
().
strftime
(
"
%d-%m-%Y_%H.%M.%S
"
);
file
=
port
+
"
/
"
+
datetime
.
now
().
strftime
(
"
%d-%m-%Y_%H.%M.%S
"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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