weewx-interceptor - problem with direct invocation

54 views
Skip to first unread message

Zbigniew Perski

unread,
Aug 3, 2020, 6:01:10 AM8/3/20
to weewx-user
Hi,
I am completely new here trying to give second life of my oregon LW300 station.
I am running linux mint on an old Asus Eee pc (32 bit system). I installed weewx following instruction using debian package. Seems to work fine in simulation mode. I installed weewx-interceptor driver from github following the instruction.
In order to figure out how my LW300 bridge is communicating with pc I tried to run the driver directly like:
PYTHONPATH=bin python bin/user/interceptor.py --help
however, inmy system weewx was installed in
/usr/share/weewx/ and interceptor.py is located at: /usr/share/weewx/user
so I tried the command
 :/usr/share/weewx$ PYTHONPATH=bin python user/interceptor.py --help
Traceback (most recent call last):
  File "user/interceptor.py", line 302, in <module>
    import weewx.drivers
ImportError: No module named weewx.drivers

I guess something is wrongly linked or placed in wrong directory. But what is wrong here?

Please help!
Thanks in advance

Zbigniew








Tom Keffer

unread,
Aug 3, 2020, 8:44:39 AM8/3/20
to weewx-user
Try

PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/interceptor.py --help

--
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/83a61938-9518-4226-af38-bda291e73cedo%40googlegroups.com.

Zbigniew Perski

unread,
Aug 3, 2020, 8:56:51 AM8/3/20
to weewx-user

It works!!!  Thanks a lot Tom!


On Monday, August 3, 2020 at 2:44:39 PM UTC+2, Tom Keffer wrote:
Try

PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/interceptor.py --help

On Mon, Aug 3, 2020 at 3:01 AM Zbigniew Perski <zbignie...@gmail.com> wrote:
Hi,
I am completely new here trying to give second life of my oregon LW300 station.
I am running linux mint on an old Asus Eee pc (32 bit system). I installed weewx following instruction using debian package. Seems to work fine in simulation mode. I installed weewx-interceptor driver from github following the instruction.
In order to figure out how my LW300 bridge is communicating with pc I tried to run the driver directly like:
PYTHONPATH=bin python bin/user/interceptor.py --help
however, inmy system weewx was installed in
/usr/share/weewx/ and interceptor.py is located at: /usr/share/weewx/user
so I tried the command
 :/usr/share/weewx$ PYTHONPATH=bin python user/interceptor.py --help
Traceback (most recent call last):
  File "user/interceptor.py", line 302, in <module>
    import weewx.drivers
ImportError: No module named weewx.drivers

I guess something is wrongly linked or placed in wrong directory. But what is wrong here?

Please help!
Thanks in advance

Zbigniew








--
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...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages