Need help for a "fresh" upgrade

105 views
Skip to first unread message

Yves Martin

unread,
Sep 25, 2022, 11:01:31 AM9/25/22
to weewx-user
Hi,

I'm using weewx since years now and it works like a charm. I've decided to upgrade my old version 3.9.2 to the last one 4.8.x ... and in the same time, change the Raspberry Pi 2 to the version 4. The objective is to be able to use the AirLink from Davis and integrate it in the meteo station. For that, I need a more recent version, and an upgrade of python.

What I did :
- Installed a fresh new version of Debian on a new Raspberry Pi 4b.
Copied all files on my weewx to the new one following the documentation :

WeeWX root directory    WEEWX_ROOT    /
Executables        BIN_ROOT    /usr/share/weewx/
Configuration directory    CONFIG_ROOT    /etc/weewx/
Skins and templates    SKIN_ROOT    /etc/weewx/skins/
SQLite databases    SQLITE_ROOT    /var/lib/weewx/
Web pages and images    HTML_ROOT    /var/www/html/weewx/
Documentation        DOC_ROOT    /usr/share/doc/weewx/
Examples        EXAMPLE_ROOT    /usr/share/doc/weewx/examples/
User directory                /usr/share/weewx/user

then I try to upgrade the version I have to the version 4 : /etc/weewx# dpkg -i python-weewx_4.0.0-1_all.deb

My issue is, the upgrade do not use my old "weewx.conf" and will create a new conf file...

Is there something I've missed?

Regards,
YMartin.com/meteo

p q

unread,
Sep 25, 2022, 12:13:34 PM9/25/22
to weewx...@googlegroups.com
The upgrade should ask which to use and leave a copy of the old one as weewx.conf-4.8.0 in ./etc/weewx directory

--
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/4d54b085-9c69-47b1-a6a5-58bee4b35e92n%40googlegroups.com.


--
Peter Quinn
(415)794-2264
Message has been deleted

Yves Martin

unread,
Sep 25, 2022, 9:02:45 PM9/25/22
to weewx-user
it does not. See what I did before in the previous message. I believe I forget something.

YMScreen Shot 2022-09-25 at 9.02.07 PM.png

gary....@gmail.com

unread,
Oct 2, 2022, 12:13:16 PM10/2/22
to weewx-user
Are you using / as the WEEWX_ROOT?
That would be the problem.
Look at the exiting/old weewx.conf and change the WEEWX_ROOT to that old value.

Mine, for example is
# Root directory of the weewx data file hierarchy for this station
WEEWX_ROOT = /home/weewx

jterr...@gmail.com

unread,
Oct 2, 2022, 2:09:28 PM10/2/22
to weewx-user
To Yves Martin : this is the way I do when I need to move my weewx installation on a fresh system. It is the reverse of your method, and it works very well :

1) in the new system, install a fresh "empty" version of weewx. When asked for the location, longitude/latitude, and other information, enter anything you want, these settings will be overwritten later.
2) stop the weewx service
3) copy (and overwrite for existing files) all the data files of your previous weewx installation in the new system : sqlite database file, weewx.conf, all skins and the content of the user directory. 

restart the weewx service and it should work.

jterr...@gmail.com

unread,
Oct 2, 2022, 2:26:15 PM10/2/22
to weewx-user
Additionnal note : since you want to move and upgrade your weewx version, you can first use the method above by installing a fresh version of weewx 3.9.2 , moving your old data, and then perform the upgrade to version 4.8.
Reply all
Reply to author
Forward
0 new messages