Exemple #1
0
    def __init__(self):
        """ Initializes the class. """

        self.Helpers = Helpers("GeniSysAI")

        # Initiates the iotJumpWay connection class
        self.iotJumpWay = iotJumpWay({
            "host":
            self.Helpers.confs["iotJumpWay"]["host"],
            "port":
            self.Helpers.confs["iotJumpWay"]["port"],
            "lid":
            self.Helpers.confs["iotJumpWay"]["lid"],
            "aid":
            self.Helpers.confs["iotJumpWay"]["aid"],
            "an":
            self.Helpers.confs["iotJumpWay"]["an"],
            "un":
            self.Helpers.confs["iotJumpWay"]["un"],
            "pw":
            self.Helpers.confs["iotJumpWay"]["pw"]
        })
        self.iotJumpWay.appConnect()

        self.iotJumpWay.appChannelSub(
            self.Helpers.confs["iotJumpWay"]["channels"]["commands"])
        self.iotJumpWay.deviceCommandsCallback = self.commands

        self.Helpers.logger.info("GeniSysAI Class initialization complete.")
Exemple #2
0
    def __init__(self):
        """ Initializes the class. """

        self.Helpers = Helpers("EMAR")
        
        # Starts the iotJumpWay
        self.iotJumpWay = iotJumpWay()
        self.iotJumpWay.connect()
        
        # Subscribes to the EMAR Mini commands topic 
        self.iotJumpWay.channelSub("Commands")
        # Sets the EMAR Mini commands callback function 
        self.iotJumpWay.commandsCallback = self.commands

        self.Helpers.logger.info("EMAR Mini awaiting commands.")
        self.Helpers.logger.info("EMAR Mini Emergency Assistance Robot Class initialization complete.")
    def __init__(self):
        """ Initializes the class. """

        self.Helpers = Helpers("Core")
        
        # Initiates the iotJumpWay connection class
        self.iotJumpWayDevice = iotJumpWay({
            "host": self.Helpers.confs["iotJumpWay"]["host"],
            "port": self.Helpers.confs["iotJumpWay"]["port"],
            "lid": self.Helpers.confs["iotJumpWay"]["loc"],
            "zid": self.Helpers.confs["iotJumpWay"]["zne"],
            "did": self.Helpers.confs["iotJumpWay"]["id"],
            "dn": self.Helpers.confs["iotJumpWay"]["name"],
            "un": self.Helpers.confs["iotJumpWay"]["mqtt"]["username"],
            "pw": self.Helpers.confs["iotJumpWay"]["mqtt"]["password"]
        })
        self.iotJumpWayDevice.connect() 

        self.Model = Model(self.iotJumpWayDevice)

        self.Helpers.logger.info(
            "COVID19DN Tensorflow initialization complete.")
Exemple #4
0
    def iotjumpway_client(self):
        """ Starts iotJumpWay Client. """

        # Initiates the iotJumpWay connection class
        self.iotJumpWayDevice = iotJumpWay({
            "host":
            self.Helpers.confs["iotJumpWay"]["host"],
            "port":
            self.Helpers.confs["iotJumpWay"]["port"],
            "lid":
            self.Helpers.confs["iotJumpWay"]["loc"],
            "zid":
            self.Helpers.confs["iotJumpWay"]["zne"],
            "did":
            self.Helpers.confs["iotJumpWay"]["id"],
            "dn":
            self.Helpers.confs["iotJumpWay"]["name"],
            "un":
            self.Helpers.confs["iotJumpWay"]["mqtt"]["username"],
            "pw":
            self.Helpers.confs["iotJumpWay"]["mqtt"]["password"]
        })
        self.iotJumpWayDevice.connect()