How to add BMP180 to WEEWX? I´m trying....

59 views
Skip to first unread message

Julio Morais

unread,
Dec 23, 2019, 9:08:23 PM12/23/19
to weewx-user
Hi !

I am not succeeding in installing the BMP180 sensor for reading and printing from WEEWX.
Phyton's reading is ok:

pi@raspberrypi:~/Adafruit-Raspberry-Pi-Python-Code/Adafruit_BMP085
$ sudo python Adafruit_BMP085_example.py

Temperature: 30.10 C

Pressure:    988.77 hPa

Altitude:    206.01 The following steps were:

https://tutorials-raspberrypi.com/raspberry-pi-and-i2c-air-pressure-sensor-bmp180/

Rename Adafruit_BMP085_example.py to : BMP180.py

a)Copy for user directory(Debian): /usr/share/weewx/user

b) Include in weewx.conf ....Engine...Services.....report_services = weewx.engine.StdPrint, weewx.engine.StdReport, user.BMP180.Barometer

sudo /etc/init.d/weewx stop

sudo /etc/init.d/weewx start

Don´t work and Apache stop working! Any help? Tks!

Greg Troxel

unread,
Dec 24, 2019, 8:48:18 AM12/24/19
to Julio Morais, weewx-user
Julio Morais <jmcm...@gmail.com> writes:

> Rename *Adafruit_BMP085_example.py* to : BMP180.py

I suspect that your problem is that there is a big difference between a
test program that writes to standard out and a weewx driver.

> a)Copy for user directory(Debian): /usr/share/weewx/user
>
> b) Include in weewx.conf ....Engine...Services.....report_services =
> weewx.engine.StdPrint, weewx.engine.StdReport, user.BMP180.Barometer

It would help to point out where you got the instructions to do that,
and probably ask the author.
Reply all
Reply to author
Forward
0 new messages