|
Post by Dzean on Mar 6, 2020 9:46:28 GMT -8
Hi there ! I bought a GroveWeatherPi Solar Add-on Product Bundle and GroveWeatherPi Product Bundle last year but I've just find some time to use it ! Electronic is installed and plugged (without solar part in the first instance) Unfortunately, it seems that the sd card I bought isn't working. I am using a raspi A+ and when I plug it with HDMI, nothing is displayed. No problem if using another sd card with a raspbian on it. Don't want to buy another one (I live in France) so I would like to install everything from scratch on a new sd card (using GroveWeatherPi not the new release SkyWeather) I wonder if there is a step by step tutorial on how to create the sd card from scratch. As for now, I've installed raspbian buster lite and configured Wifi and SSH connection. On the tutorial, part 7, I can read : On your Raspberry Pi install the github archive github.com/switchdoclabs/SDL_Pi_GroveWeatherPi What does it mean exactly ? Do I have to follow the instruction detailled on the readme file on the github project ? It seems that this only concerns instruction to install dependencies ? Help would be appreciated please  Thanks
|
|
|
Post by Dzean on Mar 7, 2020 10:47:25 GMT -8
Wow I did lot of progress since yesterday. I got back to Raspbian Stretch distrib, for now it's enough. I've installed everything from scratch, then imported git GroveWeatherPi I'll detailed everything later if it can be useful for others.
For now I didn't pluggued sunairpanel
When I run GroveWeatherPi.py
deviceID = 0x1050
as3935 present at 0x02
outsideTemperature: 23.4 C
outsideHumidity: 47.5 %
crc: 0x-1
GroveWeatherPi Solar Powered Weather Station Version 3.17 - SwitchDoc Labs
Program Started at:2020-03-07 14:31:27
----------------------
I2C Mux - TCA9545: Present
BMP280: Present
DS3231: Present
HDC1080: Present
HTU21DF: Not Present
AM2315: Not Present
ADS1015: Not Present
ADS1115: Present
AS3935: Present
OLED: Present
SunAirPlus: Not Present
Sunlight Sensor: Not Present
WXLink: Not Present
UseBlynk: Not Present
UseMySQL: Present
Check WLAN: Present
WeatherUnderground: Not Present
----------------------
sendmail exception raised
-----------------
Sample and Display
-----------------
-----------------
Weather Sampling
-----------------
-----------------
-----------------
SunAirPlus Not Present
-----------------
-----------------
-----------------
-----------------
Raspberry Pi= 2020-03-07 14:31:29
DS3231= 2020-03-07 14:31:29
DS3231 Temperature= 23.25 C
-----------------
AS3935 Lightning Detector
-----------------
Last result from AS3935:
----No Lightning detected---
Lightning Count = 0
-----------------
-----------------
Sample and Display Done
-----------------
-----------------
Scheduled Jobs
-----------------
Jobstore default:
patTheDog (trigger: interval[0:00:10], next run at: 2020-03-07 14:31:40 UTC)
sampleAndDisplay (trigger: interval[0:00:30], next run at: 2020-03-07 14:32:00 UTC)
tick (trigger: interval[0:01:00], next run at: 2020-03-07 14:32:30 UTC)
checkForButtons (trigger: interval[0:01:00], next run at: 2020-03-07 14:32:30 UTC)
writeWeatherRecord (trigger: interval[0:05:00], next run at: 2020-03-07 14:36:30 UTC)
writePowerRecord (trigger: interval[0:05:00], next run at: 2020-03-07 14:36:30 UTC)
updateRain (trigger: interval[0:05:00], next run at: 2020-03-07 14:36:30 UTC)
checkForShutdown (trigger: interval[0:05:00], next run at: 2020-03-07 14:36:30 UTC)
doAllGraphs (trigger: interval[0:15:00], next run at: 2020-03-07 14:46:30 UTC)
barometricTrend (trigger: interval[0:15:00], next run at: 2020-03-07 14:46:30 UTC)
WLAN_check (trigger: interval[0:30:00], next run at: 2020-03-07 15:01:30 UTC)
statusRain (trigger: interval[1:00:00], next run at: 2020-03-07 15:31:30 UTC)
rebootPi (trigger: cron[day='2-30/2', hour='0', minute='4'], next run at: 2020-03-08 00:04:00 UTC)
I don't understand why no sensor data are displayed while datas are displayed on the OLED screen... Any ideas ?
Another question : nothing is loggued in WeatherData table in database
Thanks for your help
|
|
|
Post by SDL on Mar 7, 2020 14:25:25 GMT -8
Would you explain your first question? Sensor data displayed where?
Did you wait long enough for the MySQL data?
BP
|
|
dzean
New Member
Posts: 2
|
Post by dzean on Mar 7, 2020 23:24:42 GMT -8
Hey thanks for your answer ! In part 12 of step by step tutorial it's said that executing sudo python GroveWeatherPi.py should dislpay something like .....
WeatherRack Weather Sensors Sampling
-----------------
Rain Total= 0.00 in
Wind Speed= 0.00 MPH
MPH wind_gust= 0.00 MPH
Wind Direction= 270.00 Degrees
Wind Direction Voltage= 4.476 V
-----------------
-----------------
DS3231 Real Time Clock
-----------------
Raspberry Pi= 2016-08-12 22:41:41
DS3231= 2016-08-12 22:41:41
DS3231 Temperature= 25.25 C
-----------------
-----------------
-----------------
BMP280 Barometer
-----------------
Temperature = 25.60 C
Pressure = 94.66 KPa
Altitude = 570.64 m
Sealevel Pressure = 94.66 KPa
....... In my case I haven't weather rack display, is that normal ? I saw that there is a WeatherRackTest.py and tried to execute but I have errors with import files as SDL_Adafruit_ADS1x15 I found a post on this question but I have not yet been able to solve it. I confirm that datas are displayed on OLED screen (except ligthning sensor which seems not to be recognized while it's properly connected) About SQL Data, you are right : I took a closer look at the main loop in GroveWeatherPi.py and I saw that it pushes datas every 5 minutes : not sure I ran it during 5 minutes for now.
|
|
|
Post by SDL on Mar 8, 2020 11:18:55 GMT -8
Sounds like you have wiring problems, especially regarding the Weather Rack. Make sure you have plugged both RJ11 cables into the correct slot. Check that again.
Have you checked your device placement by looking in the manual where it shows all four I2C buses from the I2C Mux? Looks like you aren't seeing the AM2315 either.
John
|
|
dzean
New Member
Posts: 2
|
Post by dzean on Mar 9, 2020 1:48:38 GMT -8
I've checked wiring several time... eveything seems correct (even solar system which is now connected and working great !  ) Moreover I ran the station all yesterday afternoon and I can see datas in mysql database (except lighting sensor, whose working led is on yet : sensor may be broken ?) : you were right, previously I didn't have wait enough It's too bad for the ligthing sensor : I expect to buy a new one. Now I have an important question : do you have documentation about how to predict weather using GroveWeatherPi saved datas ? I mean : I would like to create a web interface (not using the raspiconnect one) which can display a cloud and rain image if datas match this case for instance. But I have no idea how to correlate datas and prediction... Hope this is clear Thanks
|
|
|
Post by SDL on Mar 10, 2020 16:09:16 GMT -8
No, we don't but there is a ton of data out there on how to do that give the amount of data you are collecting!
BP
|
|