• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


[Fully Supported] DHT22
#31
Please share the working code?
 
Reply
#32
Config
Code:
{
        "devices": {
                "lampotila1": {
                        "protocol": [ "dht22" ],
                        "id": [{
                                "gpio": 2
                        }],
                        "humidity": 27,
                        "temperature": 23,
                        "poll-interval": 15
                }
        },
        "rules": {},
        "gui": {
                "lampotila1": {
                        "name": "Talo",
                        "group": [ "Lämpötila & Kosteus" ],
                        "media": [ "all" ]
                }
        },
        "settings": {
                "port": 5000,
                "standalone": 0,
                "log-level": 4,
                "pid-file": "/var/run/pilight.pid",
                "log-file": "/var/log/pilight.log",
                "send-repeats": 10,
                "receive-repeats": 1,
                "webserver-enable": 1,
                "webserver-root": "/usr/local/share/pilight/",
                "webserver-port": 5001,
                "webserver-cache": 1,
                "firmware-update": 0
        },
        "hardware": {
                "433gpio": {
                        "sender": 0,
                        "receiver": 1
                }
        },
        "registry": {
                "pilight": {
                        "version": {
                                "current": "5.0"
                        }
                }
        }
}
 
Reply
#33
Of course, by i need the working DHT22 reading code.
 
Reply
#34
Sorry, I don't know what do you mean. How can I get that?
 
Reply
#35
You told me about:
Quote:I can read the sensor values with Adafruit so the problem I should not be in the connections
I like to see that code.
 
Reply
#36
Ok. Do you mean this?
Code:
pi@raspberrypi ~/Adafruit_Python_DHT/examples $ sudo ./AdafruitDHT.py 2302 27
Temp=19.7*C  Humidity=35.4%
 
Reply
#37
Yes, and now post that file somewhere so i can download it.
 
Reply
#38
Here is the link to the file

https://www.dropbox.com/s/k4n76dt4utzy0e...HT.py?dl=0
 
Reply
#39
Can you look for a working implementation in C?
 
Reply
#40
I have no idea what you are talking about. I'm fairly noobie in programming.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Partially Supported] TFA / Conrad Weather Yves 203 77,175 03-27-2020, 01:21 PM
Last Post: Ascenion
  [Fully Supported] KlikAanKlikUit Motion Sensor koen01 37 29,058 03-26-2020, 02:46 PM
Last Post: Gisto
Lightbulb [Fully Supported] Kaku Door sensor (AMST-606) geerttttt 53 45,976 10-19-2019, 06:26 PM
Last Post: curlymo
  [Fully Supported] Arctech Old Martin 111 73,797 03-27-2018, 04:43 PM
Last Post: genfersee
  [Fully Supported] Clarus Switches Marcin 69 52,247 01-30-2018, 07:10 PM
Last Post: Niek
  [Fully Supported] Remote Control Socket (RC101-U/RC201) Sean 18 20,001 01-04-2018, 06:18 AM
Last Post: ettman8
  [Fully Supported] LM75 and LM76 temperature sensor horst_dieter 64 46,933 11-19-2017, 08:54 PM
Last Post: edepi
  [Fully Supported] No-brand temp/humidity sensor (alecto_ws1700) meloen 57 62,466 12-25-2016, 09:53 PM
Last Post: creamers
  [Fully Supported] Impuls/SelectRemote Bram 113 88,458 05-28-2016, 02:53 PM
Last Post: Puuu
  [Fully Supported] KAKU ABST-604 (dusk/dawn sensor) Netopyr 15 13,527 03-04-2016, 05:43 PM
Last Post: Niek

Forum Jump:


Browsing: 1 Guest(s)