diff --git a/CONFIG/config.json b/CONFIG/config.json deleted file mode 100644 index 9660ea9..0000000 --- a/CONFIG/config.json +++ /dev/null @@ -1 +0,0 @@ -{"set_config": true, "maintenance": false, "stop current config": false, "timelapse": 3, "conf nb_images": 10, "nb_images restantes": 1} \ No newline at end of file diff --git a/First_Try.py b/First_Try.py deleted file mode 100644 index bf955da..0000000 --- a/First_Try.py +++ /dev/null @@ -1,10 +0,0 @@ -import time -import picamera2 as pc - -camera = pc.Picamera2() -try: - camera.strat_preview() - time.sleep(10) - camera.stop_preview() -finally: - camera.close() \ No newline at end of file diff --git a/PROJECT/2025-04-27 18:53:16/2025-04-27 18:53:16.jpg b/PROJECT/2025-04-27 18:53:16/2025-04-27 18:53:16.jpg new file mode 100644 index 0000000..064c279 Binary files /dev/null and b/PROJECT/2025-04-27 18:53:16/2025-04-27 18:53:16.jpg differ diff --git a/PROJECT/2025-04-27 18:53:16/2025-04-27 18:53:16.json b/PROJECT/2025-04-27 18:53:16/2025-04-27 18:53:16.json new file mode 100644 index 0000000..2f02c3f --- /dev/null +++ b/PROJECT/2025-04-27 18:53:16/2025-04-27 18:53:16.json @@ -0,0 +1 @@ +{"timestamp": "2025-04-27 18:53:16", "temperature": 42.09010452429999, "humidity": 20.67658503089952} \ No newline at end of file diff --git a/get_from_server.py b/get_from_server.py deleted file mode 100644 index a1fb78b..0000000 --- a/get_from_server.py +++ /dev/null @@ -1,14 +0,0 @@ -import requests - -url_requete = "https://timelapse.kerboul.me/api/camera/status" - -try: - response = requests.get(url_requete) - - if response.status_code == 200: - camera_status = response.json() - print(camera_status) - else: - print("mauvais code") -except requests.exceptions.RequestException as e: - print("erreur API ou internet") \ No newline at end of file diff --git a/test.py b/test.py new file mode 100644 index 0000000..e69de29