Hello Weewx Users,
I upgraded weewx tonight on my raspberry pi to version 5.0.2-1 and since doing so, I had some major reconfiguration issues to get things working again. I upgraded via apt upgrade -y and then choose Y when asked if I wanted to upgrade weewx.conf. I am thinking that I should have gone with the default of N there.
That said, I was able to fix most things myself by following instructions I found here:
I am using SDR for most of my data and BME280 for pressure.
The code that I am using for those products in /etc/weewx.conf looks like this:
[SDR]
# This section is for the software-defined radio driver.
# The driver to use
driver = user.sdr
cmd = /usr/bin/rtl_433 -M utc -F json -R 40
[[sensor_map]]
outTemp = temperature.04A5.Acurite5n1PacketV2
outHumidity = humidity.04A5.Acurite5n1PacketV2
windDir = wind_dir.04A5.Acurite5n1PacketV2
windSpeed = wind_speed.04A5.Acurite5n1PacketV2
rain_total = rain_total.04A5.Acurite5n1PacketV2
[Bme280wx]
i2c_port = 1
i2c_address = 0x77
usUnits = US
temperatureKeys = inTemp
temperature_must_have = ""
pressureKeys = pressure
pressure_must_have = outTemp
humidityKeys = inHumidity
humidity_must_have = ""
I already installed modules using apt:
apt install python3-smbus2
apt install python3-bme280
That said, I am not seeing any pressure data from bme280. I ran
weectl extension install bme280wx-master.zip and that added under [[Services]] this line:
data_services = user.bme280wx.Bme280wx
When I restart weewx, I see these errors with debug on:
2024-02-22T01:52:50.936407-05:00 weewxd[11578]: CRITICAL __main__: **** File "/etc/weewx/bin/user/bme280wx.py", line 58, in __init__
2024-02-22T01:53:00.940567-05:00 weewxd[11578]: DEBUG weewx.engine: Loading service user.bme280wx.Bme280wx
2024-02-22T01:53:00.941284-05:00 weewxd.py: bme280: bme280wx configuration {'i2c_port': '1', 'i2c_address': '0x77', 'usUnits': 'US', 'temperatureKeys': 'inTemp', 'temperature_must_have': '', 'pressureKeys': 'pressure', 'pressure_must_have': 'outTemp', 'humidityKeys': 'inHumidity', 'humidity_must_have': ''}
Line 58 of the above file is: self.bus = smbus2.SMBus(self.port) if that helps.
i2c
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- 77
Any ideas on this one? Things were working great before this upgrade. I am thinking that I need an updated version of the bme280 script but not sure what is wrong.
Thanks,
Jeff