I am also interested in this, and here's what I've managed to do / not do.

I attached the sensor, and ran

sudo i2cdetect -y 1

to check it was there.

It was showing as position 0x77, which is decimal 119 just as in Craig's 
post above.

These parts were missing above, and I eventually figured out as he's 
running it as a service:

I then took his file, bmp280.py amd put it in /usr/share/weewx/user/
I then added to weewx.conf as above.

However i ALSO had to add this to the engine services part:

archive_services = weewx.engine.StdArchive, user.bmp280.bmp

(I was getting errors before that)

So, now weewx runs without error

In the logs I can see this:

Aug 21 17:27:38 WeatherPi weewx[1589]: manager: Daily summary version is 2.0
Aug 21 17:27:38 WeatherPi weewx[1589]: engine: Using binding 'wx_binding' 
to database 'weewx'
Aug 21 17:27:38 WeatherPi weewx[1589]: manager: Starting backfill of daily 
summaries
Aug 21 17:27:38 WeatherPi weewx[1589]: engine: Finished loading service 
weewx.engine.StdArchive
Aug 21 17:27:38 WeatherPi weewx[1589]: engine: Loading service user.bmp280.
bmp
Aug 21 17:27:38 WeatherPi weewx[1589]: engine: Finished loading service user
.bmp280.bmp
Aug 21 17:27:38 WeatherPi weewx[1589]: engine: Loading service weewx.restx.
StdStationRegistry
Aug 21 17:27:38 WeatherPi weewx[1589]: restx: StationRegistry: Registration 
not requested.
Aug 21 17:27:38 WeatherPi weewx[1589]: engine: Finished loading service 
weewx.restx.StdStationRegistry

However, nothing is getting written to db.

I tried this to check everything on the sensor was ok:

git clone https://github.com/adafruit/Adafruit_Python_GPIO.git
cd Adafruit_Python_GPIO 
sudo python setup.py install 
cd ../ 
git clone https://github.com/adafruit/Adafruit_Python_BME280.git 
cd Adafruit_Python_BME280 
python ./Adafruit_BME280_Example.py 
 

Temp      = 29.053 deg C 
Pressure  = 890.79 hPa 
Humidity  = 0.00 %



So, I'm stumped now.  Will let you know if I get it working, however I feel 
I'm going to need some help...









On Tuesday, 26 June 2018 20:15:21 UTC+2, Tim Urberg wrote:
>
> I know it's been a while, but just wondering if there's any update on 
> this, I was thinking of using this and wanted to make sure it worked before 
> buying one.
>
> Thanks!
> Tim
>
> On Saturday, April 8, 2017 at 6:35:33 AM UTC-5, Craig Thom wrote:
>>
>> col_pres should be "pressure. I read that part of the weewx 
>> documentation, but I didn't remember it right.
>>
>> The pressure from the BMP280 does not take elevation into account.
>>
>

Reply via email to