owfs.py --sensors : "no module named weewx"

38 views
Skip to first unread message

messyp...@gmail.com

unread,
Jun 7, 2026, 6:32:05 PM (2 days ago) Jun 7
to weewx-user
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

Vince Skahan

unread,
Jun 7, 2026, 6:41:42 PM (2 days ago) Jun 7
to weewx-user
Look at your startup file(or run ps aux) to see what it does and basically duplicate that.

John Smith

unread,
Jun 7, 2026, 7:50:06 PM (2 days ago) Jun 7
to weewx...@googlegroups.com
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

--
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/1d5806fa-8b58-461c-be06-3a762c76928en%40googlegroups.com.

Messy Potamia

unread,
Jun 7, 2026, 10:03:04 PM (2 days ago) Jun 7
to weewx...@googlegroups.com
AH HA.
Thank you.
> You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/MkSobFbu0lc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/weewx-user/CAGTinV6VyV%3DiQz-%2BF1qRvXQOYyEz6_35%3D2kvaapg9vm-2LYW2w%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages