示例#1
0
    def __init__(self, brewer):
        Handler.__init__(self, brewer, __name__)

        # Indication if we initialized correctly or not
        self._initialized = False

        # Controller running or not
        self._running = False
示例#2
0
    def __init__(self, brewer):
        Handler.__init__(self, brewer, __name__)

        # Map of all the components
        self._components = {}

        #
        self._errors = {}
示例#3
0
    def __init__(self, brewer):
        Handler.__init__(self, brewer, __name__)

        # Date of last update
        self._lastDate = datetime.datetime.now()

        # Number of notifications sent today
        self._notificationsSent = 0

        # Instantiate push notifications handler
        self._pushNotifications = PushNotifications(
            self.brewer.config.pushoverUserToken,
            self.brewer.config.pushoverAppToken)

        # Handler message, used to notify the user that some errors ocurred
        self._errorNotificationMessage = None
示例#4
0
 def __init__(self, brewer):
     Handler.__init__(self, brewer, __name__)
示例#5
0
    def __init__(self, brewer):
        Handler.__init__(self, brewer, __name__)

        # Time elapsed since last sample was recorded
        self._elapsedSec = self.SAMPLE_PERIOD_SEC
示例#6
0
    def __init__(self, brewer):
        Handler.__init__(self, brewer, __name__)

        # Elapsed time since last session cleanup
        self._timeElapsedSec = 0
示例#7
0
    def __init__(self, brewer):
        Handler.__init__(self, brewer, __name__)

        # Indication of a warning has been sent for a
        self._warningSent = {}
示例#8
0
    def __init__(self, brewer):
        Handler.__init__(self, brewer, __name__)

        self._dbx = None