From bebfb8adb35be4eac93361231b8b4153cdfbcc94 Mon Sep 17 00:00:00 2001 From: Kerboul Date: Sun, 27 Apr 2025 15:56:21 +0200 Subject: [PATCH] =?UTF-8?q?Modifier=20la=20valeur=20de=20timelapse=20?= =?UTF-8?q?=C3=A0=203=20et=20simplifier=20l'ex=C3=A9cution=20de=20Singlero?= =?UTF-8?q?utin=20dans=20les=20scripts=20de=20connexion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Automate.py | 2 +- Time_Lapse_Connection.py | 5 ++--- Time_Lapse_NoConnection.py | 5 ++--- script.sh | 4 ++-- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Automate.py b/Automate.py index c43504a..8782db2 100644 --- a/Automate.py +++ b/Automate.py @@ -48,7 +48,7 @@ class Server: "maintenance": False, "stop current config":False, - "timelapse":1, + "timelapse":3, "conf nb_images":1, "nb_images restantes":1 } diff --git a/Time_Lapse_Connection.py b/Time_Lapse_Connection.py index 04f791f..1c934f1 100644 --- a/Time_Lapse_Connection.py +++ b/Time_Lapse_Connection.py @@ -113,9 +113,8 @@ class TimeLapse: if __name__ == "__main__": print("FICHIER TIMELAPSE") TL = TimeLapse() - for i in range (0,3): - TL.Singleroutin() - time.sleep(1) + TL.Singleroutin() + time.sleep(1) """ FONCTIONNEL TL.get_Hygrodata() TL.pick_Picture() diff --git a/Time_Lapse_NoConnection.py b/Time_Lapse_NoConnection.py index 69c0d97..483494b 100644 --- a/Time_Lapse_NoConnection.py +++ b/Time_Lapse_NoConnection.py @@ -107,9 +107,8 @@ class TimeLapse: if __name__ == "__main__": print("FICHIER TIMELAPSE") TL = TimeLapse() - for i in range (0,3): - TL.Singleroutin() - time.sleep(1) + TL.Singleroutin() + time.sleep(1) """ FONCTIONNEL TL.get_Hygrodata() TL.pick_Picture() diff --git a/script.sh b/script.sh index 9e57bb7..ca0669a 100755 --- a/script.sh +++ b/script.sh @@ -11,5 +11,5 @@ if check_internet; then else echo "pas connecté à internet" python Time_Lapse_NoConnection.py -python Automate.py -fi \ No newline at end of file +fi +python Automate.py \ No newline at end of file