Allow API connection over HTTPS
This commit is contained in:
@@ -3,9 +3,10 @@ from APIHandler import APIHandler
|
||||
|
||||
class Camera(APIHandler):
|
||||
|
||||
def __init__(self, ip, username="admin", password=""):
|
||||
APIHandler.__init__(self, ip)
|
||||
def __init__(self, ip, username="admin", password="", https=False):
|
||||
APIHandler.__init__(self, ip, https=https)
|
||||
self.ip = ip
|
||||
self.username = username
|
||||
self.password = password
|
||||
self.https = https
|
||||
super().login(self.username, self.password)
|
||||
|
||||
Reference in New Issue
Block a user