This commit is contained in:
Raspi
2025-04-27 15:40:47 +02:00
commit 6a294499d6
19 changed files with 649 additions and 0 deletions

15
script.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
nmcli dev wifi connect "Redmi Note 12 Pro" password "kingcard"
check_internet() {
ping -c 4 8.8.8.8 > /dev/null 2>&1
return $?
}
if check_internet; then
echo "Connecté à internet"
python Time_Lapse_Connection.py
python Send_data_stocked.py
else
echo "pas connecté à internet"
python Time_Lapse_NoConnection.py
python Automate.py
fi