Home_weather_Display rgb error

Hi,

When I try running the home weather display script I get the following error:

Traceback (most recent call last):
  File "Home_Weather_Display.py", line 51, in <module>
    setRGB(0,255,0)
  File "build/bdist.linux-armv7l/egg/grove_rgb_lcd.py", line 43, in setRGB
  File "/usr/local/lib/python2.7/dist-packages/smbus_cffi-0.5.1-py2.7-linux-armv7l.egg/smbus/util.py", line 59, in validator
    return fn(*args, **kwdefaults)
  File "/usr/local/lib/python2.7/dist-packages/smbus_cffi-0.5.1-py2.7-linux-armv7l.egg/smbus/smbus.py", line 145, in write_byte_data
    raise IOError(ffi.errno)
IOError: 5

DHT sensor is plugged into port 7 as asked. See i2ctdetect cmd in attaced image.

When I run the dht test script using the A0 port is just hangs.
I have ran the script to test the LCD screen separately and that seems to work. I see the different Hello World messages on the LCD.

I am using Raspbian as that is what is required for my course. Incidentally, all my classmates get the same error.

image

Any help on this please?

Oh I think that has to do with the latest changes I brought to the GrovePi. And I think the patch I have merged a few minutes ago fixes your problem too.

Please run curl -kL dexterindustries.com/update_grovepi | bash on your Pi again and try running the program again. It should no longer throw this error.

Thank you!

Hi,

That seemed to work ok I think. I got temperature and humidity readings on the LCD screen. Thanks for you help!

I did notice a nan error in the terminal readings though, anything to worry about?

[0, 0, 128, 65, 0, 0, 142, 66]
(‘temp =’, 16.0, ‘C\thumidity =’, 71.0, ‘%’)
[218, 0, 247, 246, 106, 175, 137, 77]
(‘temp =’, nan, ‘C\thumidity =’, nan, ‘%’)
nan error
[218, 0, 247, 246, 106, 175, 137, 77]
(‘temp =’, nan, ‘C\thumidity =’, nan, ‘%’)
nan error
[0, 0, 128, 65, 0, 0, 144, 66]
(‘temp =’, 16.0, ‘C\thumidity =’, 72.0, ‘%’)
[218, 0, 247, 246, 106, 175, 137, 77]
(‘temp =’, nan, ‘C\thumidity =’, nan, ‘%’)
nan error
[218, 0, 247, 246, 106, 175, 137, 77]
(‘temp =’, nan, ‘C\thumidity =’, nan, ‘%’)
nan error
[0, 0, 112, 65, 0, 0, 142, 66]
(‘temp =’, 15.0, ‘C\thumidity =’, 71.0, ‘%’)
[218, 0, 247, 246, 106, 175, 137, 77]
(‘temp =’, nan, ‘C\thumidity =’, nan, ‘%’)
nan error

I am getting the exact same issue after update.

No, as far as I remember, NaNs have to be ignored. It is caused by the sensor not being able to keep up with the poll rate.