Beispiel #1
0
    def __init__(self, parent):
        RasPyTask.__init__(self, parent, "statistics")

        self._stats_hour = list()
        self._stats_day = list()
        self._stats_week = list()
        self._stats_month = list()
Beispiel #2
0
    def __init__(self, parent):
        RasPyTask.__init__(self, parent, "rcsocket", True)

        self._subtasks = [
            SocketControllerTask(self),
            AutomatControllerTask(self)
        ]
Beispiel #3
0
    def __init__(self, parent):
        RasPyTask.__init__(self, parent, "traffic")

        self._gmaps = None
        self._updates = 0
        self._synctime = None
        self._directions = list()
Beispiel #4
0
    def __init__(self, parent):
        RasPyTask.__init__(self, parent, "notifier", True)

        self._mailer = None

        self._pushbullet = None
        self._pb_ignored_hosts = list()

        self._subtasks = [TwitterTask(self)]
Beispiel #5
0
    def __init__(self, parent):
        RasPyTask.__init__(self, parent, "supply")

        maxlogs = self.kernel().get_updates24h()
        windows = [5, 15, 60]
        self._vlog = RasPySampleLogger(maxlogs, windows)
        self._ilog = RasPySampleLogger(maxlogs, windows)
        self._plog = RasPySampleLogger(maxlogs, windows)

        self._energy_meter = RasPyEnergyMeter(self.period(),
                                              self.kernel().get_databasepath(),
                                              "supply")
Beispiel #6
0
    def __init__(self, parent):
        RasPyTask.__init__(self, parent, "system")

        windows = [5, 15, 60]

        self._subtasks = [
            DiskInfoTask(self),
            NetInfoTask(self),
            MemoryInfoTask(self),
            ProcessInfoTask(self),
            OSInfoTask(self, windows),
            TempControlTask(self, windows)
        ]
Beispiel #7
0
    def __init__(self, parent):
        RasPyTask.__init__(self, parent, "fritz")

        self._fbreader = None
        self._uptime = 0
        self._dsl_uptime = 0
        self._fritz_time = None
        self._upgrade = False
        self._modelname = unicode()
        self._software = unicode()

        maxlogs = self.kernel().get_updates24h()
        windows = [5, 15, 60]
        self._tx = RasPyBitRate(self.period(), maxlogs, windows)
        self._rx = RasPyBitRate(self.period(), maxlogs, windows)

        self._txrate_max = 0
        self._rxrate_max = 0
        self._txrate_limit = 0
        self._rxrate_limit = 0
        self._subtasks = [LanDeviceControllerTask(self)]
Beispiel #8
0
    def __init__(self, parent):
        RasPyTask.__init__(self, parent, "weather")

        self._subtasks = [ForecastIOTask(self), CameraTask(self)]
Beispiel #9
0
    def __init__(self, parent):
        RasPyTask.__init__(self, parent, "sensor")

        self._maxlogs = self.kernel().get_updates24h() / 15
        self._sensors = dict()
        self._drivers = dict()