Added local ip option in main.py

This commit is contained in:
K 2024-10-19 18:43:21 +05:30
parent c8ffb92f82
commit a3122e97e5
Signed by: notkshitij
GPG Key ID: C5B8BC7530F8F43F

View File

@ -6,8 +6,10 @@ import requests
from datetime import datetime
# ntfy.sh topic (choose your unique topic name)
ntfy_topic = "K3R3wHq4w9mwcwNd" # Replace with your ntfy.sh topic
ntfy_url = f"https://ntfy.sh/{ntfy_topic}"
rpi-ip = "localhost:80"
ntfy_topic = "motion-sensing" # Replace with your ntfy.sh 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"
# Initialize the camera
picam2 = Picamera2()