Thanks for the kind words.

re: logging
I think you are looking for 
this, 
https://github.com/weewx/weewx/wiki/WeeWX-v4-and-logging#customizing-what-gets-logged
So adding the following should work.
[Logging]
  [[loggers]]
    [[[user.MQTTSubscribe]]]
      level = INFO      
Note, I usually do the reverse and only turn on 'DEBUG' for the modules I 
care about...

re: additional db/binding
I hadn't thought of this use case, so currently you can't. Because the 
WeeWX aggregation of loop packets into archive records, is leveraged I 
don't think this would be easy. Unless writing the loop data to a DB is 
what you want.
rich

On Saturday, 22 May 2021 at 13:40:35 UTC-4 vince wrote:

> Rich:
>
> I just installed the service and have it adding my outside room DS18b20 
> temperature sensor data to weewx via MQTT and it's very much simplified my 
> setup.  Many thanks !!!
>
> But...how do I turn the debugging logging off for your extension only ?   
> When I run weewx with debug=1 my log is filling quickly with lines like:
>
> May 22 10:13:28 debian weewx[23343] DEBUG user.MQTTSubscribe: (Service) 
> data-> final packet is 2021-05-22 10:13:29 PDT (1621703609): barometer: 
> 30.153,.........
>
> I'm guessing this has something to do with the new logging in recent 
> weewx, but I haven't kept up with how to tune that service by service.   
> Any pointers ?
>
> Note - I have a lot of MQTT stuff going on here if that matters.  My weewx 
> is publishing to MQTT so I can pick up the data in Home Assistant.  I have 
> a second weewx instance in docker doing the same for my Ecowitt setup.   I 
> have all kinds of other things publishing to MQTT as well.
>
> Secondary question: how would I get your extension to send 'some' things 
> it is subscribing to into a secondary weewx db ala 'data_binding = 
> whatever' ?   I know your extension won't create that db, but assuming it's 
> there already (mine is) how would I bind just 'some' subscribed topics to 
> the db of choice ?
>
> But the logging is the primary question.  I'm fine with using the extra 
> fields in the extended weewx schema if necessary.
>
> Thanks again for the extension, it 'massively' simplifies my setup for 
> getting secondary sources of information into my primary weewx setup !
>
>
>

-- 
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/7d3bd286-7b98-4c88-980d-cf895e0f67c0n%40googlegroups.com.

Reply via email to