Skip to content

ToddGreenfield/raspberry-pi-bme280

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This piece of code was combined from several sources:

https://github.com/adafruit/Adafruit_BME280_Library https://cdn-shop.adafruit.com/datasheets/BST-BME280_DS001-10.pdf https://projects.drogon.net/raspberry-pi/wiringpi/i2c-library/

Tested on RASPBIAN JESSIE LITE https://www.raspberrypi.org/downloads/raspbian/

git clone https://github.com/andreiva/raspberry-pi-bme280.git

Dependencies

sudo apt-get install libi2c-dev i2c-tools wiringpi

Compiling

make

Copy binary to /usr/bin

sudo cp bme280 /usr/bin

Now you should be able to run the program, simply by typing

bme280

Output should look like this

{"sensor":"bme280", "humidity":54.36, "pressure":1011.89, "temperature":25.58, "altitude":9.23, "timestamp":1469568295}

About

Raspberry Pi BME280 driver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.7%
  • Makefile 1.3%