NorthernMan54 / homebridge-dht

Homebridge plugin for DHT22 Temperature / Humidity Sensors
72 stars 14 forks source link

having error reading the sensor #5

Closed toshibochan closed 7 years ago

toshibochan commented 7 years ago
    "accessories": [{
                    "accessory": "Dht",
                    "name": "dht22 - outdoor",
                    "name_temperature": "Outdoor Temperature",
                    "name_humidity": "Outdoor Humdity",
                    "gpio": "26",
                    "service": "dht22"
    }]

}

[5/18/2017, 11:38:52 AM] [dht22 - outdoor] Identify requested! [5/18/2017, 11:39:13 AM] [dht22 - outdoor] dhtExec function failed: Error: spawn dht22 ENOENT [5/18/2017, 11:39:13 AM] [dht22 - outdoor] Identify requested! [5/18/2017, 11:39:16 AM] [dht22 - outdoor] dhtExec function failed: Error: spawn dht22 ENOENT [5/18/2017, 11:39:17 AM] [dht22 - outdoor] dhtExec function failed: Error: spawn dht22 ENOENT [5/18/2017, 11:39:23 AM] [dht22 - outdoor] dhtExec function failed: Error: spawn dht22 ENOENT

NorthernMan54 commented 7 years ago

ENONET means file not found. It is looking for a binary called dht22, that needs to be built. The build instructions are part of the README.

On May 18, 2017, at 2:42 PM, toshibochan notifications@github.com wrote:

"accessories": [{
                "accessory": "Dht",
                "name": "dht22 - outdoor",
                "name_temperature": "Outdoor Temperature",
                "name_humidity": "Outdoor Humdity",
                "gpio": "26",
                "service": "dht22"
}]

}

[5/18/2017, 11:38:52 AM] [dht22 - outdoor] Identify requested! [5/18/2017, 11:39:13 AM] [dht22 - outdoor] dhtExec function failed: Error: spawn dht22 ENOENT [5/18/2017, 11:39:13 AM] [dht22 - outdoor] Identify requested! [5/18/2017, 11:39:16 AM] [dht22 - outdoor] dhtExec function failed: Error: spawn dht22 ENOENT [5/18/2017, 11:39:17 AM] [dht22 - outdoor] dhtExec function failed: Error: spawn dht22 ENOENT [5/18/2017, 11:39:23 AM] [dht22 - outdoor] dhtExec function failed: Error: spawn dht22 ENOENT

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

toshibochan commented 7 years ago

i install the DHTXXD.zip and now give me "pi@toshiboPI32:~ $ dht22 ERROR: pigpiod not running"

toshibochan commented 7 years ago

just give me ERROR: pigpiod not running

toshibochan commented 7 years ago

after i run "sudo pigpiod" work

toshibochan commented 7 years ago

problem is i have to run "sudo pigpiod" after restart raspberry pi. i have to add on "crontab" to run "sudo pigpiod" on restart.

NorthernMan54 commented 7 years ago

You can add pigpiod to /etc/rc.local

And that will autostart it

On May 18, 2017, at 6:24 PM, toshibochan notifications@github.com wrote:

problem is i have to run "sudo pigpiod" after restart raspberry pi. i have to add on "crontab" to run "sudo pigpiod" on restart.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.