|
Post by offgrid on Feb 17, 2021 20:07:51 GMT -8
Just got round to testing my SkyWeather - and thank you to switchdoc for creating the product with great documentation.
But a problem the SHT30 does not pass the sudo python testAM2315.py test. the output is : pi@raspi2:~/SDL_Pi_SkyWeather $ sudo python testAM2315.py ./SDL_Pi_AM2315/AM2315.py:36: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings. GPIO.setup(self.powerpin, GPIO.OUT)
it then hangs and after cntrl C I get: ^CTraceback (most recent call last): File "testAM2315.py", line 51, in <module>
I also notice an anomaly in the I2C test with:
-----------BUS 0------------------- tca9545 control register B3-B0 = 0x1 ignore Interrupts if INT3' - INT0' not connected tca9545 control register Interrupts = 0x0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- ---- --- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- 44 -- -- -- 48 -- -- -- -- -- -- -- the rest of the test is as per the docs The unexpected is the 44. I note that the SHT3x_Datasheet shows that it's I2C address as default 0x44
I am stuck at this point and need help. As regard system in use = Raspi 2 with software downloaded from GitHub and installed as per the readme.
I have tried everything with my ability - no joy. I have also reluctantly ordered SkyWeather SD card (with shipping almost 2x the price of the card  - anything to get it working. However due to my remote location (yes I am off the grid in rural New Zealand generate own power etc) we don't get post/courier delivery so a 3.5 hour drive next week .... my issue & I live with it, but help on this problem would be good.
Cheers
|
|
|
Post by SDL on Feb 18, 2021 9:21:38 GMT -8
First of all, the SHT30 will not pass the AM2315 test as it is not an AM2315. The SHT30 replaced the AM2315 in SkyWeather because of reliability problems.
0x44 is correct for the SHT30.
You can remove the Grove Power save that the SHT30 is plugged into. Just plug it directly into the I2C port that the Grove PowerSave was plugged into.
Make sure you have the latest SKyWeather software.
Go into your SkyWeather Directory and type:
git pull Now, move the SHT30 plug temporarily from to one of the Pi2Grove I2C plugs, go down into the SDL_Pi_SHT30 subdirectory and run:
sudo python testSHT30.py
You should see the SHT30 print out data.
Return the SHT30 to the previous I2C plug and run sudo python SkyWeather.py and give us the first 100 lines.
BP
|
|
|
Post by offgrid on Feb 18, 2021 14:23:03 GMT -8
Thanks for the quick reply, given our 20hour time difference. The git pull produced: pi@raspi2:~/SDL_Pi_SkyWeather $ git pull fatal: not a git repository (or any of the parent directories): .git
However ignoring the above I shifted the SHT30 to the Pi2Grover and ran the testSHT30 which produced the expected results rolling addresses for CRCH=0x46 CRCT=0xb4 T 21.568627451 H 57.4807354849 H,T (57.4166475928893, 21.552605477988863) H,T,C (57.4517433432517, 21.568627450980387, 241, 170)
So .... so far so good>
Questions: 1: The readme version control states: July 8, 2019: Version 040 - WeatherUnderground Fix, Support for SHT30- Must update conflocal.py if used<BR>
what needs doing to the conflocal? ... (who reads all the version control stuff anyway?)
2: Can the SHT30 remain plugged into the Pi2Grover? ... If so, is the 6 port I2C connector now redundant?
Observation: Nowhere in the then current documentation or the readme was there any mention that the SHT30 was not a direct replacement for the AM2315. The software downloaded from GitHub when I purchased the package (November 2020) did not have the SDL_Pi_SHT30 folder - it was there in this Wednesday's download, although the readme makes no provision for doing anything different for the SHT30 .... except the version control question above.
I am sorry that I ended up spending $US 78.57 (inc shipping) on the new SD (which should arrive next week and which I hope works!)when updated docs may have saved the money (I note the newly posted Version2 docs are for the wifi version) .... so would my having got onto the forum sooner ~ life is what it is
... so onto the next steps.
Cheers
|
|
|
Post by offgrid on Feb 18, 2021 16:16:14 GMT -8
ok .. apologies for the rant on problems around introduction of SHT30
returned SHT30 to previous plug (on 6 port hub) and
pi@raspi2:~/SDL_Pi_SkyWeather $ sudo python SkyWeather.py Traceback (most recent call last): File "SkyWeather.py", line 66, in <module> import doAllGraphs File "/home/pi/SDL_Pi_SkyWeather/doAllGraphs.py", line 16, in <module> import TemperatureHumidityGraph File "./graphs/TemperatureHumidityGraph.py", line 25, in <module> import MySQLdb as mdb ImportError: No module named MySQLdb
so didn't get 100 lines for you. I note that in the docs setting up the MySQL is optional Step 4) Optional - Set up MySQL database logging. Also I see MySQL has been superseded by mariadb which is what I have installed on my Pi.
|
|
|
Post by SDL on Feb 22, 2021 14:24:45 GMT -8
Try this:
pip3 install mysqlclient
Then run again. I take it you aren't using the SDL SDCard, right?
BP
|
|