bme680.py
Samples sensor data from a BME680
Writes to the ram as a JSON file.
THe json is updated/overwritten every X seconds
To later be used by Front ends and or lager databases.
- Python3 pip3
- bme680 library (install with
python3 -m pip install bme680
)
python3 -m pip install bme680
- Connect the BME680 sensor to your device.
- Clone and cd into it repo
git clone https://github.com/Tearran/its_bmp680.git && cd its_bmp680
- cd into the repo Run the
bme680.py
script as a background prossespython3 bme680.py&
- The sensor data will be logged to a JSON file (
/run/user/1000/its/bmp680.json
) every second.
bash script sets up develoment eviroment,
- starts bme680.py
- starts a local server to host the said json,
- genirates a index.html in the ram
- Html displays the data in a readalbel format via js
- navigate to http://localhost:8000/bme680.json
This will show the most recent JSON object in the bmp680.json
.
Contributions are welcome. If you find a bug or want to suggest an improvement, please open an issue or a pull request on GitHub.
This script is licensed under the MIT License. See the LICENSE
file for details.