From 65902705523ed764bf26bc646a626b90712fd145 Mon Sep 17 00:00:00 2001 From: Kshitij Date: Sat, 19 Oct 2024 21:44:29 +0530 Subject: [PATCH] fixed rpi-ip variable. --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 61ceeab..d9fcf51 100644 --- a/main.py +++ b/main.py @@ -6,10 +6,10 @@ import requests from datetime import datetime # 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_url = f"http://{rpi-ip}/{ntfy_topic}" -# If using ntfy.sh server and not the local docker container, set rpi-ip = "ntfy.sh" +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()