Weewx crashes randomly (several times a day) · Issue #16 · 
jardiamj/BYOWS_RPi (github.com) 
<https://github.com/jardiamj/BYOWS_RPi/issues/16>
Op dinsdag 24 september 2024 om 12:58:30 UTC+2 schreef salinois:

> hello,
> I didn't do anything special. Here is the config of weewx.conf 
> A few lines 
>
> weewx.conf
>
> # This configuration file was created by ...
> version = 5.1.0
>
>  # 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
>
> [BYOWS]
>     # This section is for the Raspberry Pi Bring Your Own Weather Station 
> drive>
>
>     # The driver to use
>     driver = user.byows
>
>     # Loop Interval
>     loop_interval = 2.5
>
>     # Pin to which anemometer is connected, the DEFAULT is pin 5.
>     anemometer_pin = 5
>
>     # Pin to which rain bucket is connected, the DEFAULT is pin 6.
>     rain_bucket_pin = 6
>
>     # Port and address for sensor bme280, the DEFAULT are port=1 
> address=0x76
>     bme280_port = 1
>     bme280_address = 0x77
>
>     # Channel to which wind vane is connected to on MCP3008, The DEFAULT 
> is cha>
>     mcp3008_channel = 0
>
>     # Anemometer adjustment value, the DEFAULT is 1.18
>     anemometer_adjustment = 1.18
>
>     # Bucket Size in mm, the DEFAULT is 0.2794 mm.
>     bucket_size = 0.2794
>
>     # Anemometer radious in cm, the DEFAULT is 9.0 cm.
>     anemometer_radius_cm = 9.0
>
> and the location of the driver:
>
> ls -ail /etc/weewx/bin/user/
> total 216
> 400298 drwxrwsr-x 4 weewx weewx   4096  4 sept. 16:44 .
> 400297 drwxrwsr-x 3 weewx weewx   4096  4 sept. 13:08 ..
> 400154 -rw-rw-r-- 1 pi    weewx 183024  4 sept. 16:44 belchertown.py
> 400305 -rw-r--r-- 1 root  weewx  10990  4 sept. 13:37 byows.py
> 400300 -rw-rw-r-- 1 weewx weewx    571  4 sept. 13:08 extensions.py
> 400299 -rw-rw-r-- 1 weewx weewx    306  4 sept. 13:08 __init__.py
> 400379 drwxr-sr-x 3 pi    weewx   4096  4 sept. 16:44 installer
> 400302 drwxr-sr-x 2 weewx weewx   4096  4 sept. 17:00 __pycache__
>
> Patrick
>
> Le 23/09/2024 à 20:19, Guido Groetie a écrit :
>
> How did you solve it?
>
> Op zondag 22 september 2024 om 20:58:10 UTC+2 schreef salinois:
>
>> hello, I've had problems before but not several times a day. and I 
>> restart weewx.
>>
>> bye
>>
>> Patrick from FRANCE
>> Le 22/09/2024 à 18:25, Guido Groetie a écrit :
>>
>> I am running Weewx 5.1 on an rpi 4 with a BYOWS driver. It crashes 
>> several times a day at random times (weewx process stops somehow), below is 
>> the log file of a time where it crashes. I have created a crontab task that 
>> starts Weewx every hour (in case it has crashed and starts again) and that 
>> works, but then gaps appear, I can create that task every 5 minutes, but 
>> would rather get rid of the source of the problems and I can't figure out 
>> what is not going right now. Can anyone help me?
>>
>> Log:
>> Sep 22 11:11:32 byows-jim weewxd[71261]: INFO weewx.engine: Main loop 
>> exiting. Shutting engine down.
>> Sep 22 11:11:32 byows-jim weewxd[71261]: INFO weewx.engine: Shutting down 
>> StdReport thread
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__: Caught 
>> unrecoverable exception:
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     **** 
>>  list index out of range
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     **** 
>>  Traceback (most recent call last):
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     ****   
>>  File "/usr/share/weewx/weewxd.py", line 127, in main
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     ****     
>>  engine.run()
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     ****   
>>  File "/usr/share/weewx/weewx/engine.py", line 204, in run
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     ****     
>>  for packet in self.console.genLoopPackets():
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     ****   
>>  File "/etc/weewx/bin/user/byows_rpi.py", line 83, in genLoopPackets
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     ****     
>>  data = self.station.get_data()
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     ****     
>>         ^^^^^^^^^^^^^^^^^^^^^^^
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     ****   
>>  File "/etc/weewx/bin/user/byows_rpi.py", line 147, in get_data
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     ****     
>>  data["soilTemp1"] = self.get_soil_temp()
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     ****     
>>                      ^^^^^^^^^^^^^^^^^^^^
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     ****   
>>  File "/etc/weewx/bin/user/byows_rpi.py", line 129, in get_soil_temp
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     ****     
>>  return self.temp_probe.read_temp()
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     ****     
>>         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     ****   
>>  File "/etc/weewx/bin/user/byows_rpi.py", line 189, in read_temp
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     ****     
>>  success = self.crc_check(lines)
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     ****     
>>            ^^^^^^^^^^^^^^^^^^^^^
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     ****   
>>  File "/etc/weewx/bin/user/byows_rpi.py", line 180, in crc_check
>> Sep 22 11:11:32 byows-jim weewxd[71261]: Traceback (most recent call 
>> last):
>> Sep 22 11:11:32 byows-jim weewxd[71261]:   File 
>> "/usr/share/weewx/weewxd.py", line 226, in <module>
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     ****     
>>  return lines[0].strip()[-3:] == "YES"
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     ****     
>>         ~~~~~^^^
>> Sep 22 11:11:32 byows-jim weewxd[71261]:     main()
>> Sep 22 11:11:32 byows-jim weewxd[71261]:   File 
>> "/usr/share/weewx/weewxd.py", line 127, in main
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     **** 
>>  IndexError: list index out of range
>> Sep 22 11:11:32 byows-jim weewxd[71261]:     engine.run()
>> Sep 22 11:11:32 byows-jim weewxd[71261]:   File 
>> "/usr/share/weewx/weewx/engine.py", line 204, in run
>> Sep 22 11:11:32 byows-jim weewxd[71261]:     for packet in 
>> self.console.genLoopPackets():
>> Sep 22 11:11:32 byows-jim weewxd[71261]:   File 
>> "/etc/weewx/bin/user/byows_rpi.py", line 83, in genLoopPackets
>> Sep 22 11:11:32 byows-jim weewxd[71261]: CRITICAL __main__:     **** 
>>  Exiting.
>> Sep 22 11:11:32 byows-jim weewxd[71261]:     data = 
>> self.station.get_data()
>> Sep 22 11:11:32 byows-jim weewxd[71261]:           
>>  ^^^^^^^^^^^^^^^^^^^^^^^
>> Sep 22 11:11:32 byows-jim weewxd[71261]:   File 
>> "/etc/weewx/bin/user/byows_rpi.py", line 147, in get_data
>> Sep 22 11:11:32 byows-jim weewxd[71261]:     data["soilTemp1"] = 
>> self.get_soil_temp()
>> Sep 22 11:11:32 byows-jim weewxd[71261]:                         
>> ^^^^^^^^^^^^^^^^^^^^
>> Sep 22 11:11:32 byows-jim weewxd[71261]:   File 
>> "/etc/weewx/bin/user/byows_rpi.py", line 129, in get_soil_temp
>> Sep 22 11:11:32 byows-jim weewxd[71261]:     return 
>> self.temp_probe.read_temp()
>> Sep 22 11:11:32 byows-jim weewxd[71261]:           
>>  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> Sep 22 11:11:32 byows-jim weewxd[71261]:   File 
>> "/etc/weewx/bin/user/byows_rpi.py", line 189, in read_temp
>> Sep 22 11:11:32 byows-jim weewxd[71261]:     success = 
>> self.crc_check(lines)
>> Sep 22 11:11:32 byows-jim weewxd[71261]:               
>> ^^^^^^^^^^^^^^^^^^^^^
>> Sep 22 11:11:32 byows-jim weewxd[71261]:   File 
>> "/etc/weewx/bin/user/byows_rpi.py", line 180, in crc_check
>> Sep 22 11:11:32 byows-jim weewxd[71261]:     return lines[0].strip()[-3:] 
>> == "YES"
>> Sep 22 11:11:32 byows-jim weewxd[71261]:            ~~~~~^^^
>> Sep 22 11:11:32 byows-jim weewxd[71261]: IndexError: list index out of 
>> range
>> Sep 22 11:11:32 byows-jim systemd[1]: weewx.service: Main process exited, 
>> code=exited, status=1/FAILURE
>> Sep 22 11:11:32 byows-jim systemd[1]: weewx.service: Failed with result 
>> 'exit-code'.
>> Sep 22 11:11:32 byows-jim systemd[1]: weewx.service: Consumed 5min 
>> 32.737s CPU time.'
>>
>> -- 
>> 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/7e9bbb9e-89bd-4d19-b5b9-c88af1c40a01n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/7e9bbb9e-89bd-4d19-b5b9-c88af1c40a01n%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/6a71f09b-5425-49e0-b7d9-45ff33e7381fn%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/weewx-user/6a71f09b-5425-49e0-b7d9-45ff33e7381fn%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/b991a31e-f54b-44ce-bd8c-5910eb50ae45n%40googlegroups.com.

Reply via email to