Post by jerrym on Jul 28, 2021 16:27:09 GMT -8
I have my SkyWeather2 connected to the wireless outside and inside sensors and receive good data. I cannot however get data from the HM3301 to show up on the Blynk app "AQI". The sensor works fine and produces data when I run the testDustHM3301.py file. I do however get a message that the channel is already in use and continuing anyway. I have tried to run DustSensor.py and I get the following:
./SkyWeather2.JSON File exists
Traceback (most recent call last):
File "DustSensor.py", line 43, in <module>
hm3301 = SDL_Pi_HM3301.SDL_Pi_HM3301(SDA= config.DustSensorSDA, SCL = config.DustSensorSCL, pi=myPi)
File "./SDL_Pi_HM3301/SDL_Pi_HM3301.py", line 41, in __init__
h = self.pi.bb_i2c_open(self.SDA, self.SCL, 20000)
File "/usr/lib/python3/dist-packages/pigpio.py", line 3465, in bb_i2c_open
self.sl, _PI_CMD_BI2CO, SDA, SCL, 4, extents))
File "/usr/lib/python3/dist-packages/pigpio.py", line 1011, in _u2i
raise error(error_text(v))
pigpio.error: 'GPIO already in use'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "DustSensor.py", line 48, in <module>
hm3301 = SDL_Pi_HM3301.SDL_Pi_HM3301(SDA= config.DustSensorSDA, SCL = config.DustSensorSCL, pi=myPi)
File "./SDL_Pi_HM3301/SDL_Pi_HM3301.py", line 41, in __init__
h = self.pi.bb_i2c_open(self.SDA, self.SCL, 20000)
File "/usr/lib/python3/dist-packages/pigpio.py", line 3465, in bb_i2c_open
self.sl, _PI_CMD_BI2CO, SDA, SCL, 4, extents))
File "/usr/lib/python3/dist-packages/pigpio.py", line 1062, in _pigpio_command_ext
sl.s.sendall(ext)
AttributeError: 'NoneType' object has no attribute 'sendall'
./SkyWeather2.JSON File exists
Traceback (most recent call last):
File "DustSensor.py", line 43, in <module>
hm3301 = SDL_Pi_HM3301.SDL_Pi_HM3301(SDA= config.DustSensorSDA, SCL = config.DustSensorSCL, pi=myPi)
File "./SDL_Pi_HM3301/SDL_Pi_HM3301.py", line 41, in __init__
h = self.pi.bb_i2c_open(self.SDA, self.SCL, 20000)
File "/usr/lib/python3/dist-packages/pigpio.py", line 3465, in bb_i2c_open
self.sl, _PI_CMD_BI2CO, SDA, SCL, 4, extents))
File "/usr/lib/python3/dist-packages/pigpio.py", line 1011, in _u2i
raise error(error_text(v))
pigpio.error: 'GPIO already in use'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "DustSensor.py", line 48, in <module>
hm3301 = SDL_Pi_HM3301.SDL_Pi_HM3301(SDA= config.DustSensorSDA, SCL = config.DustSensorSCL, pi=myPi)
File "./SDL_Pi_HM3301/SDL_Pi_HM3301.py", line 41, in __init__
h = self.pi.bb_i2c_open(self.SDA, self.SCL, 20000)
File "/usr/lib/python3/dist-packages/pigpio.py", line 3465, in bb_i2c_open
self.sl, _PI_CMD_BI2CO, SDA, SCL, 4, extents))
File "/usr/lib/python3/dist-packages/pigpio.py", line 1062, in _pigpio_command_ext
sl.s.sendall(ext)
AttributeError: 'NoneType' object has no attribute 'sendall'