Sopwith
Junior Member

"If it works out of the box - what fun is that?"
Posts: 69
Raspberry Pi: Yes
Other Device: Pico Pi
|
Post by Sopwith on Mar 20, 2021 6:23:24 GMT -8
I did not purchase the SkyWeather2 SD Card, so I had to build the software suite by hand. This took quite a bit of time to get right. To save others the trouble, I have created a " How-To" guide for you DIY's to help get your SkyWeather2 up and running. The download includes detailed documentation on how to get your kit up and running, plus a bash script to install all the dependencies. When you are at my blog, you may also want to check out my guide on creating a custom Pi OS Image. This is another huge time saver if you burn a lot of SD Card images or create custom Pi OS distributions. Sopwith
|
|
|
Post by SDL on Mar 20, 2021 11:04:02 GMT -8
Sopwith,
You Rock! This should be the go to resource until the next big change (I hear rumors of the next version of Raspberry PI OS - which of course will change about 80% of the procedures). Note that the various package maintainers continue to change installation procedures on an ongoing basis.
BP
|
|
Sopwith
Junior Member

"If it works out of the box - what fun is that?"
Posts: 69
Raspberry Pi: Yes
Other Device: Pico Pi
|
Post by Sopwith on Mar 30, 2021 18:38:25 GMT -8
The Raspberry Pi Foundation has released new Pi OS images this month (March 4, 2021). I have tested the new image with my SkyWeather2 installation script and it works fine. No changes required. If you are going to use the installation script, please use the latest Pi OS image. Also, be sure to update the image upon first boot - BEFORE you run the SkyWeather2 install script. $ sudo apt update $ sudo apt upgrade -y $ sudo reboot Sopwith
|
|
|
Post by doxidad on Mar 31, 2021 3:16:52 GMT -8
Very nice !!
|
|
|
Post by SDL on Mar 31, 2021 11:09:27 GMT -8
BTW, this makes sense that there is not a big problem with this OS release. It is still based on Denbian BUSTER. When they change the base release is when we have problems and everybody goes crazy. At that point, we have to rebuild our entire SDCard Image. How fun!
BP
|
|
Sopwith
Junior Member

"If it works out of the box - what fun is that?"
Posts: 69
Raspberry Pi: Yes
Other Device: Pico Pi
|
Post by Sopwith on Apr 21, 2021 13:02:30 GMT -8
I have updated and tested the SkyWeather2 Installation Guide for Release 025. - Added vcgencmd module to the install script. - Updated the document to include the database upgrade command. (sudo mysql -u root -p WeatherSenseWireless < updateWeatherSenseWireless.sql) Sopwith
|
|
wshealy
Full Member
 
Posts: 187
Raspberry Pi: Yes
|
Post by wshealy on Apr 21, 2021 17:17:50 GMT -8
Which Pi image do you start with? I have been considering starting with the minimal version. The recommended image is full of stuff I never use on a weather station. It would certainly update quicker. If not run smoother.
Wallace
|
|
Sopwith
Junior Member

"If it works out of the box - what fun is that?"
Posts: 69
Raspberry Pi: Yes
Other Device: Pico Pi
|
Post by Sopwith on Apr 21, 2021 19:15:15 GMT -8
Hi Wallace, I use the Raspberry Pi OS Lite version. The 'headless' version does not have a GUI, so you have to use SSH and/or terminal sessions to access it. As you indicated, there is nothing wrong with using the Desktop version, but it takes up a lot more space on the SD Card and runs slower. Sopwith
|
|
|
Post by Jason on Apr 21, 2021 19:39:05 GMT -8
Runs slower and hotter!
Jason
|
|
wshealy
Full Member
 
Posts: 187
Raspberry Pi: Yes
|
Post by wshealy on Apr 21, 2021 19:41:15 GMT -8
I add remote desktop and the appropriate files back. W
|
|
tecronin
Junior Member

Posts: 91
Raspberry Pi: Yes
|
Post by tecronin on Apr 22, 2021 13:58:38 GMT -8
|
|
wshealy
Full Member
 
Posts: 187
Raspberry Pi: Yes
|
Post by wshealy on Apr 22, 2021 18:19:19 GMT -8
Can't wait to try it. W
|
|
wshealy
Full Member
 
Posts: 187
Raspberry Pi: Yes
|
Post by wshealy on Apr 28, 2021 23:11:09 GMT -8
Sopwith,
Your script is on both my Bullseye and Buster test system. I have loaded the version with desktop but off but not the bloat because sometimes I like to see how stuff runs on host in a browser for example to check if something responds locally but not remotely. I also sometimes use xrdp for remote desktop.
By the way I love the way you think. The script is a jewel. I may go looking to borrow your other ideas.
I get tired of trying to reproduce things that took me days to figure out and maybe worked accidently and now I need to do again on another instance. Like install home assistant with its annoying instance on python 3.8 and network-manager. The script would have to remove dhcp and openresolv and create some configs but I already keep a folder with those things on my work machine. You are dangerous got me thinking at 3am.
It ran like a jewel. Now 5:30am Night/Morning Wallace
|
|
wshealy
Full Member
 
Posts: 187
Raspberry Pi: Yes
|
Post by wshealy on Apr 29, 2021 3:27:07 GMT -8
Sopwith, One small typo. When you create the directory SDL_Pi_SkyWeather2. The W is a cap. Your script made it lower. Since all SDL references are upper. Well their rc.local etc doesn't work. Easy fix. W
|
|
Sopwith
Junior Member

"If it works out of the box - what fun is that?"
Posts: 69
Raspberry Pi: Yes
Other Device: Pico Pi
|
Post by Sopwith on Apr 29, 2021 7:48:38 GMT -8
Wallace, One of the great joys of being a Maker is watching someone take your work and make it better. Re. the W in SDL_Pi_SkyWeather2, this is an inconsistency in the SDL documentation. The command: "$git clone github.com/switchdoclabs/SDL_Pi_Skyweather2.git" will create a folder named "SDL_Pi_Skyweather2" with a lowercase 'w'. If you look at your system, you will find this is the case. The SDL docs examples mistakenly use an uppercase W. They need to fix this. Sopwith
|
|