示例#1
0
 def __init__(self):
     TaskBase.__init__(self, 'Light Control')
     self.db = WorkshopDb()
     self.subnet = self.db.get_config_item("subnet_ip")
     self.static_ip_start = int(self.db.get_config_item("base_ip"))
     self.response_keys = [
         'name', 'number', 'temperature', 'time', 'lights'
     ]
示例#2
0
 def __init__(self):
     TaskBase.__init__(self, 'Screen')
示例#3
0
 def __init__(self):
     TaskBase.__init__(self, 'Web Server')
     self.db = WorkshopDb()
     self.subnet = self.db.get_config_item("subnet_ip")
     self.static_ip_start = int(self.db.get_config_item("base_ip"))
示例#4
0
 def __init__(self):
     TaskBase.__init__(self, 'Static IP')
     self.db = WorkshopDb()
     self.static_ip_start = int(self.db.get_config_item('base_ip'))
示例#5
0
 def __init__(self):
     TaskBase.__init__(self, 'Connect')
     self.db = WorkshopDb()