Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andreiva/raspberry-pi-bme280
Raspberry Pi BME280 driver
https://github.com/andreiva/raspberry-pi-bme280
Last synced: about 1 month ago
JSON representation
Raspberry Pi BME280 driver
- Host: GitHub
- URL: https://github.com/andreiva/raspberry-pi-bme280
- Owner: andreiva
- Created: 2016-07-25T13:38:47.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-21T14:13:18.000Z (almost 8 years ago)
- Last Synced: 2024-08-02T16:34:06.432Z (4 months ago)
- Language: C
- Size: 11.7 KB
- Stars: 42
- Watchers: 11
- Forks: 22
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- my-awesome-starred - andreiva/raspberry-pi-bme280 - Raspberry Pi BME280 driver (C)
README
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}
```