Growberry / growberry_pi

This is a local program that will run on a raspberry pi for reading/recording inputs, and controlling outputs.
http://www.reddit.com/r/growberry_pi
2 stars 0 forks source link

Too many errors for not being able to read a sensor (DHT22 stuff) #8

Open austinmeier opened 5 years ago

austinmeier commented 5 years ago

From @austinmeier on August 8, 2018 4:32

There are too many errors for that specific log.

[WARNING] __main__ 2018-08-03 02:20:15,647 one of the sensors could not be read, defaults used.
[ERROR] pins 2018-08-03 02:21:24,072 internal-DHT22 sensor could not be reached after 3 attempts.  Make sure sensor is connected to GPIO 15

Long term: Need a way to keep track of the number of successful reads/errors. Maybe a percentage? Also implement option B below.

Short term: A. Make the logs longer, B. change the error code to lower than ERROR/WARNING, and change the logging level. C. increase the number of attempts on the sensor read.

Recommend: option C and A for now. Follow up with the long term option. That is... unless IC2 sensors are used in the future.

_Copied from original issue: austinmeier/old_growberrypi#19