yfgeek / rpi-TempRuntime

基于树莓派3B,DHT11/DHT22,LCD1602的一个实时温度湿度检测系统
118 stars 29 forks source link

照着做了出来以下错误 #2

Open qnmlgdsb opened 6 years ago

qnmlgdsb commented 6 years ago

pi@raspberrypi:/var/www/html/rpi-TempRuntime $ python DHT22-WITHOUT-LCD.py Traceback (most recent call last): File "DHT22-WITHOUT-LCD.py", line 33, in if(timecount >=60): NameError: name 'timecount' is not defined

yfgeek commented 6 years ago

@qnmlgdsb 请重新pull/clone这个git资源,已经修复bug,感谢提醒 https://github.com/yfgeek/rpi-TempRuntime/commit/4f87f9d5b17b5d05ac41bc4139f57c6513f683cf

Please Re-pull or clone this repo again, the bug has been fixed now. Thanks a lot.

qnmlgdsb commented 6 years ago

@yfgeek 试了重新clone了但是在web下浏览器打开还是没有数据。。。 请问有可以通过别的方法查看调用的数据是否成功吗? 就是获取DHT22的数据是否成功的方法?

yfgeek commented 6 years ago

@qnmlgdsb 请问还报错吗,如果没有持续显示出温度数据(每隔一分钟),说明你的线路没有接好,或者依赖包存在问题