impactoz
Full Member
Posts: 142
Raspberry Pi: Yes
|
Post by impactoz on Jun 5, 2019 4:09:01 GMT -8
So recently I purchased all the parts I need to build a SkyWeather station - I already owned the weather rack from other experiments in this field, so I am just putting it all together myself with the documentation at switchdoc. I must say overall its not too bad - but I am having issues, and I am finding little errors in the documentation here and there - eg Assembly and Testing document p52 where it asks you to do a "sudo python test TSL2591.py" - Well that doesn't work... there should be no space after test... An easy one for this newbie to work out! Then as I already had a PI and SD card - I didn't buy one from switchdoc - I can just install the software myself. Nowhere in the manual, the GitHub site or anywhere does it tell you how to do this - so maybe I am new to GitHub, how would I get this to work... Well I made the mistake - turned on the PI... booted up into my home PI directory - and tried the command git clone github.com/switchdoclabs/SDL_Pi_SkyWeather.gitand that worked - until I started playing with the scripts -> and they failed - I created this from the wrong directory... needed to be higher up in the tree... Why was there no documentation on how to do this, and where to do it from - even the readme file lacks this very important point... It mentions you can look at instructables for further info - no url, and searching over there - finds nothing.... I just feel that I am the first to do this, because I am struggling - and yes I could have just done it all myself, but I wanted a quick solution... There also appears to be a lack of instructions / clarity on seting up the SQL Database - but I aint got that far as yet! Now I have it all installed - and Im still in the first document of Assembly and Testing... I have made it to Page 54 - Tst 3 - Device Detection... I issue the commands; sudo pigpiod sudo python SkyWeather.py and the script returns an error...... Traceback (most recent call last): File "SkyWeather.py", line 64, in <module> import doAllGraphs File "/home/pi/SDL_Pi_SkyWeather/doAllGraphs.py", line 16, in <module> import TemperatureHumidityGraph File "./graphs/TemperatureHumidityGraph.py", line 16, in <module> import matplotlib ImportError: No module named matplotlib The doALLGraphs.py is in the SDL_Pi_SkyWeather folder but its referencing TemperatureHumidityGraph which is in a subfolder Graphs... and Im not sure where matplotlib is...... So why are not all the references working - did I guess the git clone wrong because of lack of instruction - but certainly its not turnkey at present... HELP
|
|
|
Post by SDL on Jun 5, 2019 14:25:57 GMT -8
OK, hold on here. GREAT email. Let me get back to you after reviewing the READMEs.
I'l answer it all!
BP
|
|
impactoz
Full Member
Posts: 142
Raspberry Pi: Yes
|
Post by impactoz on Jun 6, 2019 22:43:49 GMT -8
Id be happy to download an img of an sd card for a raspberry 3b that was working so I could get it all up and running.... Like all plans nothing ever works out... Ordered everything in time, to be able to play and configure for a week... to setup the actual unit at a remote location this weekend... Looks like that's not going to be possible... LOL
|
|
|
Post by SDL on Jun 7, 2019 11:10:54 GMT -8
|
|
impactoz
Full Member
Posts: 142
Raspberry Pi: Yes
|
Post by impactoz on Jun 7, 2019 13:16:50 GMT -8
I was sure I did the matplotib install - but its done now...
Still does not resolve my graphs issue;
pi@malmsbury-farm:~/SDL_Pi_SkyWeather $ sudo python SkyWeather.py Traceback (most recent call last): File "SkyWeather.py", line 64, in <module> import doAllGraphs File "/home/pi/SDL_Pi_SkyWeather/doAllGraphs.py", line 16, in <module> import TemperatureHumidityGraph File "/home/pi/SDL_Pi_SkyWeather/TemperatureHumidityGraph.py", line 25, in <module> import MySQLdb as mdb pi@malmsbury-farm:~/SDL_Pi_SkyWeather $ pwd /home/pi/SDL_Pi_SkyWeather pi@malmsbury-farm:~/SDL_Pi_SkyWeather $ ls Adafruit_I2C SDL_Pi_SI1145 Adafruit_Python_BMP SDL_Pi_SSD1306 Adafruit_Python_GPIO SDL_Pi_TCA9545 Adafruit_Python_SSD1306 SDL_Pi_WeatherRack BarometerLightningGraph.py sendemail.py BME680 sendemail.pyc BME680_Functions.py SkyCamera.py config.py SkyWeather.py config.pyc SkyWeatherSQL crcpython2.py startserver.sh doAllGraphs.py state doAllGraphs.pyc state.py doWatchdogPat.py state.pyc DustSensor.py static graphs TemperatureHumidityGraph.py lowpower.sh TemperatureHumidityGraph.pyc MySQLFiles testAM2315.py pclogging.py testAS3935.py pclogging.pyc testBlynk.py pixelDriver.py testDust.py PowerCurrentGraph.py testFan.py PowerVoltageGraph.py testGraph.py pyRFM testSDL_Pi_TCA9545.py RaspberryPi-AS3935 testSI1145.py readLoRa.py testTemp.py README.md testTSL2591.py RTC_SDL_DS3231 testWeatherRack.py Scroll_SSD1306.py testWXLink.py SDL_Adafruit_ADS1x15 TSL2591 SDL_Pi_8PixelStrip updateBlynk.py SDL_Pi_AM2315 updateBlynk.pyc SDL_Pi_DustSensor util.py SDL_Pi_GrovePowerDrive util.pyc SDL_Pi_HDC1000 WeatherUnderground.py SDL_Pi_INA3221 pi@malmsbury-farm:~/SDL_Pi_SkyWeather $ cd graphs pi@malmsbury-farm:~/SDL_Pi_SkyWeather/graphs $ ls BarometerLightningGraph.py TemperatureHumidityGraph.py PowerCurrentGraph.py TemperatureHumidityGraph.pyc PowerVoltageGraph.py testTemp.py
|
|
impactoz
Full Member
Posts: 142
Raspberry Pi: Yes
|
Post by impactoz on Jun 7, 2019 14:06:43 GMT -8
Okay - Solved....
There was no connection between Python and SQL... so doing a apt-get install python-mysqldb seems to have solved the problem. (Why who knows ? )
Still not happy with the documentation - feel it lacks some small details, and think it may cause others a little confusion....
The option of purchasing the SD card now was not an option for me... at $24USD, which is $35aud and then to get it in any reasonable timeframe the cost of postage around $90AUD brings it to over $100AUD where I could just buy the card locally for $10AUD... I understand its not your problem, but its just an international freight issue to Australia and time to get it here... I do feel that an 8Gb file these days is not huge anymore - I could download that in 5 minutes from a torrent... Many other companies have larger images of their software or OS available as images....
|
|
|
Post by SDL on Jun 8, 2019 6:21:46 GMT -8
Impactoz,
Hmmm. Clearly the mysql installation process needs some work. I'll add that to the installation page.
Understand your problem with the SD Card. We will put this problem on our list.
BP
|
|
|
Post by Powderjockey on Jun 29, 2019 6:39:07 GMT -8
I had the same problems but was able to work thru them by looking at the errors. But I am having a couple of problems doing the testing. The first is with the AM2315 temp/humid device. The error is below: sudo python testAM2315.py ./SDL_Pi_AM2315/AM2315.py:35: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings. GPIO.setup(self.powerpin, GPIO.OUT) An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') AM2315readCount = 0 An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') AM2315readCount = 1 An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') AM2315readCount = 2 An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') AM2315readCount = 3 An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') AM2315readCount = 4 An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') AM2315readCount = 5 An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') AM2315readCount = 6 An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') AM2315readCount = 7 An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') AM2315readCount = 8 An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') AM2315readCount = 9 An exception of type IOError occurred. Arguments: (121, 'Remote I/O error') AM2315readCount = 10 power cycling AM2315 ^CTraceback (most recent call last): File "testAM2315.py", line 51, in <module> outsideHumidity, outsideTemperature, crc_check = am2315.read_humidity_temperature_crc() File "./SDL_Pi_AM2315/AM2315.py", line 216, in read_humidity_temperature_crc self._read_data() File "./SDL_Pi_AM2315/AM2315.py", line 167, in _read_data self.powerCycleAM2315() File "./SDL_Pi_AM2315/AM2315.py", line 54, in powerCycleAM2315 time.sleep(10.50)
KeyboardInterrupt The second is for the Lightning Detector. I've tried switching the cable around, but no joy. I know it was working. It maybe just it isn't connected to the right I2C on the boards.
sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- 77 sudo python testAS3935.py
AS3935 NOT detected at I2C port 0x02 on base Bus I will go back and reread the wiring instructions and see if I have things plugged in correctly or not.
Scott
|
|
|
Post by Powderjockey on Jun 29, 2019 16:02:50 GMT -8
Figured it all out. Had to change a couple of numbers in the SkyWeather.py to get the software to talk to the AS3935.
I have now placed everything into the box, but the 50 cm Grove cables are about 30 cm short of getting to the Pi2Grover. How does one connect the AS3935?
|
|
|
Post by SDL on Jun 30, 2019 6:50:19 GMT -8
PowderJockey,
Elucidate us with what you had to change to get the AS3935 to talk with the SkyWeather software please! This will help others.
I don't know the way you have mounted the AS3935, but you may have to extend the cables yourself. Eventually, the I2C cables can be so long that the system will cease to work. You can adjust the pull-ups to get a bit more distance and noise resistance.
BP
|
|
|
Post by Powderjockey on Jun 30, 2019 18:23:48 GMT -8
PowderJockey, Elucidate us with what you had to change to get the AS3935 to talk with the SkyWeather software please! This will help others. I don't know the way you have mounted the AS3935, but you may have to extend the cables yourself. Eventually, the I2C cables can be so long that the system will cease to work. You can adjust the pull-ups to get a bit more distance and noise resistance. BP I change the line 60 in testAS9535.py (sensor = RPi_AS3935(address=0x02, bus=1)) to the following sensor = RPi_AS3935(address=0x03, bus=1). I also changed the line 630 to the same.
As for the Grove cables, my set up is very similar to that in the manuals.
|
|
|
Post by Powderjockey on Jul 1, 2019 7:55:12 GMT -8
PowderJockey, I don't know the way you have mounted the AS3935, but you may have to extend the cables yourself. Eventually, the I2C cables can be so long that the system will cease to work. You can adjust the pull-ups to get a bit more distance and noise resistance. BP I figured this out. I need 50 cm cables for this to work. I had 30 cm cables attached.
Do you know if there are a couple of these 50 cm cables included in the kit?
Scott
|
|
|
Post by SDL on Jul 2, 2019 18:50:14 GMT -8
Scott,
There are no 50cm cables shipped with the upgrade kit as the AS3925 is part of GroveWeatherPi.
BP
|
|
impactoz
Full Member
Posts: 142
Raspberry Pi: Yes
|
Post by impactoz on Jul 3, 2019 3:59:28 GMT -8
|
|
|
Post by SDL on Jul 3, 2019 6:10:11 GMT -8
Don;t you just love it when they change the installation procedures for no good reason!
Thanks for finding this.
BP
|
|