ok Tom,
this is a fresh install, not upgrade, but When I put my other sd card
with 4.9 version, it is ok, so, it is not a issue with GPIO, I think.
And yes, the driver is here:
[ls -ail /etc/weewx/bin/user/
total 32
526359 drwxrwsr-x 3 weewx weewx 4096 6 mars 18:32 .
526358 drwxrwsr-x 3 weewx weewx 4096 7 févr. 22:15 ..
524298 -rw-r--r-- 1 weewx weewx 10990 8 févr. 13:05 byows.py
526361 -rw-rw-r-- 1 weewx weewx 541 7 févr. 22:15 extensions.py
526360 -rw-rw-r-- 1 weewx weewx 306 7 févr. 22:15 __init__.py
655698 drwxr-sr-x 2 weewx weewx 4096 6 mars 18:32 __pycache__]
and the lines for the driver in weewx.conf are:
*[Station]*
# Description of the station location, such as your town.
location = "Loulle, Jura (France)"
# Latitude in decimal degrees. Negative for southern hemisphere.
latitude = 46.2539
# Longitude in decimal degrees. Negative for western hemisphere.
longitude = 5.3168
# Altitude of the station, with the unit it is in. This is used only
# if the hardware cannot supply a value.
altitude = 700, meter # Choose 'foot' or 'meter' for unit
# Set to type of station hardware. There must be a corresponding stanza
# in this file, which includes a value for the 'driver' option.
*station_type = BYOWS*
and next*
*
*#################################################################################
[BYOWS]
* # This section is for the Raspberry Pi Bring Your Own Weather Station
driver.
# The driver to use*
driver = byows ===> is it the good syntax ? *in version 4.9 I have
user.byows
but now, there no more 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 20:21:34
CET; 3s ago
Docs: https://weewx.com/docs
Process: 29896 ExecStart=weewxd /etc/weewx/weewx.conf (code=exited,
status=1/FAILURE)
Main PID: 29896 (code=exited, status=1/FAILURE)
CPU: 337ms
mars 06 20:21:34 raspberrypi weewxd[29896]: self.setupStation(config_dict)
mars 06 20:21:34 raspberrypi weewxd[29896]: File
"/usr/share/weewx/weewx/engine.py", line 104, in setupStation
mars 06 20:21:34 raspberrypi weewxd[29896]: __import__(driver)
mars 06 20:21:34 raspberrypi weewxd[29896]: ModuleNotFoundError: *No
module named 'byows'*
mars 06 20:21:34 raspberrypi weewxd[29896]: CRITICAL __main__: ****
File "/usr/share/weewx/weewx/engine.py", line 104, in setupStation
mars 06 20:21:34 raspberrypi weewxd[29896]: CRITICAL __main__: ****
__import__(driver)
mars 06 20:21:34 raspberrypi weewxd[29896]: CRITICAL __main__: ****
ModuleNotFoundError: No module named 'byows'
mars 06 20:21:34 raspberrypi weewxd[29896]: CRITICAL __main__: ****
Exiting.
mars 06 20:21:34 raspberrypi systemd[1]: weewx.service: Main process
exited, code=exited, status=1/FAILURE
mars 06 20:21:34 raspberrypi systemd[1]: weewx.service: Failed with
result 'exit-code'.]*
*
Patrick*
*
*
*
*
*
Le 06/03/2024 à 19:23, Tom Keffer a écrit :
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 <salin...@gmail.com> 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
<http://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
sali...@gmail.com 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 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 weewx-user+unsubscr...@googlegroups.com.
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 weewx-user+unsubscr...@googlegroups.com.
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/CAPq0zEA%3DtRcHr84k%2BigR-nQtPbaxsZTHoV7u2rnED7wr2QYQWg%40mail.gmail.com
<https://groups.google.com/d/msgid/weewx-user/CAPq0zEA%3DtRcHr84k%2BigR-nQtPbaxsZTHoV7u2rnED7wr2QYQWg%40mail.gmail.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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/e38a1a56-974c-4fa8-804c-b095698ed7df%40gmail.com.