|
@@ -137,21 +137,6 @@ class videv_audio_player(videv_base):
|
137
|
137
|
self.__tx__(self.KEY_TITLE, data or self.NO_TITLE)
|
138
|
138
|
|
139
|
139
|
|
140
|
|
-class videv_warnings(videv_base):
|
141
|
|
- MAX_WARNINGS = 10
|
142
|
|
- KEY_WARNING = 'html_short'
|
143
|
|
-
|
144
|
|
- def __init__(self, mqtt_client, topic, default_values=None):
|
145
|
|
- super().__init__(mqtt_client, topic, default_values)
|
146
|
|
- self.__warnings__ = []
|
147
|
|
-
|
148
|
|
- def warningcollector(self, client, key, data):
|
149
|
|
- self.__warnings__.append(data)
|
150
|
|
- self.__warnings__ = self.__warnings__[-self.MAX_WARNINGS:]
|
151
|
|
- txt = "<br><br>".join([time.asctime(w[w.KEY_TM]) + "<br>" + w[w.KEY_TEXT] + "<br>" + w[w.KEY_ID] for w in self.__warnings__])
|
152
|
|
- self.__tx__(self.KEY_WARNING, txt)
|
153
|
|
-
|
154
|
|
-
|
155
|
140
|
class all_off(videv_base):
|
156
|
141
|
ALLOWED_CLASSES = (room, room_collection, )
|
157
|
142
|
|