Ejemplo n.º 1
0
 def _init_component_apis(p_pyhouse_obj, p_api):
     """
     Initialize all the computer APIs
     """
     p_pyhouse_obj.APIs.Computer = ComputerAPIs()
     p_pyhouse_obj.APIs.Computer.ComputerAPI = p_api
     p_pyhouse_obj.APIs.Computer.MqttAPI = mqttAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.CommunicationsAPI = communicationAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.EmailAPI = emailAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.InternetAPI = internetAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.NodesAPI = nodesAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.WeatherAPI = weatherAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.WebAPI = webAPI(p_pyhouse_obj)
Ejemplo n.º 2
0
 def _init_component_apis(p_pyhouse_obj, p_api):
     """
     Initialize all the computer APIs
     """
     p_pyhouse_obj.APIs.Computer = ComputerAPIs()
     p_pyhouse_obj.APIs.Computer.ComputerAPI = p_api
     p_pyhouse_obj.APIs.Computer.MqttAPI = mqttAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.CommunicationsAPI = communicationAPI(
         p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.InternetAPI = internetAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.NodesAPI = nodesAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.WeatherAPI = weatherAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.Computer.WebAPI = webAPI(p_pyhouse_obj)
Ejemplo n.º 3
0
 def setUp(self):
     SetupMixin.setUp(self, ET.fromstring(XML_LONG))
     self.m_pyhouse_obj.House.Schedules = scheduleXml.read_schedules_xml(self.m_pyhouse_obj)
     self.m_pyhouse_obj.APIs.Computer.MqttAPI = mqttAPI(self.m_pyhouse_obj)
     twisted.internet.base.DelayedCall.debug = True
Ejemplo n.º 4
0
 def setUp(self):
     SetupMixin.setUp(self, ET.fromstring(XML_LONG))
     self.m_pyhouse_obj.House.Schedules = scheduleXml.read_schedules_xml(self.m_pyhouse_obj)
     self.m_pyhouse_obj.APIs.Computer.MqttAPI = mqttAPI(self.m_pyhouse_obj)
Ejemplo n.º 5
0
 def setUp(self):
     SetupMixin.setUp(self, ET.fromstring(XML_LONG))
     self.m_pyhouse_obj.House.Schedules = scheduleXml.read_schedules_xml(self.m_pyhouse_obj)
     self.m_pyhouse_obj.APIs.Computer.MqttAPI = mqttAPI(self.m_pyhouse_obj)
     twisted.internet.base.DelayedCall.debug = True
Ejemplo n.º 6
0
 def setUp(self):
     SetupMixin.setUp(self, ET.fromstring(XML_LONG))
     self.m_pyhouse_obj.House.Schedules = scheduleXml.read_schedules_xml(self.m_pyhouse_obj)
     self.m_pyhouse_obj.APIs.Computer.MqttAPI = mqttAPI(self.m_pyhouse_obj)
Ejemplo n.º 7
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_api = mqttAPI(self.m_pyhouse_obj)
     self.m_broker = MqttBrokerData()
Ejemplo n.º 8
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_api = mqttAPI(self.m_pyhouse_obj)
     self.m_broker = MqttBrokerData()