parent
92d0f18f3a
commit
3f4b3cd1aa
|
@ -37,6 +37,7 @@ REMOTE_CONTROLER = 'REMOTE'
|
||||||
KEYPAD_CONTROLER = 'KEYPAD'
|
KEYPAD_CONTROLER = 'KEYPAD'
|
||||||
PRESENCE_CAMERA_DETECTOR = 'PIR_CAMERA'
|
PRESENCE_CAMERA_DETECTOR = 'PIR_CAMERA'
|
||||||
|
|
||||||
|
|
||||||
class Common ():
|
class Common ():
|
||||||
'''
|
'''
|
||||||
Common ressources to the library's classes
|
Common ressources to the library's classes
|
||||||
|
@ -165,6 +166,7 @@ class Common ():
|
||||||
r.update ({i.get (id_label): build_tree (i)})
|
r.update ({i.get (id_label): build_tree (i)})
|
||||||
return (r)
|
return (r)
|
||||||
|
|
||||||
|
|
||||||
class HomeSFR (Common):
|
class HomeSFR (Common):
|
||||||
def __init__ (self, username = None, password = None, cookies = None, debug = False, autologin = True):
|
def __init__ (self, username = None, password = None, cookies = None, debug = False, autologin = True):
|
||||||
'''
|
'''
|
||||||
|
@ -376,6 +378,7 @@ class HomeSFR (Common):
|
||||||
a = self.base_url + self.logs_path
|
a = self.base_url + self.logs_path
|
||||||
return (self.get_xml_elements (a, self.logs_labels))
|
return (self.get_xml_elements (a, self.logs_labels))
|
||||||
|
|
||||||
|
|
||||||
class Sensor (Common):
|
class Sensor (Common):
|
||||||
'''
|
'''
|
||||||
Class used to read easily the sensors
|
Class used to read easily the sensors
|
||||||
|
@ -481,6 +484,7 @@ class Sensor (Common):
|
||||||
'''
|
'''
|
||||||
return (self.sensor_dict [self.sensors_status_field] == self.sensors_status_value_ok)
|
return (self.sensor_dict [self.sensors_status_field] == self.sensors_status_value_ok)
|
||||||
|
|
||||||
|
|
||||||
class Camera (Sensor):
|
class Camera (Sensor):
|
||||||
'''
|
'''
|
||||||
Class used to manipulate easily cameras
|
Class used to manipulate easily cameras
|
||||||
|
|
Loading…
Reference in New Issue