| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.txt | 2013-11-19 | 812 Bytes | |
| doubleDHT.py | 2013-11-19 | 4.1 kB | |
| Totals: 2 Items | 4.9 kB | 0 | |
SWPI PLUGINS
* doubleDHT.py: reads two DHT sensors (DHT11 or DHT22) and outputs values as temp_out, hum_out, temp_in, hum_in
INSTALLATION:
simply copy in swpi/plugins folder
CONFIGURATION:
Change vars in file to reflect your configuration:
#CONFIGURE IN DHT SENSOR
self.dht_in_path = "./DHT/DHT_rf2"
self.dht_in_type = "11"
self.gpio_in_pin = "24"
#CONFIGURE OUT DHT SENSOR
self.dht_out_path = "./DHT/DHT_rf"
self.dht_out_type = "22"
self.gpio_out_pin = "18"
self.sleep_time = 60
the first var is DHT_rf path. You have to duplicate it in DHT_rf2
the second var is DHT sensor type (11 or 22)
the third var is the gpio data pin of the sensor
sleep_time are the second between readings
Note:
set:
use_dht = False in swpi.cfg !