diff --git a/main.py b/main.py new file mode 100644 index 0000000..c837328 --- /dev/null +++ b/main.py @@ -0,0 +1,14 @@ +import settings + +from pyunifiprotect import cli + +if __name__ == '__main__': + protect = cli._get_server( + settings.UFP_USERNAME, + settings.UFP_PASSWORD, + settings.UFP_ADDRESS, + settings.UFP_PORT, + settings.UFP_SSL_VERIFY + ) + + cli._listen_to_ws(protect)