chetan / dht-sensor-ffi

A ruby library to read from a DHT-XX type humidity/temperature sensor
MIT License
26 stars 6 forks source link

sudo dht_sensor: command not found #1

Closed Damaotimlin closed 8 years ago

Damaotimlin commented 8 years ago

Hi @chetan ,

I'm working on a project and using dashing with RPi.

I'm want to try your gem to see if it works, but while I use sudo dht_sensor it returns

command not found

Do you have any ideas of this issue ?

Please advise, thanks !

Damaotimlin commented 8 years ago

Hi again,

I found out if I use rvmsudo dht_sensor It works !

However, it seems crazy hot in my room

Temperature: 716.80 C Humidity: 870.40%

I'm using DHT11, is it set defuly to DHT22 ?

After try by ruby file and change it to DHT11, it works good!

Thanks for your great contribution!!

P.S. How to make the data update frequently ?

chetan commented 8 years ago

re: read frequency - IIRC it has to do with the sensor itself. It does not allow reading very frequently (say, every second). I think it has to do with how it collects the data, but not 100% sure.

Damaotimlin commented 8 years ago

Thanks for your reply! @chetan I'm now using dashing for update the air_temp&humidity data to browser. I it works pretty good!

Thanks!