You need to add the path for weewx files as well

sudo PYTHONPATH=/etc/weewx/bin:/usr/share/weewx python3
/etc/weewx/bin/user/owfs.py --help

On Mon, 8 Jun 2026 at 08:32, [email protected] <[email protected]>
wrote:

> My Pi (weewx 5.3  Trixie debian install) is working as far as reading the
> sensors into weewx, however when I try to use the command line in Glen's
> script, modified for my weewx install method:
> sudo PYTHONPATH=/etc/weewx/bin python3  /etc/weewx/bin/user/owfs.py --help
> it just gives
> Traceback (most recent call last):
>   File "/etc/weewx/bin/user/owfs.py", line 353, in <module>
>     import weewx
> ModuleNotFoundError: No module named 'weewx'
> I'm assuming I installed everything right as weewx can read the data from
> the six sensors, there are no errors in the syslog, however I can't use the
> utility to do a command line read of my sensors.
> Here's the pertinent portion of my weewx.conf:
> [OWFS]
>     driver = user.owfs
>     [[sensor_map]]
>         soilTemp1 = /uncached/28.57DE46D4C76B/temperature    #water ?
> shallow front
>         soilTemp2 = /uncached/28.8DEB46D4C269/temperature    #water ?
> deeper/bottom front
>         soilTemp3 = /uncached/28.F0B946D42768/temperature    #fridge
>         soilTemp4 = /uncached/28.E9A207D6013C/temperature    #freezer
>         extraTemp1 = /uncached/28.5F0FA70D0000/temperature    #attic
>         extraTemp2 = /uncached/28.E8C0A70D0000/temperature    #water
> deepest/east corner
>     [[sensor_type]]
>
> Any idea what I did wrong?
>
> Thanks
>
> --
> 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 [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/weewx-user/1d5806fa-8b58-461c-be06-3a762c76928en%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/1d5806fa-8b58-461c-be06-3a762c76928en%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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-user/CAGTinV6VyV%3DiQz-%2BF1qRvXQOYyEz6_35%3D2kvaapg9vm-2LYW2w%40mail.gmail.com.

Reply via email to