Custom Driver Issues

55 views
Skip to first unread message

Wes Witt

unread,
Mar 8, 2025, 4:39:56 PM3/8/25
to weewx-user
I'm coming back to weewx after not using it for a while. So I'm using version 5.1, which operates differently from previous versions. I have a custom driver and I can't seem to get weewx to load/use the driver. I have placed my driver file into ~/weewx-data/bin/user and have modified my weewx.conf file to have the lines:

[wxHomeauto]
    driver = bin.user.wxHomeauto

When I run weewxd I get the error "ModuleNotFoundError: No module named 'bin'".

What is the correct usage in the weewx.conf to get it to load my driver?



python3 ~/weewx/src/weewxd.py
Using configuration file /home/weewx/weewx-data/weewx.conf
Traceback (most recent call last):
  File "/home/weewx/weewx/src/weewxd.py", line 226, in <module>
    main()
  File "/home/weewx/weewx/src/weewxd.py", line 121, in main
    engine = weewx.engine.StdEngine(config_dict)
  File "/home/weewx/weewx/src/weewx/engine.py", line 80, in __init__
    self.setupStation(config_dict)
  File "/home/weewx/weewx/src/weewx/engine.py", line 104, in setupStation
    __import__(driver)
ModuleNotFoundError: No module named 'bin'

Tom Keffer

unread,
Mar 8, 2025, 6:29:19 PM3/8/25
to weewx...@googlegroups.com
Just drop the "bin". You want 

[wxHomeauto]
    driver = user.wxHomeauto

-tk

--
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/ce29fbdb-2657-48fb-8fd6-1d2d9a61f290n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages