|
@@ -28,8 +28,8 @@ class dht_22(background_task):
|
28
|
28
|
def __init__(self, gpio, data_callback=None):
|
29
|
29
|
self.__data_callback__ = data_callback
|
30
|
30
|
|
31
|
|
- self.__temp_monitor__ = gradient_monitor(.5, 'DHT Temperature')
|
32
|
|
- self.__hum_monitor__ = gradient_monitor(5, 'DHT Humidity')
|
|
31
|
+ self.__temp_monitor__ = gradient_monitor(.5)
|
|
32
|
+ self.__hum_monitor__ = gradient_monitor(5)
|
33
|
33
|
self.__monitor__ = dht_22_monitor(300)
|
34
|
34
|
# Initial the dht device, with data pin connected to:
|
35
|
35
|
if not DEBUG:
|