15 lines
296 B
Python
15 lines
296 B
Python
|
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)
|