Hi Tom,

No, I didn't edit it. Perhaps it is shorter due that I made a restart. Here 
you have a full stop/start log of the service.

Are you looking for something specific? What should you expect?

For me the most important part is the line reporting the weewx.qc service 
value outside limits, and the fact that the instruction in apply_qc() that 
says 

data_dict[obs_type] = None

after that conditional doesn't really clean the value and the wrong 
observation in archived in the data base.

Is there any other thing I can do to reject that value once detected? 
Should I write my own service to discard those values?

Thank once again for your interest.

ene 10 07:39:25 meteopi systemd[1]: weewx.service: Consumed 3.297s CPU time.
ene 10 07:39:58 meteopi systemd[1]: Started weewx.service - WeeWX.
ene 10 07:39:58 meteopi weewxd[54432]: INFO __main__: Initializing weewxd 
version 5.1.0
ene 10 07:39:58 meteopi weewxd[54432]: INFO __main__: Command line: 
/usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
ene 10 07:39:58 meteopi weewxd[54432]: INFO __main__: Using Python: 3.11.2 
(main, Sep 14 2024, 03:00:30) [GCC 12.2.0]
ene 10 07:39:58 meteopi weewxd[54432]: INFO __main__: Located at:   
/usr/bin/python3
ene 10 07:39:58 meteopi weewxd[54432]: INFO __main__: Platform:     
Linux-6.6.62+rpt-rpi-v8-aarch64-with-glibc2.36
ene 10 07:39:58 meteopi weewxd[54432]: INFO __main__: Locale:       
'es_ES.UTF-8'
ene 10 07:39:58 meteopi weewxd[54432]: INFO __main__: Entry path:   
/usr/share/weewx/weewxd.py
ene 10 07:39:58 meteopi weewxd[54432]: INFO __main__: WEEWX_ROOT:   
/etc/weewx
ene 10 07:39:58 meteopi weewxd[54432]: INFO __main__: Config file: 
 /etc/weewx/weewx.conf
ene 10 07:39:58 meteopi weewxd[54432]: INFO __main__: User module: 
 /etc/weewx/bin/user
ene 10 07:39:58 meteopi weewxd[54432]: INFO __main__: Debug:        1
ene 10 07:39:58 meteopi weewxd[54432]: INFO __main__: User:         weewx
ene 10 07:39:58 meteopi weewxd[54432]: INFO __main__: Group:        weewx
ene 10 07:39:58 meteopi weewxd[54432]: INFO __main__: Groups:       weewx 
gpio i2c spi
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG __main__: loop_on_init: False
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG __main__: Initializing engine
ene 10 07:39:58 meteopi weewxd[54432]: INFO weewx.engine: Loading station 
type BYOWS (user.byows_rpi)
ene 10 07:39:58 meteopi weewxd[54432]: INFO user.byows_rpi: using driver 
BYOWS
ene 10 07:39:58 meteopi weewxd[54432]: INFO user.byows_rpi: driver version 
is 0.51
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Loading service 
weewx.engine.StdTimeSynch
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Finished loading 
service weewx.engine.StdTimeSynch
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: No services in 
service group data_services
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Loading service 
weewx.engine.StdConvert
ene 10 07:39:58 meteopi weewxd[54432]: INFO weewx.engine: StdConvert target 
unit is 0x1
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Finished loading 
service weewx.engine.StdConvert
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Loading service 
weewx.engine.StdCalibrate
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Finished loading 
service weewx.engine.StdCalibrate
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Loading service 
weewx.engine.StdQC
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Finished loading 
service weewx.engine.StdQC
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Loading service 
weewx.wxservices.StdWXCalculate
ene 10 07:39:58 meteopi weewxd[54432]: INFO weewx.wxservices: 
StdWXCalculate will use data binding wx_binding
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.manager: Daily summary 
version is 1.0
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Finished loading 
service weewx.wxservices.StdWXCalculate
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Loading service 
weewx.wxxtypes.StdWXXTypes
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Finished loading 
service weewx.wxxtypes.StdWXXTypes
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Loading service 
weewx.wxxtypes.StdPressureCooker
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Finished loading 
service weewx.wxxtypes.StdPressureCooker
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Loading service 
weewx.wxxtypes.StdRainRater
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Finished loading 
service weewx.wxxtypes.StdRainRater
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Loading service 
weewx.wxxtypes.StdDelta
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Finished loading 
service weewx.wxxtypes.StdDelta
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Loading service 
weewx.engine.StdArchive
ene 10 07:39:58 meteopi weewxd[54432]: INFO weewx.engine: Archive will use 
data binding wx_binding
ene 10 07:39:58 meteopi weewxd[54432]: INFO weewx.engine: Record generation 
will be attempted in 'hardware'
ene 10 07:39:58 meteopi weewxd[54432]: INFO weewx.engine: Using archive 
interval of 300 seconds (specified in weewx configuration)
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Use LOOP data in 
hi/low calculations: 1
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Finished loading 
service weewx.engine.StdArchive
ene 10 07:39:58 meteopi weewxd[54432]: DEBUG weewx.engine: Loading service 
weewx.restx.StdStationRegistry
ene 10 07:39:59 meteopi weewxd[54432]: INFO weewx.restx: StationRegistry: 
Registration not requested.
ene 10 07:39:59 meteopi weewxd[54432]: DEBUG weewx.engine: Finished loading 
service weewx.restx.StdStationRegistry
ene 10 07:39:59 meteopi weewxd[54432]: DEBUG weewx.engine: Loading service 
weewx.restx.StdWunderground
ene 10 07:39:59 meteopi weewxd[54432]: INFO weewx.restx: Wunderground: 
Posting not enabled.
ene 10 07:39:59 meteopi weewxd[54432]: DEBUG weewx.engine: Finished loading 
service weewx.restx.StdWunderground
ene 10 07:39:59 meteopi weewxd[54432]: DEBUG weewx.engine: Loading service 
weewx.restx.StdPWSweather
ene 10 07:39:59 meteopi weewxd[54432]: INFO weewx.restx: PWSweather: 
Posting not enabled.
ene 10 07:39:59 meteopi weewxd[54432]: DEBUG weewx.engine: Finished loading 
service weewx.restx.StdPWSweather
ene 10 07:39:59 meteopi weewxd[54432]: DEBUG weewx.engine: Loading service 
weewx.restx.StdCWOP
ene 10 07:39:59 meteopi weewxd[54432]: INFO weewx.restx: CWOP: Posting not 
enabled.
ene 10 07:39:59 meteopi weewxd[54432]: DEBUG weewx.engine: Finished loading 
service weewx.restx.StdCWOP
ene 10 07:39:59 meteopi weewxd[54432]: DEBUG weewx.engine: Loading service 
weewx.restx.StdWOW
ene 10 07:39:59 meteopi weewxd[54432]: INFO weewx.restx: WOW: Posting not 
enabled.
ene 10 07:39:59 meteopi weewxd[54432]: DEBUG weewx.engine: Finished loading 
service weewx.restx.StdWOW
ene 10 07:39:59 meteopi weewxd[54432]: DEBUG weewx.engine: Loading service 
weewx.restx.StdAWEKAS
ene 10 07:39:59 meteopi weewxd[54432]: INFO weewx.restx: AWEKAS: Posting 
not enabled.
ene 10 07:39:59 meteopi weewxd[54432]: DEBUG weewx.engine: Finished loading 
service weewx.restx.StdAWEKAS
ene 10 07:39:59 meteopi weewxd[54432]: DEBUG weewx.engine: Loading service 
weewx.engine.StdPrint
ene 10 07:39:59 meteopi weewxd[54432]: DEBUG weewx.engine: Finished loading 
service weewx.engine.StdPrint
ene 10 07:39:59 meteopi weewxd[54432]: DEBUG weewx.engine: Loading service 
weewx.engine.StdReport
ene 10 07:39:59 meteopi weewxd[54432]: INFO weewx.engine: 'pyephem' 
detected, extended almanac data is available
ene 10 07:39:59 meteopi weewxd[54432]: DEBUG weewx.engine: Finished loading 
service weewx.engine.StdReport
ene 10 07:39:59 meteopi weewxd[54432]: DEBUG weewx.engine: Loading service 
user.alarm.MyAlarm
ene 10 07:39:59 meteopi weewxd[54432]: INFO user.alarm: Alarm set for 
expression: 'windSpeed > 8'
ene 10 07:39:59 meteopi weewxd[54432]: DEBUG weewx.engine: Finished loading 
service user.alarm.MyAlarm
ene 10 07:39:59 meteopi weewxd[54432]: INFO __main__: Starting up weewx 
version 5.1.0
ene 10 07:39:59 meteopi weewxd[54432]: DEBUG weewx.engine: Station does not 
support reading the time
ene 10 07:39:59 meteopi weewxd[54432]: INFO weewx.engine: Using binding 
'wx_binding' to database 'weewx'
ene 10 07:39:59 meteopi weewxd[54432]: INFO weewx.manager: Starting 
backfill of daily summaries
ene 10 07:39:59 meteopi weewxd[54432]: INFO weewx.manager: Daily summaries 
up to date
ene 10 07:39:59 meteopi weewxd[54432]: INFO weewx.engine: Starting main 
packet loop.
ene 10 07:39:59 meteopi weewxd[54432]: DEBUG user.byows_rpi: Wind speed: 0.0
ene 10 07:39:59 meteopi weewxd[54432]: DEBUG user.byows_rpi: Read Wind Vane 
value: 0.23
ene 10 07:39:59 meteopi weewxd[54432]: DEBUG user.byows_rpi: Resolved Wind 
Vane Direction: 225.0
ene 10 07:40:04 meteopi weewxd[54432]: DEBUG user.byows_rpi: Wind speed: 0.0
ene 10 07:40:04 meteopi weewxd[54432]: DEBUG user.byows_rpi: Read Wind Vane 
value: 0.23
ene 10 07:40:04 meteopi weewxd[54432]: DEBUG user.byows_rpi: Resolved Wind 
Vane Direction: 225.0
ene 10 07:40:09 meteopi weewxd[54432]: DEBUG user.byows_rpi: Wind speed: 0.0
ene 10 07:40:09 meteopi weewxd[54432]: DEBUG user.byows_rpi: Read Wind Vane 
value: 0.22
ene 10 07:40:09 meteopi weewxd[54432]: DEBUG user.byows_rpi: Unknown Wind 
Vane value: 0.22
ene 10 07:40:09 meteopi weewxd[54432]: WARNING weewx.qc: 2025-01-10 
07:40:09 CET (1736491209) LOOP value 'rain' 8.096 outside limits (0.0, 
0.3937007874015748)

El viernes, 10 de enero de 2025 a las 1:48:21 UTC+1, Tom Keffer escribió:

> There should be a lot more than that. Did you try /var/log/syslog?
>
> On Thu, Jan 9, 2025 at 1:54 PM Francis Perea <[email protected]> 
> wrote:
>
>> Hi Tom,
>>
>> No, I just set 
>>
>> sudo journalctl -u weewx -f | tee /var/tmp/mylog
>>
>> And restarted WeeWX, and stop the log once I got the first message from QC
>>
>> Do you need any thing more about the log?
>>
>> Thanks once again for your support
>>
>> El jueves, 9 de enero de 2025 a las 22:51:14 UTC+1, Tom Keffer escribió:
>>
>>> Did you edit the log? There should be a lot more information than that.
>>>
>>> On Thu, Jan 9, 2025 at 11:58 AM Francis Perea <[email protected]> 
>>> wrote:
>>>
>>>> Hi Tom, thanks a lot for your reply.
>>>>
>>>> Here you have my log. 
>>>>
>>>> The debug lines regarding the wind speed and vane and the "Discarding 
>>>> Observation" lines are mine. I had to find where the code was getting, and 
>>>> that's why I think the apply_qc() function is not rejecting the wrong 
>>>> observation.
>>>>
>>>> By the moment I'm checking rain, but I've also made some testings with 
>>>> rainRate.
>>>>
>>>> Thanks once again for your help.
>>>>
>>>> ene 09 20:52:17 meteopi weewxd[28490]: INFO __main__: Starting up weewx 
>>>> version 5.1.0
>>>> ene 09 20:52:17 meteopi weewxd[28490]: DEBUG weewx.engine: Station does 
>>>> not support reading the time
>>>> ene 09 20:52:17 meteopi weewxd[28490]: INFO weewx.engine: Using binding 
>>>> 'wx_binding' to database 'weewx'
>>>> ene 09 20:52:17 meteopi weewxd[28490]: INFO weewx.manager: Starting 
>>>> backfill of daily summaries
>>>> ene 09 20:52:17 meteopi weewxd[28490]: INFO weewx.manager: Daily 
>>>> summaries up to date
>>>> ene 09 20:52:17 meteopi weewxd[28490]: INFO weewx.engine: Starting main 
>>>> packet loop.
>>>> ene 09 20:52:17 meteopi weewxd[28490]: DEBUG user.byows_rpi: Wind 
>>>> speed: 0.0
>>>> ene 09 20:52:17 meteopi weewxd[28490]: DEBUG user.byows_rpi: Read Wind 
>>>> Vane value: 0.23
>>>> ene 09 20:52:17 meteopi weewxd[28490]: DEBUG user.byows_rpi: Resolved 
>>>> Wind Vane Direction: 225.0
>>>> ene 09 20:52:22 meteopi weewxd[28490]: DEBUG user.byows_rpi: Wind 
>>>> speed: 0.0
>>>> ene 09 20:52:22 meteopi weewxd[28490]: DEBUG user.byows_rpi: Read Wind 
>>>> Vane value: 0.22
>>>> ene 09 20:52:22 meteopi weewxd[28490]: DEBUG user.byows_rpi: Unknown 
>>>> Wind Vane value: 0.22
>>>> ene 09 20:52:27 meteopi weewxd[28490]: DEBUG user.byows_rpi: Wind 
>>>> speed: 0.0
>>>> ene 09 20:52:27 meteopi weewxd[28490]: DEBUG user.byows_rpi: Read Wind 
>>>> Vane value: 0.23
>>>> ene 09 20:52:27 meteopi weewxd[28490]: DEBUG user.byows_rpi: Resolved 
>>>> Wind Vane Direction: 225.0
>>>> ene 09 20:52:32 meteopi weewxd[28490]: DEBUG user.byows_rpi: Wind 
>>>> speed: 0.0
>>>> ene 09 20:52:32 meteopi weewxd[28490]: DEBUG user.byows_rpi: Read Wind 
>>>> Vane value: 0.23
>>>> ene 09 20:52:32 meteopi weewxd[28490]: DEBUG user.byows_rpi: Resolved 
>>>> Wind Vane Direction: 225.0
>>>> ene 09 20:52:37 meteopi weewxd[28490]: DEBUG user.byows_rpi: Wind 
>>>> speed: 0.0
>>>> ene 09 20:52:37 meteopi weewxd[28490]: DEBUG user.byows_rpi: Read Wind 
>>>> Vane value: 0.22
>>>> ene 09 20:52:37 meteopi weewxd[28490]: DEBUG user.byows_rpi: Unknown 
>>>> Wind Vane value: 0.22
>>>> ene 09 20:52:37 meteopi weewxd[28490]: WARNING weewx.qc: 2025-01-09 
>>>> 20:52:38 CET (1736452358) LOOP value 'rain' 0.616 outside limits (0.0, 
>>>> 0.3937007874015748)
>>>> ene 09 20:52:37 meteopi weewxd[28490]: WARNING weewx.qc: Discarding 
>>>> observation
>>>> ene 09 20:52:42 meteopi weewxd[28490]: DEBUG user.byows_rpi: Wind 
>>>> speed: 0.0
>>>> ene 09 20:52:42 meteopi weewxd[28490]: DEBUG user.byows_rpi: Read Wind 
>>>> Vane value: 0.22
>>>> ene 09 20:52:42 meteopi weewxd[28490]: DEBUG user.byows_rpi: Unknown 
>>>> Wind Vane value: 0.22
>>>> ene 09 20:52:47 meteopi weewxd[28490]: DEBUG user.byows_rpi: Wind 
>>>> speed: 0.0
>>>> ene 09 20:52:47 meteopi weewxd[28490]: DEBUG user.byows_rpi: Read Wind 
>>>> Vane value: 0.22
>>>> ene 09 20:52:47 meteopi weewxd[28490]: DEBUG user.byows_rpi: Unknown 
>>>> Wind Vane value: 0.22
>>>> ene 09 20:52:52 meteopi weewxd[28490]: DEBUG user.byows_rpi: Wind 
>>>> speed: 0.0
>>>> ene 09 20:52:52 meteopi weewxd[28490]: DEBUG user.byows_rpi: Read Wind 
>>>> Vane value: 0.22
>>>> ene 09 20:52:52 meteopi weewxd[28490]: DEBUG user.byows_rpi: Unknown 
>>>> Wind Vane value: 0.22
>>>>
>>>> El jueves, 9 de enero de 2025 a las 20:42:24 UTC+1, Tom Keffer escribió:
>>>>
>>>>> We need the log to offer much advice. See *How to get a good, useful 
>>>>> log 
>>>>> <https://github.com/weewx/weewx/wiki/Help!-Posting-to-weewx-user#how-to-get-a-good-useful-log>*
>>>>>  in 
>>>>> the Wiki.
>>>>>
>>>>> Also, what field are you checking in the database? Field "rain"? Or, 
>>>>> "rainRate"?
>>>>>
>>>>> On Sun, Jan 5, 2025 at 1:16 PM Francis Perea <[email protected]> 
>>>>> wrote:
>>>>>
>>>>>> Hi all, 
>>>>>>
>>>>>> I'm having a problem with my rain sensor and I get frequent messages 
>>>>>> notifying values outside limits after QC.
>>>>>>
>>>>>> To be exact the function apply_qc in qc.py detects the wrong value 
>>>>>> and send a log like this:
>>>>>>
>>>>>> WARNING weewx.qc: 2025-01-05 17:45:00 CET (1736095500) Archive value 
>>>>>> 'rainRate' 13.841245901639354 outside limits (0.0, 3.0)
>>>>>>
>>>>>> As I understand the apply_qc function should remove the invalid 
>>>>>> reading after detecting it with the instruction 
>>>>>>
>>>>>> data_dict[obs_type] = None
>>>>>>
>>>>>> in qc.py line 72, but the wrong value is even so archived.
>>>>>>
>>>>>> Any clue or any other way to remove the wrong observation once it is 
>>>>>> detected by apply_qc?
>>>>>>
>>>>>> Thanks a lot in advance.
>>>>>>
>>>>>> -- 
>>>>>>
>>>>> You received this message because you are subscribed to the Google 
>>>>>> Groups "weewx-development" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>> send an email to [email protected].
>>>>>> To view this discussion visit 
>>>>>> https://groups.google.com/d/msgid/weewx-development/c37bfae1-5beb-4178-ab1b-69423c008d49n%40googlegroups.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/weewx-development/c37bfae1-5beb-4178-ab1b-69423c008d49n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "weewx-development" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>>
>>> To view this discussion visit 
>>>> https://groups.google.com/d/msgid/weewx-development/b5977ef9-7181-4ecc-9bf3-b609c4c9324en%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/weewx-development/b5977ef9-7181-4ecc-9bf3-b609c4c9324en%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "weewx-development" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>>
> To view this discussion visit 
>> https://groups.google.com/d/msgid/weewx-development/daa36ff8-4154-499d-9a03-9b89eef3703cn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-development/daa36ff8-4154-499d-9a03-9b89eef3703cn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-development/37fd0211-8769-46e8-9c5a-940119678e2bn%40googlegroups.com.

Reply via email to