With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
That is odd, have you rebooted since the install?
Try this, remove the double node_modules and add a .cp /usr/local/lib/node_modules/homebridge-dht/test_DHTXXD.patch .
Hector, at the end of the cp command in step 7.3 there is a period . that you are missing.
Perfect, nowgcc -Wall -pthread -o DHTXXD test_DHTXXD.c DHTXXD.c -lpigpiod_if2cp DHTXXD /usr/local/bin/dht22chmod a+x /usr/local/bin/dht22
Just looking back at that section, and your correct their only should be one node_modules directory and not 2. Try it again, but remove the second node_modules directory.
Hector, looking at the output I see that the dht22 command didn't return anything. What happens when you run 'dht22' from the command line? Can you post that output.Also looking back at the instructions, I missed the step to create a cputemp command, so have added it as 8. If you don't want to see your raspberry pi cpu temperature, please use the shorter config.json in step 6. This will fix the cputemp error as well.
Homebridge MCU IOTView Instructable »
Aaron,I went back and changed the patch instructions, and hopefully made them easier to follow this time. And I have included the patch file as part of the homebridge plugin, so you will need to run sudo npm install -g homebridge-dht before following the instructions.
Dom,I took a quick look at the code, and realized all that was missing to support multiples was exposing the gpio pin as a config parameter, and passing it 'dht22'. I added the couple of lines, and it should now be supported.But if you are looking at doing multiple sensors, I have started using multiple ESP8266/Nodemcu modules, and deployed them where I wanted to collect a temperature. Take a look at this on Github https://github.com/NorthernMan54/homebridge-mcuiot
RPI/HomeBridge Temperature/...View Instructable »
Join 2 million + to receive instant DIY inspiration in your inbox.
© 2016 Autodesk, Inc.