Re: [weewx-development] Pressure resolution and BMP280

2018-08-21 Thread David Moore
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 ou

Re: [weewx-development] Pressure resolution and BMP280

2018-08-21 Thread David Moore
Right.. ok, makes sense now. The file from Craig Thom seems to do a lot of processing, and converting, and filtering/massaging... so wasn't clear on that point So I went back to the electricity example in the customizing guide, and it sort of makes sense now! I am not sure what all that ca

Re: [weewx-development] Pressure resolution and BMP280

2018-08-21 Thread David Moore
Thanks. I read above that Tom suggested new_valueTuple = weewx.units.convertStd((22.5, "degree_C", "group_temperature"), packet['usUnits']) However packet is undefined in eg, the electricity example. (I get an error) So I am doing pres_tuple = weewx.units.convertStd((hectopascals, "mbar", "g

Re: [weewx-development] Pressure resolution and BMP280

2018-08-22 Thread David Moore
So, thanks for all your help, here's what I finally have working. It's a little more generic, as in I can specify in weewx.conf where my BMP library is, what my sea level modifier is, and where I want to store the values, if at all weewx.conf [BMP280] col_pres = pressure col_temp = ''