Missing code for UV-sensor-debug in wmr200.py (4.1.1)

51 views
Skip to first unread message

peredst...@gmail.com

unread,
Sep 26, 2020, 2:44:19 PM9/26/20
to weewx-user
All DEBUG_ .. = 1 to activate debug of sensor data. UV is not showing in syslog.
All of the below have the global-code but UVI:

# Prints respective packets individually.
DEBUG_PACKETS_ARCHIVE = 1
DEBUG_PACKETS_PRESSURE = 1
DEBUG_PACKETS_RAIN = 1
DEBUG_PACKETS_STATUS = 1
DEBUG_PACKETS_TEMP = 1
DEBUG_PACKETS_UVI = 1
DEBUG_PACKETS_WIND = 1


Suggested change (add):

        global DEBUG_PACKETS_UVI
        DEBUG_PACKETS_UVI = int(stn_dict.get('debug_packets_uvi', 1))

After the change the following is added to syslog (the 255-value should be 0 - this was why I was debugging):

Sep 26 17:42:15 RPi-3Bp-Arelien weewx[3863] DEBUG weewx.drivers.wmr200:   UV index:255

peredst...@gmail.com

unread,
Sep 26, 2020, 3:03:57 PM9/26/20
to weewx-user
This is also missing, for READS:

        global DEBUG_READS
        DEBUG_READS = int(stn_dict.get('debug_reads', 1))


Tom Keffer

unread,
Sep 26, 2020, 7:26:44 PM9/26/20
to weewx-user
Thanks. Commit 995d11

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/8211e6d3-78a7-4720-8139-07cf2e7a4980n%40googlegroups.com.

peredst...@gmail.com

unread,
Sep 27, 2020, 2:56:49 AM9/27/20
to weewx-user
Just happy to contribute to the greater good..

peredst...@gmail.com

unread,
Sep 27, 2020, 3:09:01 AM9/27/20
to weewx-user
Btw..

Why do I need to change in two places to get debug-info in the syslog? I thought that the thing was to just change in the beginning of the file.

First here:

DEBUG_PACKETS_COOKED = 0
# Prints raw pre-processed packets from console.
DEBUG_PACKETS_RAW = 1


Then here:

        global DEBUG_CONFIG_DATA
        DEBUG_CONFIG_DATA = int(stn_dict.get('debug_config_data', 0))
        global DEBUG_PACKETS_RAW
        DEBUG_PACKETS_RAW = int(stn_dict.get('debug_packets_raw', 1))



söndag 27 september 2020 kl. 01:26:44 UTC+2 skrev tke...@gmail.com:

Tom Keffer

unread,
Sep 27, 2020, 8:30:57 AM9/27/20
to weewx-user
You would have to ask the driver's author. I suspect it's just a belt-and-suspenders approach to making sure it has a proper value.

Reply all
Reply to author
Forward
0 new messages