• 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
Lightbulb [Fully Supported] Kaku Door sensor (AMST-606) geerttttt 52 23,780 10-12-2019, 06:57 PM
Last Post: curlymo
  [Partially Supported] TFA / Conrad Weather Yves 184 10,167 03-31-2019, 05:22 PM
Last Post: curlymo
  [Fully Supported] Arctech Old Martin 111 34,785 03-27-2018, 04:43 PM
Last Post: genfersee
  [Fully Supported] Clarus Switches Marcin 69 23,876 01-30-2018, 07:10 PM
Last Post: Niek
  [Fully Supported] Remote Control Socket (RC101-U/RC201) Sean 18 10,479 01-04-2018, 06:18 AM
Last Post: ettman8
  [Fully Supported] LM75 and LM76 temperature sensor horst_dieter 64 24,697 11-19-2017, 08:54 PM
Last Post: edepi
  [Fully Supported] No-brand temp/humidity sensor (alecto_ws1700) meloen 57 34,732 12-25-2016, 09:53 PM
Last Post: creamers
  [Fully Supported] Impuls/SelectRemote Bram 113 46,871 05-28-2016, 02:53 PM
Last Post: Puuu
  [Fully Supported] KAKU ABST-604 (dusk/dawn sensor) Netopyr 15 7,572 03-04-2016, 05:43 PM
Last Post: Niek
  [Fully Supported] Arctech Dimmer (KaKu) fhp 107 40,020 01-02-2016, 05:26 PM
Last Post: kniazio

Forum Jump:


Browsing: 1 Guest(s)