An issue that someone here can help with - upgrade problem that made me revert back - ?
I have a custom version of weewx that I attempoted to upgrade from 4.10.2 to 5.0.0. I simply used sudo apt update sudo apt upgrade then answered "no" to all the questions about keeping using the new configuration files. It works perfectly except I have one problem. I need all logging to be in weewx.log (instead of syslog) and in a different directory instead of var/log. In previous updates I had searched my entire system for every instance of weewx.conf and updated all of them wherever they have var/log and var/log/syslog to the other directory and the name weewx.log. None of those changes to every weewx.conf file made any difference - and my config file still said 4.10.2 (why)? Since I could not figure out how to keep my logging in the same weewx.log in a different directory that var/log, I just did a full restopre to my system so I now have the old systrem Working perfectly but not upgraded. I want to get to 1.5 - but need the logging in weewx.log onlyand that file should be in a diffrerent directory - and to keep my same configuration but show and be actually 5.0.0 in stationregistry. How do I do that properly? On Tuesday, January 16, 2024 at 9:49:59 AM UTC-5 Tom Keffer wrote: > They look ok. > > I don't wish to sound cranky, but we put a lot of time into making the > install instructions bulletproof. Just follow the pip install instructions > <https://www.weewx.com/docs/5.0/quickstarts/pip/>. If you have a failure, > then come back and show us what happened. > > On Tue, Jan 16, 2024 at 5:44 AM Francesco Fasano <fvirg...@gmail.com> > wrote: > >> Point 5 refers to running weewx as a daemon. >> Apart from point 5, can you confirm that the points from number 1 to >> number 4 are fine? >> >> Il giorno martedì 16 gennaio 2024 alle 14:38:12 UTC+1 Tom Keffer ha >> scritto: >> >>> On Tue, Jan 16, 2024 at 5:19 AM Francesco Fasano <fvirg...@gmail.com> >>> wrote: >>> >>>> Thanks Tom, >>>> for the answer to tell the truth I'm carrying out tests on a virtual >>>> machine with Raspberry operating system with virtual box it could probably >>>> be as you say that there is some unusual hardware. >>>> I have a Raspberry Model 3 B+ and I performed my first installation >>>> with setup.py. Over time I updated Python to 3.9 and always updated Weewx. >>>> the weewx installation in my case is located in /home >>>> so if I didn't misunderstand I should do the following steps >>>> 1 - sudo apt update >>>> sudo apt install python3-pip -y >>>> sudo apt install python3-venv -y >>>> (do I have to do them from the home folder?) >>> >>> >>> No, these are system installs, so they can be done anywhere. >>> >>> 2 - # Create the virtual environment >>>> python3 -m venv ~/weewx-venv >>>> # Activate the WeeWX virtual environment >>>> source ~/weewx-venv/bin/activate >>>> # Install WeeWX into the virtual environment >>>> python3 -m pip install weewx >>>> >>>> 3 - weewxd --config=/home/weewx/weewx.conf >>>> >>>> 4 - # systems with systemd >>>> # This will run weekx as you, not root. If you prefer to run as >>>> # the root user, modify the weewx.service file. >>>> sudo cp /home/weewx/util/systemd/weewx.service /etc/systemd/system >>>> sudo systemctl daemon-reload >>>> sudo systemctl enable weewx >>>> sudo systemctl start weewx >>>> >>>> 5 - How do I start weewx version 5 when starting raspberry? with this? >>>> sudo sh ~/weewx-data/scripts/setup-daemon.sh >>>> >>> >>> I'm not sure what instructions you are following there, but the service >>> file /etc/systemd/system/weewx.service will cause weewx to start when the >>> system starts. >>> >> -- >> > 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/27cd8773-394f-4225-97c5-72146cc18d6bn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-user/27cd8773-394f-4225-97c5-72146cc18d6bn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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/3013432f-6a0e-4a6a-88ff-5ea3e9e1d18dn%40googlegroups.com.