bmp085 specify altitude - Raspberry Pi Forums


hello
l specify altitude of our weath sation make pressure reading more accurate.

i've found can can specify in bmpbackend.py script

doesn't seen change readings. i've managed make on personnal pi-powered weather station, don't know how on 1 not same script.

when try run script, gave me error :

code: select all

traceback (most recent call last):   file "bmpbackend.py", line 255, in <module>     bmp = bmp085()   file "bmpbackend.py", line 55, in __init__     self.i2c = adafruit_i2c(address, bus)   file "/home/pi/weather-station/adafruit_i2c.py", line 14, in __init__     self.bus = smbus.smbus(bus) ioerror: [errno 2] no such file or directory 
thank you

jerome

is i2c stuff enabled?

sudo apt-get install i2c-tools
i2cdetect -y 1


if not try enabling in sudo raspi-config


raspberrypi



Comments