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.

Le dimanche 2 octobre 2022 à 20:09:28 UTC+2, jterr...@gmail.com a écrit :

> 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.
>
> Le dimanche 2 octobre 2022 à 18:13:16 UTC+2, gary....@gmail.com a écrit :
>
>> 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
>> On Sunday, September 25, 2022 at 9:02:45 PM UTC-4 Yves Martin wrote:
>>
>>> it does not. See what I did before in the previous message. I believe I 
>>> forget something.
>>>
>>> YM[image: Screen Shot 2022-09-25 at 9.02.07 PM.png]
>>>
>>> Le dimanche 25 septembre 2022 à 12 h 13 min 34 s UTC-4, 
>>> peterq...@gmail.com a écrit :
>>>
>>>> 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
>>>>
>>>> On Sun, Sep 25, 2022 at 8:01 AM Yves Martin <ve2...@gmail.com> wrote:
>>>>
>>>>> 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
>>>>>
>>>>> -- 
>>>>> 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
>>>>>  
>>>>> <https://groups.google.com/d/msgid/weewx-user/4d54b085-9c69-47b1-a6a5-58bee4b35e92n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>
>>>>
>>>> -- 
>>>> Peter Quinn
>>>> (415)794-2264 <(415)%20794-2264>
>>>>
>>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/808a9369-1672-48c5-909f-b411b9440167n%40googlegroups.com.

Reply via email to