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.

On Sun, Sep 27, 2020 at 12:09 AM [email protected] <
[email protected]> wrote:

> 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 [email protected]:
>
>> Thanks. Commit 995d11
>> <https://github.com/weewx/weewx/commit/995d11ad29bc7cea4f231abaa7e51c39ca60b2d9>
>>
>> On Sat, Sep 26, 2020 at 12:04 PM [email protected] <
>> [email protected]> wrote:
>>
>>> This is also missing, for READS:
>>>
>>>         global DEBUG_READS
>>>         DEBUG_READS = int(stn_dict.get('debug_reads', 1))
>>>
>>>
>>> lördag 26 september 2020 kl. 20:44:19 UTC+2 skrev [email protected]:
>>>
>>>> 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
>>>>
>>>> --
>>> 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/8211e6d3-78a7-4720-8139-07cf2e7a4980n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/weewx-user/8211e6d3-78a7-4720-8139-07cf2e7a4980n%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/1161a323-251a-4280-ae84-863235bac79cn%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/1161a323-251a-4280-ae84-863235bac79cn%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/CAPq0zEDtHhZdUJ%3DVCW41Fzdgmg0hNVracXX_gpowr0iXjbQKEQ%40mail.gmail.com.

Reply via email to