Which upgrade 1st?

132 views
Skip to first unread message

Doug England

unread,
Jan 11, 2025, 9:27:04 PM1/11/25
to weewx-user
I am running weewx 4.10.2 on a Pi 3B+ running Bullseye 11.x.  I am interested in moving to weewx 5.1.  I might as well move to Bookworm will I am fiddling around.  

Which upgrade should I do 1st? The PiOS or weewx?

Thanks

vince

unread,
Jan 11, 2025, 9:44:22 PM1/11/25
to weewx-user
Never upgrade a pi. Image a clean card.

Peter Fletcher

unread,
Jan 12, 2025, 8:29:22 AM1/12/25
to weewx-user
Vince is right. There were more or less approved 'recipes' for in place Pi OS version upgrades up to Bullseye, but even those came with caveats and did not work for everyone. There is no even remotely foolproof way of going from Bullseye to Bookworm other than burning a new card and reinstalling your applications (including weewx). Bookworm uses and (to a large extent) enforces some different approaches to application installation - particularly Python scripts - so the application reinstallation process may also be non-trivial. If your Pi is just running weewx, the upgrade, done in the recommended way, should not be particularly difficult or time consuming. If the Pi is also doing other things, prepare for a challenging process!

Doug England

unread,
Jan 12, 2025, 8:40:57 AM1/12/25
to weewx-user
Thanks... I was considering a new image and then installing 5.1 too.  Was not sure if the database side of existing data was troublesome or not.  I will take the clean route.

On Saturday, January 11, 2025 at 9:44:22 PM UTC-5 vince wrote:

Peter Fletcher

unread,
Jan 12, 2025, 10:57:54 AM1/12/25
to weewx-user
The database structure of weewx is unchanged, whether you use MySQL/MariaDB or sqlite3, though the default location of the database is different if you use sqlite. sqlite3 gets installed in Bookworm as it was in previous OS versions. I don't use MySQL/MariaDB, but I believe that its installation is also similar in the latest OS version.

Doug England

unread,
Jan 13, 2025, 10:29:27 AM1/13/25
to weewx-user
It went pretty smoothly.  Before I connected the Davis to the USB on the Pi, I copied the legacy .sdb file to /var/lib/weewx and restarted everything.

I had missed a customization that I had done in the Seasons skin to publish as index_weewx.html instead of index.html as I am using the Saratoga templates as my landing page that has side menu item to weewx generated page.  Thanks for the advice all.

Reply all
Reply to author
Forward
0 new messages