install 5.2

168 views
Skip to first unread message

sali...@gmail.com

unread,
Nov 18, 2025, 2:47:15 PM (10 days ago) Nov 18
to weewx-user
hello everybody,
Are we required to install "Venv" for version 5.2?
thanks for all

Patrick from FRANCE

p q

unread,
Nov 18, 2025, 2:53:26 PM (10 days ago) Nov 18
to weewx...@googlegroups.com
The short answer is no. The longer answer is no, you don't install it, it's part of Python. But you might need/want to use it. It depends on which method you're using and which environment you're installing into.

--
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 visit https://groups.google.com/d/msgid/weewx-user/684df9a4-aa08-4401-b4bc-b555af254e69n%40googlegroups.com.


--
Peter Quinn
(415)794-2264

salinois

unread,
Nov 18, 2025, 2:59:29 PM (10 days ago) Nov 18
to weewx...@googlegroups.com

thanks

Up until now (I'm on version 5.1); I've done without it and I only have weewx on my RPi.

Patrick

vince

unread,
Nov 18, 2025, 3:01:49 PM (10 days ago) Nov 18
to weewx-user
See https://www.weewx.com/docs/5.2/usersguide/installing/#installation-methods for the various methods.   If you have 5.1 installed and are using the debian installation, you can easily upgrade to 5.2 if you wish.  See https://www.weewx.com/docs/5.2/quickstarts/debian/#upgrade for how to do that.

salinois

unread,
Nov 18, 2025, 3:52:28 PM (10 days ago) Nov 18
to weewx...@googlegroups.com

thanks Vince,

this a new installation on a RPi with a Hat BC Robotics.

And I installed also Trixies.

I'll do as usual; I haven't mastered Venv yet.

Patrick

Peter Fletcher

unread,
Nov 19, 2025, 9:00:38 AM (9 days ago) Nov 19
to weewx-user
If you are using a Sqlite database, you should have no problems with the default install of weewx 5.2, which does not require a venv. However, I had been thinking about switching to using Mariadb (~= MySQL) on a local networked server and found that this required (at least on my Pi running the Trixie version of Raspios) that an additional library (pyMySQL, I think) be pip installed. The strong recommendation, if you are going to do this, is to use a venv and install the additional library in the venv. For now, I have used the deprecated pip flag to add the additional library to the base system, and everything seems to work, but anyone who uses a MySQL database with weewx and plans to upgrade needs to know this.

salinois

unread,
Nov 19, 2025, 12:02:21 PM (9 days ago) Nov 19
to weewx...@googlegroups.com

hello Peter,

I always intalled with Sqlite my versions of Weewx, I will continue with that.

Thanks for the informations with MariaDb.

bye

Patrick

--
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.

John Smith

unread,
Nov 19, 2025, 5:57:33 PM (9 days ago) Nov 19
to weewx...@googlegroups.com
On Thu, 20 Nov 2025 at 01:00, 'Peter Fletcher' via weewx-user <weewx...@googlegroups.com> wrote:
additional library (pyMySQL, I think) be pip installed. The strong recommendation, if you are going to do this, is to 

It also can use the MySQLdb module which I installed from from a deb package...

salinois

unread,
Nov 23, 2025, 7:44:42 AM (5 days ago) Nov 23
to weewx...@googlegroups.com

Hello, 

In the end, I installed Weewx on Trixies using PIP, so in a virtual environment, because normally I was having problems with certain modules (bme280).

 I managed to get it working. I can see the website locally on my Raspberry Pi with file:///home/patrick/weewx-data/public_html/index.html.

 But remotely; It's not working. In Firefox, I'm using: http://192.168.0.10/home/patrick/weewx-data/public_html.

 When I look at the Apache logs, I see: 192.168.0.6 - - [23/Nov/2025:13:11:36 +0100] "GET /favicon.ico HTTP/1.1" 404 490 "http://192.168.0.10/home/patrick/weewx-data/public_html/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0".

 Here are my configurations; /home/patrick/weewx-data/weewx.conf (affected lines)

 [Station] # example, "http://" or "https://" station_url = http://192.168.0.10/home/patrick/weewx-data/public_html # The start of the rain year (1=January; 10=October, etc.).

 [StdReport] 

# Where the skins reside, relative to WEEWX_ROOT 

SKIN_ROOT = skins 

# Where the generated reports should go, relative to WEEWX_ROOT 

HTML_ROOT = public_html

 and in the apache config:

 /home/patrick/weex-data/util/apache/weewx.conf 

Alias ​​/weewx /home/patrick/weewx-data/public_html 

<Directory /home/patrick/weewx-data/public_html>

Options  FollowSymlinks

 AllowOverride None

 2 questions: where are apache logs located in venv environment? is my config good?

thanks

Patrick

--
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.

vince

unread,
Nov 23, 2025, 12:14:17 PM (5 days ago) Nov 23
to weewx-user
Your apache logs are wherever your os puts them. Weewx in a venv does not alter anything apache does.

Based on the info you provided try http://192.168.0.10/weewx for your URL and see if that works.  That looks like it should work on your LAN if apache is set up correctly.

salinois

unread,
Nov 23, 2025, 12:25:01 PM (5 days ago) Nov 23
to weewx...@googlegroups.com
hello Vince,

OK for the logs apache2.

When I try with http://192.168.0.10/weewx, I have old data before I go
to venv !!!

Is my config apache false ?

Do you have an example with weewx on venv ?

I can send my apache config.

Patrick

salinois

unread,
Nov 23, 2025, 1:00:24 PM (5 days ago) Nov 23
to weewx...@googlegroups.com

so,

I send screen copy installation directories:

I left my Apache installation from before switching to venv, should I delete it?

thanks

Patrick


Le 23/11/2025 à 18:14, vince a écrit :
arborescence-installation.jpg
arborescence-installation_2.jpg
arborescence-installation_3.jpg
arborescence-installation_4.jpg
arborescence-installation_5.jpg
arborescence-installation_6.jpg

vince

unread,
Nov 23, 2025, 1:28:49 PM (5 days ago) Nov 23
to weewx-user

salinois

unread,
Nov 24, 2025, 7:55:16 AM (4 days ago) Nov 24
to weewx...@googlegroups.com
Hello again, 
Just a clarification; on my previous installations, 
I always installed Apache2 using the Debian method: `apt install apache2`, which created the `/var/www/html` directory.
 After installing Weewx, there's `/var/www/html/weewx`.

 With a PIP installation, how should I proceed? Is there a specific order for installing Apache2.4?
 Because installing Weewx in `venv` created a `public_html` directory in `weewx-data`. 
Should I install Apache2 after installing Weewx?

I readed the document but I didn't found the base installation of apache and so in what order.
thanks

Patrick

salinois

unread,
Nov 24, 2025, 9:38:50 AM (4 days ago) Nov 24
to weewx...@googlegroups.com

hello Vince,

I found, it works.

Here are my configurations in the attachments.

/etc/apache2/conf-available/weewx.conf

and permissions directory

        17 drwxrwxr-x   3 root root  4096 18 nov.  21:26 home
    1669 drwxrwxrwx 18 patrick patrick 4096 23 nov.  22:03 patrick
661891 drwxrwxrwx 10 patrick patrick  4096 23 nov.  18:34 weewx-data

662287 drwxrwxrwx  4 patrick patrick  4096 24 nov.  15:36 public_html

thanks for your help

Patrick


Le 23/11/2025 à 19:28, vince a écrit :
weewx.conf
Reply all
Reply to author
Forward
0 new messages