diff --git a/Raspberry/Raspberry_central/RecuperationValeur.py b/Raspberry/Raspberry_central/RecuperationValeur.py index 2591de922af1247939ccf3d6f33849dba10ac341..37f5fe0daf3d36241b1a3e673a32c300a51b4e3f 100644 --- a/Raspberry/Raspberry_central/RecuperationValeur.py +++ b/Raspberry/Raspberry_central/RecuperationValeur.py @@ -5,7 +5,8 @@ import sys import subprocess import os -port = "ttyACM0" +port = sys.argv[1] #"ttyACM0" + try: os.makedirs(port) except OSError: @@ -30,7 +31,7 @@ while True: print(s); output_file.write(s); if ((datetime.now()-delai).seconds)/60 >= 60: - print("PROCESS") + print("PROCESS "+port) output_file.close() fichierAEnvoyer = file file = port+"/"+datetime.now().strftime("%d-%m-%Y_%H.%M.%S");