go-dht icon indicating copy to clipboard operation
go-dht copied to clipboard

Golang library to interact with DHT11/DHT22/DHT12 temperature and humidity sensors from Raspberry PI.

Results 8 go-dht issues
Sort by recently updated
recently updated
newest added

See #24 It fix the writing error and therefore the need for running as root.

Would it be possible to add support for the AM2301 (DHT21)? That would be much appreciated since it is one of the easiest available DHT sensors to me. Datasheet is...

As documentation, I executed: `go get -u github.com/d2r2/go-dht` ``` # github.com/d2r2/go-dht In file included from ../../go/src/github.com/d2r2/go-dht/dht.go:3: ../../go/src/github.com/d2r2/go-dht/dht.go.h:304:15: warning: implicit declaration of function 'sched_setscheduler' is invalid in C99 [-Wimplicit-function-declaration] # github.com/d2r2/go-dht...

Status: Review Needed
Priority: Low

``` $ go version go version go1.12.6 linux/arm ``` I've tried code from example1: ``` sensorType := dht.AM2302 pin := 22 temperature, humidity, retried, err := dht.ReadDHTxxWithRetry(sensorType, pin, false, 10)...

env GOOS=linux GOARCH=arm GOARM=5 go build godht.go. # command-line-arguments ./godht.go:24:15: undefined: dht.DHT11 ./godht.go:31:1: undefined: dht.ReadDHTxxWithRetry This is example1

Locally declares sched_setscheduler() to resolve lint warnings Fixes #15

Status: On Hold
Status: Revision Needed
Priority: Low

On my Raspberry Pi 3 the GPIO pin numbers are in the 20xx range, so a 2 character buffer is far too small. Increase it to 5 characters.

On my Raspberry Pi 3 (64bit kernel and userland) the pins are in the 4 character range (e.g. 2017 for GPIO23) according to kernel debug interface. But the library only...