I did find some google links where this message appears due to permission problems accessing the hardware. If you look at your error it also says NOPERMISSION. Try adding the user weewx runs as to group gpio via ‘sudo usermod -aG gpio weewx’ and see if it works now.
On Wednesday, March 6, 2024 at 10:23:59 AM UTC-8 Tom Keffer wrote: > If you did a package install, the driver byows.py should go in > /etc/weewx/bin/user. But, frankly, this should have been done for you if > you did an upgrade from V4 to V5. Take a look in /etc/weewx/bin/user and > see if it's in there. > > But, the error in the little snippet from your status report is a > different one. For some reason, your installation thinks it is not running > on a Raspberry Pi, so it cannot access the gpio pins. I'm not an expert on > that, but it may be due to a missing installation package. > > On Wed, Mar 6, 2024 at 10:13 AM salinois <[email protected]> wrote: > >> again me >> >> perhaps , I found >> >> Should I use this method now? >> >> [weectl extension install /home/pi/byows.py] >> >> and after: >> >> weectl station reconfigures --no-prompt --driver=weewx.drivers.byows >> >> >> Patrick >> Le 06/03/2024 à 18:47, salinois a écrit : >> >> hello, >> >> I restart my installation with version weewx 5.0.1 and I have these >> errors: >> >> on my version which works in 4.10.2, my "byows.py" driver is located >> here: [/usr/share/weewx/user/] but I saw that the tree structure has >> changed; where should I put my driver now? >> >> watch these errors: >> >> sudo systemctl status weewx.service >> ● weewx.service - WeeWX >> Loaded: loaded (/lib/systemd/system/weewx.service; enabled; vendor >> preset: enabled) >> Active: failed (Result: exit-code) since Wed 2024-03-06 18:32:05 >> CET; 2s ago >> Docs: https://weewx.com/docs >> Process: 11182 ExecStart=weewxd /etc/weewx/weewx.conf (code=exited, >> status=4) >> Main PID: 11182 (code=exited, status=4) >> CPU: 682ms >> >> mars 06 18:32:05 raspberrypi weewxd[11182]: CRITICAL weewx.engine: >> **** pin = self.pin_factory.pin(pin) >> mars 06 18:32:05 raspberrypi weewxd[11182]: CRITICAL weewx.engine: >> **** File "/usr/lib/python3/dist-packages/gpiozero/pins/pi.py", line >> 103, in pin >> mars 06 18:32:05 raspberrypi weewxd[11182]: CRITICAL weewx.engine: >> **** pin = self.pin_class(self, n) >> mars 06 18:32:05 raspberrypi weewxd[11182]: CRITICAL weewx.engine: >> **** File "/usr/lib/python3/dist-packages/gpiozero/pins/rpigpio.py", >> line 111, in __init__ >> mars 06 18:32:05 raspberrypi weewxd[11182]: CRITICAL weewx.engine: >> **** GPIO.setup(self.number, GPIO.IN, >> self.GPIO_PULL_UPS[self._pull]) >> mars 06 18:32:05 raspberrypi weewxd[11182]: CRITICAL weewx.engine: >> **** RuntimeError: Not running on a RPi! >> mars 06 18:32:05 raspberrypi weewxd[11182]: CRITICAL __main__:* Unable >> to load driver: Not running on a RPi!* >> mars 06 18:32:05 raspberrypi weewxd[11182]: CRITICAL __main__: **** >> Exiting... >> mars 06 18:32:05 raspberrypi systemd[1]: weewx.service: Main process >> exited, code=exited, status=4/NOPERMISSION >> mars 06 18:32:05 raspberrypi systemd[1]: weewx.service: Failed with >> result 'exit-code'. >> >> Patrick >> Le 08/02/2024 à 08:59, salinois a écrit : >> >> hello Matthew >> >> OK I understand if that works >> >> thanks also to vince. >> >> Now , I must to try the 5.0.0 version >> >> Patrick >> Le 07/02/2024 à 23:06, matthew wall a écrit : >> >> On Wednesday, February 7, 2024 at 3:36:55 PM UTC-5 [email protected] >> wrote: >> >> pi@raspberrypi:~ $ wget -qO - https://weewx.com/apt/weewx-python3.list | >> sudo tee /etc/apt/sources.list.d/weewx.list >> *deb [arch=all] http://weewx.com/apt/python3 >> <http://weewx.com/apt/python3> buster main ==> why Buster* >> >> >> 'buster' (i.e., debian 10) is the oldest release on which the deb package >> will install. >> >> if you look at the python2 configuration, it uses the label 'squeeze' >> (debian 6) >> >> the weewx packages are *really* stable with respect to dependencies, so >> the same package that works with debian 10 also works with debian 11 and >> debian 12. besides, i am too old and lazy to build a new deb and new apt >> repository for every major debian release that comes out :) >> >> -- >> 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 on the web visit >> https://groups.google.com/d/msgid/weewx-user/ca7d09e7-acd7-4115-ae62-7ac60a1ef82bn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-user/ca7d09e7-acd7-4115-ae62-7ac60a1ef82bn%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 on the web visit >> https://groups.google.com/d/msgid/weewx-user/320351a0-1a0a-4474-9c39-de81a0e01011%40gmail.com >> >> <https://groups.google.com/d/msgid/weewx-user/320351a0-1a0a-4474-9c39-de81a0e01011%40gmail.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 on the web visit https://groups.google.com/d/msgid/weewx-user/ac202062-8c40-42ce-a705-433e03a3fbdbn%40googlegroups.com.
