From a3122e97e5856e55d7870af11c521906fa639d2f Mon Sep 17 00:00:00 2001 From: Kshitij Date: Sat, 19 Oct 2024 18:43:21 +0530 Subject: [PATCH] Added local ip option in main.py --- main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 07467f8..61ceeab 100644 --- a/main.py +++ b/main.py @@ -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()