You should install your driver with "weectl extension install" if it is packaged correctly to support that. See https://github.com/weewx/weewx/wiki/Weewx-Driver-Development-Tips for how and use any of the available drivers as examples if you are packaging a driver you wrote.
But to answer, you add user things under ~/weewx-data so it would be ~/weewx-data/bin/user/xxx.py if you copy it into place manually. On Sunday, February 25, 2024 at 10:58:55 AM UTC-8 Remy Lavabre wrote: > Sorry, small error on my part, it's not "usr" that should be read but > "user" > > Le dimanche 25 février 2024 à 19:55:27 UTC+1, Remy Lavabre a écrit : > >> Hello, >> >> weewx is installed in virtual PIP mode -> ~/weewx-data/... and >> ~/weewx-venv/... >> I manually added the xxx.py driver for my weather station in the >> ~/weewx-data/bin/user directory. >> It is declared in weewx.conf as "driver = usr.xxx", as was done in >> version 4.x >> >> When launching weewxd, I get the message: >> File >> "/home/pi/weewx-venv/lib/python3.8/site-packages/weewx/engine.py", line >> 104, in setupStation >> __import__(driver) >> ModuleNotFoundError: *No module named 'usr'* >> >> I tried "driver = xxx.py" without success >> >> if I put my driver in >> ~/weewx-venv/lib/python3.8/site-packages/weewx/drivers/xxx.py and I put >> driver = xxx.py in weewx.conf there is no longer the error. >> >> Moral: Would it be possible to tell me the exact location where to put my >> driver in the user directory and how to declare it in weewx.conf ? >> >> Thank you... >> >> -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/27da7703-c374-47ee-8243-2df16421cc41n%40googlegroups.com.