Hi, Assume you are running this service <https://gitlab.com/wjcarpenter/bme280wx>? If so field inHumidity will only be added to the loop packet if field inTemp is already in the loop packet. I'm guessing here that the loop packets emitted by your WeeWX driver (eg the SDR driver) don't include the field inTemp so you are relying on the BME280 for inTemp. Since there seems to be some issues with getting the BME280 service to add the field inTemp to the loop packet this could explain the lack of inHumidity (though this does not explain why inTemp is not being populated and it is possible inHumidity is suffering from the same unknown problem). Suggest you change humidity_must_have = inTemp to humidity_must_have = "" to at least rule this cause out for inHumidity.
Also suggest you provide the output of running WeeWX directly <http://weewx.com/docs/usersguide.htm#Running_directly> as well as a startup log extract, this will make it easier to reconcile the loop packet contents across all WeeWX services not just in the BME280 service. You already seem to have debug = 1 in weewx.conf so leave that as is. Stop WeeWX and then run WeeWX directly <http://weewx.com/docs/usersguide.htm#Running_directly>. Let it run for an archive interval or two and then post the console output (LOOP: and REC: packets/records) and the log from when you started WeeWX making sure you capture the full WeeWX startup and the subsequent couple of archive intervals. Finally, could you provide a copy of your [Engine] stanza from weewx.conf. Gary On Friday, 6 August 2021 at 07:52:11 UTC+10 wxwatching wrote: > I have installed the BME280 sensor and have the drivers installed. I am > getting the pressure readings in the Weewx packets, but not inside humidity > or temperature. Here's what the config file looks like at present: > > [Bme280wx] > i2c_port = 1 > i2c_address = 0x76 > usUnits = US > pressureKeys = pressure > pressure_must_have = outTemp > humidityKeys = inHumidity > humidity_must_have = inTemp > temperatureKeys = inTemp > temperature_must_have = "" > > Sample of syslog output: > > Aug 5 17:49:48 raspberrypi weewx[4519] INFO weewx.restx: Wunderground-RF: > Published record 2021-08-05 17:49:43 EDT (1628200183) > Aug 5 17:49:48 raspberrypi weewx[4519] INFO weewx.restx: Wunderground-RF: > Published record 2021-08-05 17:49:43 EDT (1628200183) > Aug 5 17:49:57 raspberrypi weewxd: bme280: BME280 data > compensated_reading(id=024bee2b-a360-4562-9e73-b1c369673601, > timestamp=2021-08-05 17:49:57.407220, temp=29.708 °C, pressure=1011.61 hPa, > humidity=37.69 % rH) > Aug 5 17:49:57 raspberrypi weewxd: bme280: {u'outTempBatteryStatus': 0, > u'rain': 0.0, 'dateTime': 1628200193, u'windDir': 117.0, u'windSpeed': 2.0, > u'rain_total': 1.89, 'usUnits': 1} > Aug 5 17:49:57 raspberrypi weewxd: bme280: BME280 data > compensated_reading(id=75afbec5-c8b9-4258-843a-2775fb8473a7, > timestamp=2021-08-05 17:49:57.444378, temp=29.724 °C, pressure=1011.58 hPa, > humidity=37.69 % rH) > Aug 5 17:49:57 raspberrypi weewxd: bme280: {u'outTempBatteryStatus': 0, > u'rain': 0.0, 'dateTime': 1628200193, u'windDir': 117.0, u'windSpeed': 2.0, > u'rain_total': 1.89, 'usUnits': 1} > Aug 5 17:49:57 raspberrypi weewxd: bme280: BME280 data > compensated_reading(id=2e3feab2-2224-49c9-b63e-be2f07e01954, > timestamp=2021-08-05 17:49:57.475379, temp=29.724 °C, pressure=1011.58 hPa, > humidity=37.69 % rH) > Aug 5 17:49:57 raspberrypi weewxd: bme280: {u'outTempBatteryStatus': 0, > u'rain': 0.0, 'dateTime': 1628200193, u'windDir': 117.0, u'windSpeed': 2.0, > u'rain_total': 1.89, 'usUnits': 1} > Aug 5 17:49:58 raspberrypi weewx[4519] INFO weewx.restx: Wunderground-RF: > Published record 2021-08-05 17:49:53 EDT (1628200193) > Aug 5 17:49:59 raspberrypi weewx[4519] INFO weewx.restx: Wunderground-RF: > Published record 2021-08-05 17:49:53 EDT (1628200193) > Aug 5 17:50:07 raspberrypi weewxd: bme280: BME280 data > compensated_reading(id=606beb9c-6882-4ebc-a91f-55bda7826f3e, > timestamp=2021-08-05 17:50:07.372877, temp=29.795 °C, pressure=1011.59 hPa, > humidity=37.20 % rH) > Aug 5 17:50:07 raspberrypi weewxd: bme280: {u'UV': 1, u'lux': 43970, > u'outTempBatteryStatus': 0, u'radiation': 43970, 'dateTime': 1628200203, > u'windSpeed': 2.0, 'usUnits': 1} > Aug 5 17:50:07 raspberrypi weewxd: bme280: BME280 data > compensated_reading(id=f7bc9b5e-9c75-4c33-a6c9-78c351fe8a28, > timestamp=2021-08-05 17:50:07.404689, temp=29.795 °C, pressure=1011.53 hPa, > humidity=37.19 % rH) > Aug 5 17:50:07 raspberrypi weewxd: bme280: {u'UV': 1, u'lux': 43970, > u'outTempBatteryStatus': 0, u'radiation': 43970, 'dateTime': 1628200203, > u'windSpeed': 2.0, 'usUnits': 1} > Aug 5 17:50:07 raspberrypi weewxd: bme280: BME280 data > compensated_reading(id=aac9f9f0-edb4-44df-92ef-eabcbbf82f27, > timestamp=2021-08-05 17:50:07.434998, temp=29.806 °C, pressure=1011.58 hPa, > humidity=37.20 % rH) > Aug 5 17:50:07 raspberrypi weewxd: bme280: {u'UV': 1, u'lux': 43970, > u'outTempBatteryStatus': 0, u'radiation': 43970, 'dateTime': 1628200203, > u'windSpeed': 2.0, 'usUnits': 1} > Aug 5 17:50:08 raspberrypi weewx[4519] INFO weewx.restx: Wunderground-RF: > Published record 2021-08-05 17:50:03 EDT (1628200203) > Aug 5 17:50:09 raspberrypi weewx[4519] INFO weewx.restx: Wunderground-RF: > Published record 2021-08-05 17:50:03 EDT (1628200203) > Aug 5 17:50:17 raspberrypi weewxd: bme280: BME280 data > compensated_reading(id=37565396-6b77-417b-aa34-6b71cf5782aa, > timestamp=2021-08-05 17:50:17.331457, temp=29.760 °C, pressure=1011.61 hPa, > humidity=37.06 % rH) > Aug 5 17:50:17 raspberrypi weewxd: bme280: {u'pressure': > 29.872957020180873, u'outHumidity': 55.0, u'outTempBatteryStatus': 0, > 'dateTime': 1628200213, u'outTemp': 84.1, u'windSpeed': 2.0, 'usUnits': 1} > Aug 5 17:50:17 raspberrypi weewxd: bme280: BME280 data > compensated_reading(id=5e8a7cfe-37ba-43a5-88c9-bc08aadc9eb9, > timestamp=2021-08-05 17:50:17.365674, temp=29.760 °C, pressure=1011.61 hPa, > humidity=37.05 % rH) > Aug 5 17:50:17 raspberrypi weewxd: bme280: {u'pressure': > 29.872957020180873, u'outHumidity': 55.0, u'outTempBatteryStatus': 0, > 'dateTime': 1628200213, u'outTemp': 84.1, u'windSpeed': 2.0, 'usUnits': 1} > Aug 5 17:50:17 raspberrypi weewxd: bme280: BME280 data > compensated_reading(id=5bf23958-952e-4c34-891e-84e2cffc5aec, > timestamp=2021-08-05 17:50:17.407304, temp=29.765 °C, pressure=1011.62 hPa, > humidity=37.06 % rH) > Aug 5 17:50:17 raspberrypi weewxd: bme280: {u'pressure': > 29.873202061427115, u'outHumidity': 55.0, u'outTempBatteryStatus': 0, > 'dateTime': 1628200213, u'outTemp': 84.1, u'windSpeed': 2.0, 'usUnits': 1} > > Any thoughts on why I am not getting the inTemp or inHumidity readings in > the packet output? > > Regards, > Anthony > -- 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/6655a43b-3da1-4ac3-ac24-64bf474d08can%40googlegroups.com.
