dockerfile ready

This commit is contained in:
Tomás L
2024-07-25 18:17:36 -04:00
parent 913af71226
commit 993385f809
4 changed files with 12 additions and 8 deletions

View File

@@ -68,7 +68,10 @@ def find_coords(message: str) -> list[str]:
def run(q: queue.Queue, passwrd : str | None = None) -> None:
base_url = "https://172.22.114.176" # Replace with your UniFi Protect base URL
username = "engr-ugaif" # Replace with your username
password = dotenv.get_key(dotenv.find_dotenv(), "UNIFI_PASSWORD") if passwrd is None else passwrd
if passwrd is None:
password = dotenv.get_key(dotenv.find_dotenv(), "UNIFI_PASSWORD")
else:
password = passwrd
ws_url = "wss://172.22.114.176/proxy/protect/ws/liveDetectTrack?camera=668daa1e019ce603e4002d31" # Replace with your WebSocket URL
cookies = get_token(base_url, username, password)