Custom install path weewx v5

118 views
Skip to first unread message

Copain

unread,
Feb 23, 2024, 11:30:53 AMFeb 23
to weewx-development
Many thanks to all of you for the continuous development of weewx.

I am trying to install weewx v5.0.2 to /home/test.
This does not seem to work, as the installer by default wants to use /home/USER/...

How can I pip install weewx-venv and weewx-data to a custom path, independent of the logged on system user?
Where can I change the default path?

Thank you.

Copain

unread,
Feb 23, 2024, 3:06:37 PMFeb 23
to weewx-development
Here my results of further install tests.

Install of weewx-venv to /home/test works as follows:
python3 -m venv /home/test/weewx-venv
source /home/test/weewx-venv/bin/activate
python3 -m pip install weewx

The provision of a new station with weectl station create did NOT work, as I found no way to add my custom path.
Depending on the logged on user, weewx-data is either generated in /home/USER or /root.
In a way, this approach does not seem to be consistently.

Did I overlook something to generate the station using a custom path?
Would it make sense to add a 'path option' to weewx utilities?

Tom Keffer

unread,
Feb 23, 2024, 6:42:13 PMFeb 23
to Copain, weewx-development
It's actually very simple:

weectl station create /home/test


--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/48799331-310b-4304-a2da-4b6a17e1413dn%40googlegroups.com.

Copain

unread,
Aug 1, 2024, 8:24:44 AMAug 1
to weewx-development
Tom, many thanks for your assistance. Creating a station works perfectly.

For reconfiguring a station, I noticed the option [--weewx-root=DIRECTORY], which probably could be used for a custom path.

However, I would like to come back to the issue re upgrading a station.

I tried all of these, none of which worked:
weectl station upgrade --what examples util /home/test
weectl station upgrade /home/test --what examples util
weectl station upgrade --examples-root=/home/test
weectl station upgrade --weewx-root=/home/test --what examples util

How is the correct syntax to upgade an existing station at a custom path?

Thank you.

Tom Keffer

unread,
Aug 1, 2024, 10:05:21 AMAug 1
to Copain, weewx-development
You almost got it! Try

weectl station upgrade --config=/home/test/weewx.conf

Copain

unread,
Aug 1, 2024, 10:14:30 AMAug 1
to weewx-development
Tom, big thanks again!

weectl station upgrade --config=/home/test/weewx.conf --what examples util

worked like a charm!

Reply all
Reply to author
Forward
0 new messages