teech
New Member
Posts: 19
Raspberry Pi: Yes
|
Post by teech on Jun 16, 2021 4:49:56 GMT -8
Dear All. I am currently trying to configure a SkyWeather2 station with my RPi4 with my class at school and am experiencing a few teething issues, with which I would be extremely grateful for assistance. I am new to this hardware and am not a Computer Science teacher, but do have some basic pi savvy. 1. With the Skyweather2.py I seem to have connection to BMP280, the SkyCam, and DustSensor (all present), but the Dust sensor is not recording any data. testDustHM3301.py return the error as shown in the picture. Issue pics.docx (1.26 MB) 2. When attaching the hat board, the GPIO pins are not completely covered due to conflict with the USB port that prevents the hat sliding on fully. How do I secure this fully to allow the unit to be put in the weatherproof case without the hat simply falling off? 3. The unit is running very hot. I have the little RPi sink on the chip but was wondering if there is any easy fit peripheral fan? 4. We are transmitting data ok to weatherSTEM, but the dash app is not working - I uncommented the start on boot lines of the local.rc file that came with the prebuilt SD card, but I always have to manually start SkyWeather2.py and index.py always returns error code. Thank you so much in advance for any assistance you may be able to provide. Issue pics.docx (1.26 MB)
|
|
|
Post by Jason on Jun 16, 2021 5:44:40 GMT -8
Looks like you might've found a bug in that version of the code. The class SDL_Pi_HM3301 doesn't have an instance variable titled PM_2_5_atmosph or PM_10_atmosph. Instance variables titled PM_10_conctrt_atmosph and PM_2_5_conctrt_atmosph are defined in the class definition within SDL_Pi_HM3301/SDL_Pi_HM3301.py.
myaqi = aqi.to_aqi([ (aqi.POLLUTANT_PM25, self.PM_2_5_atmosph), (aqi.POLLUTANT_PM10, self.PM_10_atmosph) ]) should likely be:
myaqi = aqi.to_aqi([ (aqi.POLLUTANT_PM25, self.PM_2_5_conctrt_atmosph), (aqi.POLLUTANT_PM10, self.PM_10_conctrt_atmosph) ]) but will require SDL to confirm.
Thanks,
Jason
|
|
|
Post by Jason on Jun 16, 2021 5:50:03 GMT -8
Don't believe I saw an error message for the Dash app. Can you post a picture of the error message you receive when you attempt to manually start the Dash app?
Thanks,
Jason
|
|
|
Post by raider on Jun 16, 2021 6:35:14 GMT -8
I changed line 107 & 108 back to v15 SD disk, as git pull update caused the error.
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)
|
|
|
Post by doxidad on Jun 16, 2021 9:52:11 GMT -8
Problem #1 - that error says that you already have a program running trying to talk to the Dust Sensor. Do you have SkyWeather2.py running? If so you will need to stop it first before running the Dust Sensor test program.
Problem #3 - PI4s run very hot even just idling with no applications executing other than the operation system and its support programs. Whatever you can do to cool it is a plus.
Problem #4 - run the dash app manually and see if there are any errors generated - sudo python /home/pi/SDL_Pi_SkyWeather/dash_app/index.py
|
|
|
Post by SDL on Jun 16, 2021 11:44:44 GMT -8
Thanks for the answers above:
1. With the Skyweather2.py I seem to have connection to BMP280, the SkyCam, and DustSensor (all present), but the Dust sensor is not recording any data. testDustHM3301.py return the error as shown in the picture. Issue pics.docx (1.26 MB)
This is a bug! I will add to the bug list and fix in SkyWeather2. Dumb of me to miss this. Solution above fine.
2. When attaching the hat board, the GPIO pins are not completely covered due to conflict with the USB port that prevents the hat sliding on fully. How do I secure this fully to allow the unit to be put in the weatherproof case without the hat simply falling off?
Send a picture please. This should not be a problem, but I want to see it. Does it really fall off or is it just not flush?
4. We are transmitting data ok to weatherSTEM, but the dash app is not working - I uncommented the start on boot lines of the local.rc file that came with the prebuilt SD card, but I always have to manually start SkyWeather2.py and index.py always returns error code.
Comment them out again in the local.rc and hand start each in different terminal windows. Then post the error codes.
BP
|
|
|
Post by SDL on Jun 16, 2021 12:33:47 GMT -8
Update to #2.
OK, looks iike the wrong headers were added to the latest version of the SkyWeather2. We will send out adaptor plugs to you new people later this week. I've got the prototype adaptor plugs added and I'll test them and send them out!
Sorry about that!
BP
|
|
teech
New Member
Posts: 19
Raspberry Pi: Yes
|
Post by teech on Jun 17, 2021 2:28:52 GMT -8
Update to #2. OK, looks iike the wrong headers were added to the latest version of the SkyWeather2. We will send out adaptor plugs to you new people later this week. I've got the prototype adaptor plugs added and I'll test them and send them out! Sorry about that! BP Very many thanks to doxidad, SDL, Jason and Raider for your swift and helpful replies! Updates on the issues and feedback requested: 1. Latest testDustHM3301.py error now in pic. I have not updated the code but I did a git pull which seemed to adopt the changes suggested yesterday. Still not working due to new error though. 2. The hat will definitely fall off if the unit is moved from the horizontal and I am concerned it will bend / break the GPIO pins, so a replacement is a very kind offer thank you! (image attached) 3. I will not worry about this anymore.... 4. SkyWeather2 start on bootup, index.py returning error codes now in pics. Thanks so much for your time, I am super grateful for your shared expertise. Images @ Issues pics 2.docx (1.57 MB)
|
|
|
Post by Jason on Jun 17, 2021 3:19:32 GMT -8
You are missing some Python dependencies for Dash. Lemme dig up the post with those dependencies.
Thanks,
Jason
|
|
dow4hurst
Full Member
SkyWeather2 Newbie
Posts: 117
|
Post by dow4hurst on Jun 17, 2021 3:32:45 GMT -8
Teech, In your startup command for skyweather2 and dash_app you have "python" not "python3" so that is an easy fix. The images of your hat stuck on the pi seem to show the physical ports on the pi sticking up too high? On the pi 4B that I have the ports are lower so the hat fits down on the GPIO pins snugly. Dow
|
|
teech
New Member
Posts: 19
Raspberry Pi: Yes
|
Post by teech on Jun 17, 2021 4:21:21 GMT -8
Teech, In your startup command for skyweather2 and dash_app you have "python" not "python3" so that is an easy fix. The images of your hat stuck on the pi seem to show the physical ports on the pi sticking up too high? On the pi 4B that I have the ports are lower so the hat fits down on the GPIO pins snugly. Dow Hi Dow, Re python - I hope this is not the cause as it means I may be a little dim! I am pretty sure I went with python3 yesterday but will give it a whirl just in case it is just me. Jason seems to think it is a recurrent issue so I will see what he comes back with in terms of a code fix. Re the ports, the troublesome one is ethernet and this is how it comes built (maybe a US / Europe model difference...?). SDL seem to think I need a replacement header, which seems likely when looking at the device at this end. Thanks again for your help. Dan (teech)
|
|
teech
New Member
Posts: 19
Raspberry Pi: Yes
|
Post by teech on Jun 17, 2021 4:21:42 GMT -8
You are missing some Python dependencies for Dash. Lemme dig up the post with those dependencies. Thanks, Jason That would be great Jason, thanks.
|
|
|
Post by Jason on Jun 17, 2021 4:34:38 GMT -8
Good catch dow4hurst! Totally missed that. teech first confirm that the following command produces a similar result: sudo python3 index.py if it does, check out this post. Thanks, Jason
|
|
teech
New Member
Posts: 19
Raspberry Pi: Yes
|
Post by teech on Jun 18, 2021 1:37:48 GMT -8
Good catch dow4hurst ! Totally missed that. teech first confirm that the following command produces a similar result: sudo python3 index.py if it does, check out this post. Thanks, Jason Good afternoon (morning?) all, I am now down to a single issue, not withstanding the replacement header. We are still unable to launch the Dash app, despite calling python3 - the error code is shown here: issue pics 3.docx (331.55 KB) Your help on this final issue would be much appreciated, all else works superbly! Best regards. Dan.
|
|
|
Post by Jason on Jun 18, 2021 2:36:02 GMT -8
Try sudo pip3 install vcgencmd
Jason
|
|