|
Post by raider on Jun 13, 2021 5:08:46 GMT -8
Traceback (most recent call last): File "testDustHM3301.py", line 52, in <module> myAQI = DustSensor.get_aqi() File "home/pi/SDL_Pi_SkyWeather2/DustSensor.py", line 141, in get_aqi myAQI = hm3301.get_aqi() File "./SDL_Pi_HM3301/SDL_PiHM3301.py", line 107, in get_aqi (aqi.POLLUTANT_PM25, self.PM_2_5_atmosph), AttributeError: 'SDL_PiHM3301' object has no attribute 'PM_2_5_atmosph'
worked in SD image v15, if update with git pull to latest, fails as above and AQI = 0
maybe CLOSED - 050221-02 - V025 - Re-evaluate the use of Atmospheric versus Standard in AQI calculation needs to be reopened
Thanks
|
|
|
Post by raider on Jun 14, 2021 5:38:14 GMT -8
Changed SDL_Pi_HM3301.py line 107 & 108
(aqi.POLLUTANT_PM25, self.PM_2_5_conctrt_std), (aqi.POLLUTANT_PM10, self.PM_10_conctrt_std)
Works now.
|
|
|
Post by SDL on Jun 16, 2021 12:08:55 GMT -8
Phhhtt. I didn't test the test software. I'll fix it here shortly.
The test escape was that I was only testing the new Wireless AQI Sensor. Bad BP.
Fixed. V26.03 BP
|
|