|
Post by tellwyn on Oct 10, 2019 16:12:32 GMT -8
Hi all I did the original Kickstarter for the DIY weather on your Pi back in 2016 and then the Skyweather upgrade. I finally got round to start building it this month (Science teacher changing schools / moving, laziness etc!) The lightning detector is the older version which looks different to the 1.7 build instructions. I’ve double checked the wiring as well... The issue: when I run the AS3935 test script I get “AS3935 NOT detected at I2C port 0x02 on base Bus” I’ve also noticed that I’ve got an extra reading on the SDL_Pi_TCA9545 test script on buses 1,2 and 3 at 03 Any help would be useful! (Trying to upload a picture of the lightning detector but getting an error message about size... it's only 300 kB?)
|
|
|
Post by tellwyn on Oct 10, 2019 17:45:13 GMT -8
After doing more reading (I'm a teacher dammit... I shouldn't be studying!), I've figured it out and have moved quite far on. The documentation really could do with some work, so I'll be replying with the post later (after the weekend and typhoon have passed) with my full step-by-step list! It's definitely hard work, but it'll be worth it in the end
|
|
|
Post by SDL on Oct 12, 2019 9:25:45 GMT -8
I am sure you figured out that the original board worked on 0x03. We found that several computers don't like that address but everybody liked 0x02 so we changed the board.
Keep us updated and we look forward to your step-by-step!
BP
|
|
|
Post by tellwyn on Oct 15, 2019 21:07:59 GMT -8
Installing MariaDB
sudo apt-get install mariadb mariadb-server
Once installed, check whether is has been enabled: systemctl is-active mariadb systemctl is-enabled mariadb The first command should say “active”, the second should give a result of “enabled”. If it doesn’t, then we will need to start it: systemctl enable mariadb systemctl start mariadb Now the basic install doesn’t complete the full set up so our next step is to configure MariaDB with a password etc… sudo mysql_secure_installation This will ask you to a) set a root password b) remove anonymous users c) allow remote root login d) remove the test database e) reload privilege tables immediately (to allow a-d to take effect) sudo apt-get install python-mysqldb This step installs the python to mysql bindings (Taken from www.rootusers.com/how-to-install-and-configure-mariadb/ and SkyWeather github instructions) Adding the SkyWeather database
Now that mySQL is installed, let’s set up the database: mysql -u root -p
This enters into MySQL. Next step is to create our SkyWeather database: CREATE DATABASE database_name;
(Change database_name to your choice… e.g sky_weather... also, note the semi-colon at the end!) quit (or CTRL-D) Next, move to the SkyWeather installation directory: cd SDL_Pi_SkyWeather cd SkyWeatherSQL
This next command imports the template database into the database we created earlier. sudo mysql -u root -p database_name < WeatherPiStructure.sql (Taken from www.digitalocean.com/community/tutorials/how-to-import-and-export-databases-in-mysql-or-mariadb and SkyWeather instructions on github) Hope this helps some people! I'll add more later (and possibly make a new post with a more complete version) once I've finished the waterproofing of the box... I'm out of superglue and silicon caulking
|
|
|
Post by SDL on Oct 16, 2019 10:37:21 GMT -8
That is excellent. Thank you!
BP
|
|