Pi4 to Pi3 weewx migration

84 views
Skip to first unread message

PC

unread,
Oct 9, 2022, 9:53:55 AM10/9/22
to weewx-user
Hello,

I would like to migrate weewx from a Pi4 to a Pi3. I tried to simply put the SD card and it did not, of course, work.
Not being an expert Linux, can you tell me a procedure?
weewx 4.8.0 and MySQL

Thanks in advance !

vince

unread,
Oct 9, 2022, 6:31:28 PM10/9/22
to weewx-user
Which "it" did not work ?   Did the pi3 boot ?  Did weewx not work after it booted ? 

We can't help without more information and also seeing some logs (if it is weewx you are asking about).

Blaise Cacramp

unread,
Oct 9, 2022, 6:36:07 PM10/9/22
to weewx...@googlegroups.com

Yes, I was not explicit enough, sorry.
The pi3 did not boot.

Le 09-10-22 à 20:31, vince a écrit :
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/gb55x4xQN9E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/80582939-1127-45e2-9ef9-dd867eb671b4n%40googlegroups.com.

WindnFog

unread,
Oct 9, 2022, 7:01:48 PM10/9/22
to weewx-user
I don't think you can do that. A Pi3 and a Pi4 are significantly different from a hardware standpoint. The SD card would contain configuration information about when the O/S was installed and configured. I suspect you need to download and reinstall a fresh copy of the O/S, configure it as per your preferences, and then reload weewx from its repository.  If you have .conf files and such on the Pi4 version, you likely can back them up to something (a USB flash drive, for example) and then load them onto your Pi3 to get things working as they were on the Pi4. Maybe one of the weewx developers can provide a better solution, but there usually is a significant problem when something doesn't boot.

- Paul VE1DX

vince

unread,
Oct 9, 2022, 8:46:24 PM10/9/22
to weewx-user
This isn't a 'pi' forum.  You might have better luck on reddit in /r/raspberrypi for general pi questions.

Rainer Lang

unread,
Oct 9, 2022, 9:55:19 PM10/9/22
to weewx...@googlegroups.com
I would use the following approach:
1. take a (new) SD card and put a bootable OS image for a RPi3 on it
2. try to start up /boot your RPi3
3. if it doesn't boot, look up via Google the topic: creating an OS image for RPi3 and get your RPi3 up and running
4. Once your RPi3 boots and runs, do a new weewx install
5. once weewx runs with the Simulator driver - shut weewx down, copy your old weewx.conf, your skin files and the old weewx.database
over to the RPi3 and restart weewx. It should then run.
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/5b14fc46-263e-41e1-82c6-611cfc1b28e3n%40googlegroups.com.


Blaise Cacramp

unread,
Oct 10, 2022, 7:40:33 AM10/10/22
to weewx...@googlegroups.com

Yes, that cannot work. It was a poker blow. The French Raspberry Forum did not even answer me!
I will take the solution from Rainer Lang

Le 09-10-22 à 22:46, vince a écrit :

Blaise Cacramp

unread,
Oct 10, 2022, 7:41:12 AM10/10/22
to weewx...@googlegroups.com

Thank you, I will do like that


Le 09-10-22 à 23:55, Rainer Lang a écrit :

paul.ba...@gmail.com

unread,
Oct 10, 2022, 10:17:12 AM10/10/22
to weewx-user
The Pi 3 is a 32 bits cpu, the Pi 4 a 64 bits one.  So keep your 32 card for the pI 3  and install a freh, complete new OS on the Pi 4, including python3 and all you need for weewx, without tuchung weewx. Then when your Pi 4 is rolling,  you can probably copy the full weewx from the 32 card at their expected place, or, reinstall weewx from fresh, and copy just all configuration files (weewx.conf and all skins conf).
If you have done a lot of "local" modifications on the Pi 3, the full copy of the Pi 3 files is the simplest. 
If you had no modifications, the I would prefer to install all from scratch.
Good luck,     Paul;

Reply all
Reply to author
Forward
0 new messages