How to upgrade using a NEW Raspeberry Pi ?

89 views
Skip to first unread message

Yves Martin

unread,
Sep 27, 2022, 11:55:50 AM9/27/22
to weewx-user
Hi,

I have an old version of weewx : 3.9.2 and I want to upgrade and in the same time change the hardware by something more recent (rpi 4b), with a new version of Python...

Is there somewhere a "step by step" manual or indications to be able to do that?

I follow instructions in the documentation, copying all files, but it does not work, my "weewx.conf" is not recognized when I start the upgrade ... like it was a fresh one.

Thanks!

YMartin.com/meteo

vince

unread,
Sep 27, 2022, 12:40:26 PM9/27/22
to weewx-user
You asked the same question on Sept-12 and Sept-25th and several people tried to help you both times.   On Sept-12 Tom pointed you to the Upgrade Guide (link) which has the procedure.

Yves Martin

unread,
Sep 27, 2022, 5:29:35 PM9/27/22
to weewx-user
Hi Vince,

Yes but it is not working for me.

This is not just an upgrade, I've replaced the Raspberry PI by a new version (4b) and a new distribution of Debian, including a fresh install of Python.

When I try to upgrade, it ask me like it was a new install, and do not consider my "weewx.conf" file. 

What did I miss?

YM

vince

unread,
Sep 27, 2022, 5:58:14 PM9/27/22
to weewx-user
In the absence of you providing any data of what you did and what you saw, I have no idea.

Rainer Lang

unread,
Sep 27, 2022, 6:07:04 PM9/27/22
to weewx...@googlegroups.com
The Rpi4B has nothing to do with it (ca n'en a rien à voir - rien du tout !)

Just do the following things:
1. save your old .../skins/Seasons directory and its content
2. save your old weewx.conf
3. save your old weewx.sdb
e.g. on a USB stick
4. now do a complete new install on the new RPi (doesn't matter if RPi2, RPi3, RPi4B, just do it !) with the simulator driver
5. make sure you have a webserver installed (apache2 or nginx)
6. if you use an extension or special driver, install that driver/extension
7. once everything works with the Simulator driver and the Seasons skin,
then
copy the files from your USB stick back
a) .../skins/Seasons and content to your new ../skins directory  either /etc/weewx/skins  or /home/weewx/skins
b) weewx.conf to your new weewx directory (either /etc/weewx or /home/weewx depending on your installation method
c) weewx.sdb to your new weewx database directory: either /var/lib/weewx or /home/weewx/archive

start weewx - and it should just run normally using your old skin definitions, your old weewx.conf and your old weewx database

then you have upgraded your weewx and have at the same time kept your configuration and history
--
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/69516126-d693-4c81-aa14-76b3a74e75ddn%40googlegroups.com.


Reply all
Reply to author
Forward
0 new messages