Modifier la valeur de timelapse à 3 et simplifier l'exécution de Singleroutin dans les scripts de connexion

This commit is contained in:
2025-04-27 15:56:21 +02:00
parent 5f4127ad99
commit bebfb8adb3
4 changed files with 7 additions and 9 deletions

View File

@@ -48,7 +48,7 @@ class Server:
"maintenance": False, "maintenance": False,
"stop current config":False, "stop current config":False,
"timelapse":1, "timelapse":3,
"conf nb_images":1, "conf nb_images":1,
"nb_images restantes":1 "nb_images restantes":1
} }

View File

@@ -113,9 +113,8 @@ class TimeLapse:
if __name__ == "__main__": if __name__ == "__main__":
print("FICHIER TIMELAPSE") print("FICHIER TIMELAPSE")
TL = TimeLapse() TL = TimeLapse()
for i in range (0,3): TL.Singleroutin()
TL.Singleroutin() time.sleep(1)
time.sleep(1)
""" FONCTIONNEL """ FONCTIONNEL
TL.get_Hygrodata() TL.get_Hygrodata()
TL.pick_Picture() TL.pick_Picture()

View File

@@ -107,9 +107,8 @@ class TimeLapse:
if __name__ == "__main__": if __name__ == "__main__":
print("FICHIER TIMELAPSE") print("FICHIER TIMELAPSE")
TL = TimeLapse() TL = TimeLapse()
for i in range (0,3): TL.Singleroutin()
TL.Singleroutin() time.sleep(1)
time.sleep(1)
""" FONCTIONNEL """ FONCTIONNEL
TL.get_Hygrodata() TL.get_Hygrodata()
TL.pick_Picture() TL.pick_Picture()

View File

@@ -11,5 +11,5 @@ if check_internet; then
else else
echo "pas connecté à internet" echo "pas connecté à internet"
python Time_Lapse_NoConnection.py python Time_Lapse_NoConnection.py
python Automate.py fi
fi python Automate.py