GW1000 Ecowitt Gateway and WeeWx 5.0

610 views
Skip to first unread message

gert.a...@gmail.com

unread,
Aug 14, 2023, 5:03:23 PM8/14/23
to weewx-user
Hi
Is it possible to install the gateway with WeeWx 5.0

Thanks
Gert

vince

unread,
Aug 14, 2023, 7:44:12 PM8/14/23
to weewx-user
sure why wouldn't it be ?

gert.a...@gmail.com

unread,
Aug 15, 2023, 12:57:36 AM8/15/23
to weewx-user
Hi Vince
I followed the installation guide for the driver, but the installation used the folder structure from WeeWx version 4.

Rgds
Gert

Ian Millard

unread,
Aug 15, 2023, 2:52:05 AM8/15/23
to weewx...@googlegroups.com
How did you attempt the install? I am running version 5 with a pip installation. I am also running the Gateway driver and it installed seamlessly using weectl extension install [URL]

Sent from my iPad.

On 15 Aug 2023, at 05:57, gert.a...@gmail.com <gert.a...@gmail.com> wrote:

Hi Vince
--
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/99af5f5f-3f49-441d-acf0-e4006a1e734fn%40googlegroups.com.

gert.a...@gmail.com

unread,
Aug 15, 2023, 4:42:20 AM8/15/23
to weewx-user
Hi Ian
Thanks for looking.
I used this command to install WeeWx:

sudo apt install ./python3-weewx_5.0.0a24-a_all.deb


and this command to install GW1000


sudo weectl extension install https://github.com/gjr80/weewx-gw1000/releases/download/v0.5.0b5/gw1000-0.5.0b5.tar.gz


From syslog:

Aug 15 10:36:01 raspberrypi weewx[677] INFO weewx.engine: Loading station type GW1000 (user.gw1000)
Aug 15 10:36:01 raspberrypi weewx[677] CRITICAL __main__: Caught unrecoverable exception:
Aug 15 10:36:01 raspberrypi weewx[677] CRITICAL __main__:     ****  No module named 'user.gw1000'
Aug 15 10:36:01 raspberrypi weewx[677] CRITICAL __main__:     ****  Traceback (most recent call last):
Aug 15 10:36:01 raspberrypi weewx[677] CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd.py", line 149, in main
Aug 15 10:36:01 raspberrypi weewx[677] CRITICAL __main__:     ****      engine = weewx.engine.StdEngine(config_dict)
Aug 15 10:36:01 raspberrypi weewx[677] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 78, in __init__
Aug 15 10:36:01 raspberrypi weewx[677] CRITICAL __main__:     ****      self.setupStation(config_dict)
Aug 15 10:36:01 raspberrypi weewx[677] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 105, in setupStation
Aug 15 10:36:01 raspberrypi weewx[677] CRITICAL __main__:     ****      __import__(driver)
Aug 15 10:36:01 raspberrypi weewx[677] CRITICAL __main__:     ****  ModuleNotFoundError: No module named 'user.gw1000'
Aug 15 10:36:01 raspberrypi weewx[677] CRITICAL __main__:     ****  Exiting.
Aug 15 10:36:01 raspberrypi systemd[1]: weewx.service: Main process exited, code=exited, status=1/FAILURE
Aug 15 10:36:01 raspberrypi systemd[1]: weewx.service: Failed with result 'exit-code'.


I have attached the weewx.conf file


Gert




weewx.conf

Rainer Lang

unread,
Aug 15, 2023, 5:18:22 AM8/15/23
to weewx...@googlegroups.com

I think a simple solution could be to extract the file gw1000.py from the gw1000-0.5.0b5.tar.gz archive and copy it to /usr/share/weewx/user

gert.a...@gmail.com

unread,
Aug 15, 2023, 7:25:03 AM8/15/23
to weewx-user
Hi Rainer
I did as you suggested and it seems to work now. gw1000.py was not there, so something went wrong during the installation.

A couple of questions:
1) I used sudo to install and WeeWX is running under root. Should I just use the user login(pi), to install WeeWx?
2) Is the weewx.sdb compatible with Version 5?
3) Should I use pip to install or sudo apt install ./python3-weewx_5...., as I did

Thanks for helping

Rgds
Gert

vince

unread,
Aug 15, 2023, 7:29:42 AM8/15/23
to weewx-user
On Tuesday, August 15, 2023 at 2:18:22 AM UTC-7 Rainer Lang wrote:

I think a simple solution could be to extract the file gw1000.py from the gw1000-0.5.0b5.tar.gz archive and copy it to /usr/share/weewx/user


Agree. That worked here. But....there does seem to be a bug in either weewx or Gary's driver however.   You shouldn't have to copy it from /etc/weewx/user to /usr/share/weewx/user manually.  It should install to the correct place and work fine.

FWIW - I'd also use a current beta (5.0b10) from http://weewx.com/downloads/development_versions/ if you want to go with a .deb installation.

sudo weectl extension install /var/tmp/gw1000-0.5.0b5.tar.gz
sudo weectl extension list

sudo weectl station reconfigure
(note that GW1000 does 'not' appear in the driver picks)

sudo cp -r /etc/weewx/bin/user/* /usr/share/weewx/user

sudo weectl station reconfigure
(note GW1000 'does' appear now - so pick it and answer the questions)

 PYTHONPATH=/usr/share/weewx python3 -m user.gw1000 --test-driver
(it worked here)

vince

unread,
Aug 15, 2023, 7:38:45 AM8/15/23
to weewx-user
Looks like a bug likely in the weewx beta .deb file to me...

If I install weewx using pip the driver works without copying anything into place....

source ~/weewx-venv/bin/activate

weectl extension install /var/tmp/gw1000-0.5.0b5.tar.gz

weectl extension list
(gw1000 is there)

weectl station reconfigure
(answer the questions)

PYTHONPATH=~/weewx-data/bin python3 -m user.gw1000 --test-driver

Rainer Lang

unread,
Aug 15, 2023, 9:23:10 AM8/15/23
to weewx...@googlegroups.com

see inline below

On 15.08.2023 13:25, gert.a...@gmail.com wrote:
Hi Rainer
I did as you suggested and it seems to work now. gw1000.py was not there, so something went wrong during the installation.

A couple of questions:
1) I used sudo to install and WeeWX is running under root. Should I just use the user login(pi), to install WeeWx?
when you are acting as user pi, you need root rights - hence you use sudo ....
installing weewx as any user, root or any other, hasn't been an issue so far (afaik)

2) Is the weewx.sdb compatible with Version 5?

I don't think the database type has changed (still either a sqlite3 database or a MySQL database, and the weewx.sdb is/was a sqlite3 database)
- and you will probably still use the wview_extended database schema
what does weewx show when you use your "old" weewx.sdb in /var/lib/weewx ?
if you can see you historical data, all is fine 😉

3) Should I use pip to install or sudo apt install ./python3-weewx_5...., as I did

as far as I know the general weewx install instructions are valid - you can use apt and pip as package managers, depending on installation type
see weewx documentation


gert.a...@gmail.com

unread,
Aug 15, 2023, 11:40:55 AM8/15/23
to weewx-user
Hi
Thanks for all the answers.

I just copied a 4.10.2 database to the Version 5 system and it's working fine.

I have just installed version 5 on a test system and I'll continue to test the installation methods that Vince mentioned.

Gert

steepleian

unread,
Aug 15, 2023, 11:44:39 AM8/15/23
to weewx...@googlegroups.com
With a pip install you don’t need sudo. Also did you run 

weectl station reconfigure 

to actually select the driver?
Then 
sudo systemctl restart weewx 
(sudo is needed in this instance).

Tom Keffer

unread,
Aug 17, 2023, 6:49:09 PM8/17/23
to weewx...@googlegroups.com
I tried this myself, and it worked fine.

Despite what the GW1000 README says, the current release is 0.4.2, not 0.5.0b5. It's possible the older version has the problem, but the younger version does not. Also, note that with V5, you can do the download and install in one command. So, you want

sudo weectl extension install https://github.com/gjr80/weewx-gw1000/releases/download/v0.4.2/gw1000-0.4.2.tar.gz


Afterwards, "weectl extension list" shows that it installed.


-tk



Tom Keffer

unread,
Aug 17, 2023, 11:59:12 PM8/17/23
to weewx...@googlegroups.com
Take that back. I was able to reproduce this problem. The extension is being installed in a non-standard spot. I'll look into it.

Chotechai Piyavongsiri

unread,
Sep 15, 2025, 11:00:50 AM (10 days ago) Sep 15
to weewx-user
Hi,
I've just replaced my broken Tempest with Fineoffset WH65B and GW1000. It seems all the links to gw1000 driver are dead.
Could someone point me to the right link? thanks.

steepleian

unread,
Sep 15, 2025, 12:40:48 PM (10 days ago) Sep 15
to weewx...@googlegroups.com
Message has been deleted
Message has been deleted

Chotechai Piyavongsiri

unread,
Sep 15, 2025, 9:58:10 PM (10 days ago) Sep 15
to weewx-user
Thanks a lot. I've successfully installed it.

Reply all
Reply to author
Forward
0 new messages