I am running wjcarpenter service <https://gitlab.com/wjcarpenter/bme280wx> and
this is the output when running WeeWX directly. By the way, it was working
yesterday, but now nothing doing. Syslog output and [Engine] stanza
from weewx.conf is below:
Aug 5 23:21:28 raspberrypi weewx[1324] INFO __main__: Initializing weewx
version 4.5.1
Aug 5 23:21:28 raspberrypi weewx[1324] INFO __main__: Using Python 2.7.16
(default, Oct 10 2019, 22:02:15) #012[GCC 8.3.0]
Aug 5 23:21:28 raspberrypi weewx[1324] INFO __main__: Platform
Linux-5.10.52-v7+-armv7l-with-debian-10.10
Aug 5 23:21:28 raspberrypi weewx[1324] INFO __main__: Locale is
'en_US.UTF-8'
Aug 5 23:21:28 raspberrypi weewx[1324] INFO __main__: Using configuration
file /etc/weewx/weewx.conf
Aug 5 23:21:28 raspberrypi weewx[1324] INFO __main__: Debug is 1
Aug 5 23:21:28 raspberrypi weewx[1324] DEBUG __main__: Initializing engine
Aug 5 23:21:28 raspberrypi weewx[1324] INFO weewx.engine: Loading station
type SDR (user.sdr)
Aug 5 23:21:28 raspberrypi weewx[1324] INFO user.sdr: driver version is
0.78
Aug 5 23:21:28 raspberrypi weewx[1324] INFO user.sdr: sensor map is
{u'outTempBatteryStatus': u'battery.0222.AcuriteAtlasPacket', u'outTemp':
u'temperature.0222.AcuriteAtlasPacket', u'outHumidity':
u'humidity.0222.AcuriteAtlasPacket', u'windSpeed':
u'wind_speed.0222.AcuriteAtlasPacket', u'windDir':
u'wind_dir.0222.AcuriteAtlasPacket', u'UV': u'uv.0222.AcuriteAtlasPacket',
u'rain_total': u'rain_total.0222.AcuriteAtlasPacket', u'radiation':
u'lux.0222.AcuriteAtlasPacket', u'strikes_total':
u'strike_count.0222.AcuriteAtlasPacket', u'strike_distance':
u'strike_distance.0222.AcuriteAtlasPacket', u'lux':
u'lux.0222.AcuriteAtlasPacket', u'log_unknown_sensors': u'True',
u'log_unmapped_sensors': u'True'}
Aug 5 23:21:28 raspberrypi weewx[1324] INFO user.sdr: deltas is {u'rain':
u'rain_total', u'lightning_strike_count': u'strikes_total'}
Aug 5 23:21:28 raspberrypi weewx[1324] INFO user.sdr: startup process
'rtl_433 -M utc -F json'
Aug 5 23:21:28 raspberrypi weewx[1324] DEBUG user.sdr: start async reader
for stdout-thread
Aug 5 23:21:28 raspberrypi weewx[1324] DEBUG user.sdr: start async reader
for stderr-thread
Aug 5 23:21:28 raspberrypi weewx[1324] DEBUG weewx.engine: Loading service
weewx.engine.StdTimeSynch
Aug 5 23:21:28 raspberrypi weewx[1324] DEBUG weewx.engine: Finished
loading service weewx.engine.StdTimeSynch
Aug 5 23:21:28 raspberrypi weewx[1324] DEBUG weewx.engine: Loading service
user.bme280wx.Bme280wx
Aug 5 23:21:28 raspberrypi weewxd: bme280: bme280wx configuration
{u'i2c_port': u'1', u'i2c_address': u'0x76', u'usUnits': u'US',
u'pressureKeys': u'pressure', u'pressure_must_have': u'outTemp',
u'humidityKeys': u'inHumidity', u'humidity_must_have': u'',
u'temperatureKeys': u'inTemp', u'temperature_must_have': u''}
Aug 5 23:21:28 raspberrypi weewx[1324] INFO user.sdr: shutdown process
rtl_433 -M utc -F json
Aug 5 23:21:28 raspberrypi weewx[1324] DEBUG user.sdr: waiting for
stdout-thread
Aug 5 23:21:29 raspberrypi weewx[1324] DEBUG user.sdr: waiting for
stderr-thread
Aug 5 23:21:29 raspberrypi weewx[1324] DEBUG user.sdr: close stdout
Aug 5 23:21:29 raspberrypi weewx[1324] DEBUG user.sdr: close stderr
Aug 5 23:21:29 raspberrypi weewx[1324] DEBUG user.sdr: kill process
Aug 5 23:21:29 raspberrypi weewx[1324] CRITICAL __main__: Caught
unrecoverable exception:
Aug 5 23:21:29 raspberrypi weewx[1324] CRITICAL __main__: **** [Errno
121] Remote I/O error
Aug 5 23:21:29 raspberrypi weewx[1324] CRITICAL __main__: ****
Traceback (most recent call last):
Aug 5 23:21:29 raspberrypi weewx[1324] CRITICAL __main__: **** File
"/usr/share/weewx/weewxd", line 151, in main
Aug 5 23:21:29 raspberrypi weewx[1324] CRITICAL __main__: ****
engine = weewx.engine.StdEngine(config_dict)
Aug 5 23:21:29 raspberrypi weewx[1324] CRITICAL __main__: **** File
"/usr/share/weewx/weewx/engine.py", line 93, in __init__
Aug 5 23:21:29 raspberrypi weewx[1324] CRITICAL __main__: ****
self.loadServices(config_dict)
Aug 5 23:21:29 raspberrypi weewx[1324] CRITICAL __main__: **** File
"/usr/share/weewx/weewx/engine.py", line 161, in loadServices
Aug 5 23:21:29 raspberrypi weewx[1324] CRITICAL __main__: ****
obj = weeutil.weeutil.get_object(svc)(self, config_dict)
Aug 5 23:21:29 raspberrypi weewx[1324] CRITICAL __main__: **** File
"/usr/share/weewx/user/bme280wx.py", line 61, in __init__
Aug 5 23:21:29 raspberrypi weewx[1324] CRITICAL __main__: ****
self.calibration_params = bme280.load_calibration_params(self.bus,
self.address)
Aug 5 23:21:29 raspberrypi weewx[1324] CRITICAL __main__: **** File
"/usr/local/lib/python2.7/dist-packages/bme280/__init__.py", line 153, in
load_calibration_params
Aug 5 23:21:29 raspberrypi weewx[1324] CRITICAL __main__: ****
compensation_params.dig_T1 = read.unsigned_short(0x88)
Aug 5 23:21:29 raspberrypi weewx[1324] CRITICAL __main__: **** File
"/usr/local/lib/python2.7/dist-packages/bme280/reader.py", line 40, in
unsigned_short
Aug 5 23:21:29 raspberrypi weewx[1324] CRITICAL __main__: ****
return self._bus.read_word_data(self._address, register) & 0xffff
Aug 5 23:21:29 raspberrypi weewx[1324] CRITICAL __main__: **** File
"/usr/local/lib/python2.7/dist-packages/smbus2/smbus2.py", line 474, in
read_word_data
Aug 5 23:21:29 raspberrypi weewx[1324] CRITICAL __main__: ****
ioctl(self.fd, I2C_SMBUS, msg)
Aug 5 23:21:29 raspberrypi weewx[1324] CRITICAL __main__: ****
IOError: [Errno 121] Remote I/O error
Aug 5 23:21:29 raspberrypi weewx[1324] CRITICAL __main__: ****
Exiting.
[Engine]
# The following section specifies which services should be run and in
what order.
[[Services]]
prep_services = weewx.engine.StdTimeSynch
data_services = user.bme280wx.Bme280wx,
process_services = weewx.engine.StdConvert,
weewx.engine.StdCalibrate, weewx.engine.StdQC,
weewx.wxservices.StdWXCalculate
xtype_services = weewx.wxxtypes.StdWXXTypes,
weewx.wxxtypes.StdPressureCooker, weewx.wxxtypes.StdRainRater,
weewx.wxxtypes.StdDelta
archive_services = weewx.engine.StdArchive
restful_services = weewx.restx.StdStationRegistry,
weewx.restx.StdWunderground, weewx.restx.StdPWSweather,
weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS
report_services = weewx.engine.StdPrint, weewx.engine.StdReport
Thanks,
Anthony
On Thursday, August 5, 2021 at 7:35:35 PM UTC-4 gjr80 wrote:
> 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/915e760a-57fd-464d-a385-b88ab45c3afbn%40googlegroups.com.