Long time weewx user, had been running on a RPi3b with an AcuRite 5-in-1.
Currently, I'm trying to upgrade to an AcuRite Atlas w/ lightning sensor &
SDR & BME280 running weewx 4.5.1, also on a RPi3b.
weewx is running fine with Belchertown skin, SDR is working fine (except
trouble getting lightning to show up in reports). But for the life of me, I
can't get BME280 working with weewx. I have a Grove BME280 module.
I can see the module in i2c: port 1 0x76. I can run a bme280 test which
outputs:
Chip ID : 96
Version : 0
Temperature : 22.77 C
Pressure : 1014.92710409 hPa
Humidity : 49.1006560524 %
but dmesg is giving me:
pi@raspberrypi:/home $ dmesg | grep i2c
[ 5.337895] i2c /dev entries driver
[ 8.005092] i2c i2c-11: Added multiplexed i2c bus 12
[ 1354.600579] i2c i2c-11: Added multiplexed i2c bus 12
[ 5559.721893] i2c i2c-11: Added multiplexed i2c bus 12
[ 5826.137473] i2c i2c-11: Added multiplexed i2c bus 12
[ 9343.684685] i2c i2c-11: Added multiplexed i2c bus 12
[15604.355447] i2c i2c-11: Added multiplexed i2c bus 12
[15635.005391] i2c i2c-11: Added multiplexed i2c bus 12
[16065.782200] i2c i2c-11: Added multiplexed i2c bus 12
[18043.017208] OF: overlay: WARNING: memory leak will occur if overlay
removed, property: /soc/i2c@7e804000/status
My weewx.conf:
[SDR]
# This section is for the software-defined radio driver.
# The driver to use
driver = user.sdr
log_unknown_sensors = True
log_unmapped_sensors = True
cmd = rtl_433 -M utc -F json
path = /usr/local/bin
ld_library_path = /usr/local/lib
[[sensor_map]]
outTemp = temperature.0039.AcuriteAtlasPacket
outHumidity = humidity.0039.AcuriteAtlasPacket
windSpeed = wind_speed.0039.AcuriteAtlasPacket
windDir = wind_dir.0039.AcuriteAtlasPacket
UV = uv.0039.AcuriteAtlasPacket
rain_total = rain_total.0039.AcuriteAtlasPacket
radiation = lux.0039.AcuriteAtlasPacket
lightning_distance = strike_distance.0039.AcuriteAtlasPacket
strikes_total = strike_count.0039.AcuriteAtlasPacket
lux = lux.0039.AcuriteAtlasPacket
[[deltas]]
rain = rain_total
Lightning_Strike_count = strikes_count
##############################################################################
[BME280] # parautenbach bme280wx
[bme280wx]
i2c_port = 1
i2c_address = 0x76
usUnits = US
temperatureKeys = inTemp
temperature_must_have = outTemp
pressureKeys = pressure
pressure_must_have = outTemp
humidityKeys = inHumidity
humidity_must_have = outTemp
I'm ending up with additional [bme280wx] entries under weewx [engine]. So
when I try to run with these settings, weewx stops:
pi@raspberrypi:~ $ sudo weewxd
Traceback (most recent call last):
File "/usr/share/weewx/weewxd", line 264, in <module>
main()
File "/usr/share/weewx/weewxd", line 151, in main
engine = weewx.engine.StdEngine(config_dict)
File "/usr/share/weewx/weewx/engine.py", line 93, in __init__
self.loadServices(config_dict)
File "/usr/share/weewx/weewx/engine.py", line 161, in loadServices
obj = weeutil.weeutil.get_object(svc)(self, config_dict)
File "/usr/share/weewx/weeutil/weeutil.py", line 1119, in get_object
mod = __import__(module)
File "/usr/share/weewx/user/bme280wx.py", line 6, in <module>
import bme280
ModuleNotFoundError: No module named 'bme280'
If I comment out the bme280wx items, weewx runs fine. I've also tried some
of the adafruit bme280 modules / methods, but that also fails.
I'm wondering: does my BME280 module need something specific to being a
Grove branded module?
I'm still pretty green at all this Atlas SDR / BME280 (the old 5-in-1 was
more straightforward), and would greatly appreciate any pointers.
Cheers!
--
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/518a06ad-331a-46c8-8cd9-2a27ea8a7814n%40googlegroups.com.