How to hide these messages from log?

79 views
Skip to first unread message

Zed

unread,
Dec 2, 2025, 5:07:30 AM (4 days ago) Dec 2
to weewx-user

I had to upgrade my VEnv-installation from 4.9.1 to 5.2.0. 
Since then for every measurement i see a record like these in the log:

Dez 01 23:36:59 server weewxd.py[165343]: bme280: {'outHumidity': 84.0, 'outTemp': 2.6, 'windDir': 180.0, 'rain_total': 908.8, 'windSpeed': 0.0, 'outTempBatteryStatus': 1, 'dateTime': 1764628616, 'usUnits': 17, 'rain': None, 'pressure': 997.3836082289309, 'inTemp': 19.531694481620796, 'inHumidity': 48.77856343381041}
Dez 01 23:37:11 server weewxd.py[165343]: bme280: BME280 data compensated_reading(id=2e17ef34-6cf1-4a6c-9198-e2754bdbd3b3, timestamp=2025-12-01 22:37:11.402537UTC, temp=19.512 °C, pressure=997.33 hPa, humidity=49.07 % rH)
Dez 01 23:37:11 server weewxd.py[165343]: bme280: {'outHumidity': 84.0, 'outTemp': 2.6, 'windDir': 180.0, 'rain_total': 908.8, 'windSpeed': 0.0, 'outTempBatteryStatus': 1, 'dateTime': 1764628628, 'usUnits': 17, 'rain': 0.0, 'pressure': 997.3252012242718, 'inTemp': 19.511572013102704, 'inHumidity': 49.071948952003744}

No matter what debug-level is set.
Is there a switch to turn these messages off?

vince

unread,
Dec 2, 2025, 11:48:49 AM (4 days ago) Dec 2
to weewx-user
You didn't say which bme280 driver you are using, but if you are using the one from WJCarpenter there are a couple places in the new_loop_packet( ) routine that use loginf( ) to log every packet twice.  You could change that to logdbg( ) in each place to quiet it down to only logging if you have debug=1 in weewx.conf 

Zed

unread,
Dec 2, 2025, 12:45:44 PM (4 days ago) Dec 2
to weewx-user
Yes, it's bme280wx from WJCarpenter.
In ~weewx/weewx-data/bin/user/bme280wx.py I changed:
        # loginf('BME280 data %s' % bme280data)
        logdbg('BME280 data %s' % bme280data)

But no change (debug=0):

Dez 02 18:42:46 raspberrypi-W weewxd.py[394495]: bme280: {'outHumidity': 98.0, 'outTemp': 5.1, 'windDir': 135.0, 'rain_total': 910.0, 'windSpeed': 0.0, 'outTempBatteryStatus': 1, 'dateTime': 1764697363, 'usUnits': 17, 'rain': 0.0, 'pressure': 996.8794121453019, 'inTemp': 20.87991048009717, 'inHumidity': 47.00716895052753}
Dez 02 18:42:59 raspberrypi-W weewxd.py[394495]: bme280: BME280 data compensated_reading(id=90b874ac-5f0e-4dee-ab91-6ff37be85f0f, timestamp=2025-12-02 17:42:59.009837UTC, temp=20.905 °C, pressure=996.95 hPa, humidity=47.03 % rH)
Dez 02 18:42:59 raspberrypi-W weewxd.py[394495]: bme280: {'outHumidity': 98.0, 'outTemp': 5.1, 'windDir': 135.0, 'rain_total': 910.0, 'windSpeed': 0.0, 'outTempBatteryStatus': 1, 'dateTime': 1764697375, 'usUnits': 17, 'rain': 0.0, 'pressure': 996.9454680536317, 'inTemp': 20.905063962284476, 'inHumidity': 47.0306761168033}
Dez 02 18:43:10 raspberrypi-W weewxd.py[394495]: bme280: BME280 data compensated_reading(id=e62d5c77-9d93-45ca-a37c-f2050e454beb, timestamp=2025-12-02 17:43:10.939289UTC, temp=20.870 °C, pressure=996.95 hPa, humidity=47.02 % rH)

This looks to me, like the log-messages are written by  weewxd.py.

vince

unread,
Dec 2, 2025, 1:01:03 PM (4 days ago) Dec 2
to weewx-user
Edit the driver and restart weewx

Zed

unread,
Dec 2, 2025, 2:25:13 PM (4 days ago) Dec 2
to weewx-user

Off course, i did restart weewx ;-)

vince

unread,
Dec 2, 2025, 2:42:19 PM (4 days ago) Dec 2
to weewx-user
Then follow the old sysadmin motto of "when in doubt comment it out" and see if that helps any.

Zed

unread,
Dec 3, 2025, 12:30:46 PM (3 days ago) Dec 3
to weewx-user
Ok. Any suggestions?

Mark Fraser

unread,
Dec 3, 2025, 12:36:10 PM (3 days ago) Dec 3
to weewx...@googlegroups.com

Try my version which has logging fixed.

https://gitlab.com/mfraz74/bme280wx/


Zed

unread,
Dec 3, 2025, 4:45:44 PM (2 days ago) Dec 3
to weewx-user
Tanks alot, Mark.
Looks so much better!
I wonder why it was working before.
Reply all
Reply to author
Forward
0 new messages