Migrating to new RPI environment

70 views
Skip to first unread message

Mike Thompson

unread,
Jun 2, 2020, 6:59:58 AM6/2/20
to weewx-user

Hi Forum,

I've been running Weewx on a RPi 1B since 2013 and with Weewx 4 now on Python3 and Wheezy no longer supported I really should bite the bullet and migrate my platform.
Currently it's
Weewx 3.9.1 with some custom reports, alarms, exfoliation, Steel series
SQLite
RPi 1B (512MB RAM) on wheezy (Debian 7)

My plan would be to move home/weewx across to the new platform and then to upgrade to Weewx 4.x, does that sound viable?

Regarding the hardware, I could get a RPi4 but I've got quite attached to the little RPI 1B it's done me well and been stable. I haven't quite managed 365 days without a reboot but we got close a couple of times.

I've done a very basic test with a spare RPI 1B standalone not connected to the weather station. Installed Buster moved home/weewx across, installed some misssing python libraries and it came up, so it might be up to it.

Has anyone got any experience of  running weewx 4 on RPi 1B with Buster?

Thanks in advance.

Mike

p q

unread,
Jun 2, 2020, 8:49:46 AM6/2/20
to weewx...@googlegroups.com
I was in a similar situation. I have a Raspi 2b. I was running Weewx 3.5 with some custom services and a modified driver.  I made the move to 4.1 using python 2 but haven't made the jump to upgrade the OS and switch to python 3 yet. 

Getting to 4.x was pretty painless. I prepped by getting a copy of my system running on a VM and upgrading it. Once I figured out what all I needed to upgrade I did it on the real system. 

I had a couple of things to fix after the upgrade. 
Remodify my custom driver
Date and time formatting was now overridden in weewex.conf
I needed a new version the forecast extension

Im probably going to use a new SD card and do clean install with the latest os and python 3 so l can fall back to the old one if I run into trouble. 

Good luck. 

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/7948401e-6b35-42d1-bffe-749a18dfcd9a%40googlegroups.com.

Mike Thompson

unread,
Jun 2, 2020, 10:17:44 AM6/2/20
to weewx-user
Thanks pq
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.

vince

unread,
Jun 2, 2020, 10:32:56 AM6/2/20
to weewx-user
On Tuesday, June 2, 2020 at 3:59:58 AM UTC-7, Mike Thompson wrote:
My plan would be to move home/weewx across to the new platform and then to upgrade to Weewx 4.x, does that sound viable?


Absolutely - should be straightforward.

I've done a very basic test with a spare RPI 1B standalone not connected to the weather station. Installed Buster moved home/weewx across, installed some misssing python libraries and it came up, so it might be up to it.


The computer doesn't care what it runs.

Has anyone got any experience of  running weewx 4 on RPi 1B with Buster?


I run v4 on a Seagate Dockstar (128 MB RAM - essentially a 2008 PogoPlug) with a self-compiled python3, as the Debian 8 version on it is ancient.  Runs fine.

This is normal stuff.  You're limited by the hardware capacity, but it'll work.

Mike Thompson

unread,
Jun 2, 2020, 3:39:58 PM6/2/20
to weewx-user
Cheers Vince


Mike Thompson

unread,
Jun 2, 2020, 3:49:42 PM6/2/20
to weewx-user
Update - might be helpful to anyone having trouble getting apache running against the weewx/public_html directory.


To get Apache 2.4 running I had to edit apache2.conf and 000-default.conf to change the document root
Edited /etc/apache2/sites-available/000-default.conf  and changed the DocumentRoot to /home/weewx/public_html
Edited /etc/apache2/apache2.conf with the values from Weewx User guide. I modified it slightly tp make the root directory / point to /home/weewx/public_html

Reply all
Reply to author
Forward
0 new messages