test
This commit is contained in:
@@ -1 +0,0 @@
|
||||
{"set_config": true, "maintenance": false, "stop current config": false, "timelapse": 3, "conf nb_images": 10, "nb_images restantes": 1}
|
||||
10
First_Try.py
10
First_Try.py
@@ -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()
|
||||
BIN
PROJECT/2025-04-27 18:53:16/2025-04-27 18:53:16.jpg
Normal file
BIN
PROJECT/2025-04-27 18:53:16/2025-04-27 18:53:16.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 57 KiB |
1
PROJECT/2025-04-27 18:53:16/2025-04-27 18:53:16.json
Normal file
1
PROJECT/2025-04-27 18:53:16/2025-04-27 18:53:16.json
Normal file
@@ -0,0 +1 @@
|
||||
{"timestamp": "2025-04-27 18:53:16", "temperature": 42.09010452429999, "humidity": 20.67658503089952}
|
||||
@@ -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")
|
||||
Reference in New Issue
Block a user