fixed rpi-ip variable.

This commit is contained in:
K 2024-10-19 21:44:29 +05:30
parent e12a7be7f5
commit 6590270552
Signed by: notkshitij
GPG Key ID: C5B8BC7530F8F43F

View File

@ -6,10 +6,10 @@ import requests
from datetime import datetime from datetime import datetime
# ntfy.sh topic (choose your unique topic name) # ntfy.sh topic (choose your unique topic name)
rpi-ip = "localhost:80" rpi_ip = "localhost:80"
ntfy_topic = "motion-sensing" # Replace with your ntfy.sh topic ntfy_topic = "motion-sensing" # Replace with your ntfy.sh topic
ntfy_url = f"http://{rpi-ip}/{ntfy_topic}" ntfy_url = f"http://{rpi_ip}/{ntfy_topic}"
# If using ntfy.sh server and not the local docker container, set rpi-ip = "ntfy.sh" # If using ntfy.sh server and not the local docker container, set rpi_ip = "ntfy.sh"
# Initialize the camera # Initialize the camera
picam2 = Picamera2() picam2 = Picamera2()