{"id":16827492,"url":"https://github.com/chakflying/bme-sensors","last_synced_at":"2025-03-17T19:46:29.555Z","repository":{"id":155311626,"uuid":"585719483","full_name":"chakflying/bme-sensors","owner":"chakflying","description":"Rust program reading the BME688 sensor using the BSEC library.","archived":false,"fork":false,"pushed_at":"2023-10-17T08:34:12.000Z","size":240,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T07:09:05.063Z","etag":null,"topics":["bme688","iot","raspberry-pi","rust"],"latest_commit_sha":null,"homepage":"https://medium.com/@nelcc/monitor-air-quality-when-resin-3d-printing-with-a-raspberry-pi-and-gas-sensor-bme688-53de18ce55c","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chakflying.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-05T22:30:09.000Z","updated_at":"2024-01-02T22:23:59.000Z","dependencies_parsed_at":"2024-10-13T11:21:36.319Z","dependency_job_id":"059a1daf-a66a-47e2-862b-4b95fa1a1dd8","html_url":"https://github.com/chakflying/bme-sensors","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chakflying%2Fbme-sensors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chakflying%2Fbme-sensors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chakflying%2Fbme-sensors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chakflying%2Fbme-sensors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chakflying","download_url":"https://codeload.github.com/chakflying/bme-sensors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244102128,"owners_count":20398379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bme688","iot","raspberry-pi","rust"],"created_at":"2024-10-13T11:21:28.421Z","updated_at":"2025-03-17T19:46:29.524Z","avatar_url":"https://github.com/chakflying.png","language":"Rust","readme":"# BME688 Data Logger\n\nThis combines the BSEC library from Bosch and `bme68x-rust` to read and process data from the BME688 sensor, and send it to a graphite server. The project runs on a Raspberry Pi 4B with a armv7l 32-bit OS, with the sensor on a Adafruit breakout board connected with I2C.\n\n## Hardware\n\n- Raspberry Pi 4B\n- Adafruit BME688\n- STEMMA QT / Qwiic JST SH 4-pin Cable with Premium Female Sockets\n\n## Dependencies\n\n- Bosch BSEC Library `2.2.0`\n\n  Download from the [Bosch website](https://www.bosch-sensortec.com/software-tools/software/bme688-software/#Library). \n\n  Located in the dowloaded zip archive, `algo/normal_version/bin/RaspberryPi/PiThree_ArmV6/`, copy the files \n\n  - `bsec_datatypes.h`, \n  - `bsec_interface.h`,\n  - `libalgobsec.a` \n\n  into the project folder `lib/`.\n\n## Configuration\n\nThe Graphite server location is configured via environment variables. You can also create file `.env` in the project root, and input the graphite server location:\n\n```shell\nGRAPHITE_URL=\u003cyour-graphite-server\u003e:2003\n```\n\n## Usage\n\nBuild the program in release mode:\n\n```shell\ncargo build --release\n```\n\nThen the CLI program can be run in the background with:\n\n```shell\nnohup {project directory}/target/release/bme-sensors \u0026 disown\n```\n\nYou can also setup a systemd service such that it runs on startup.\n\n```shell\n[Unit]\nDescription=BME Sensors service\nAfter=network.target\nStartLimitIntervalSec=0\n\n[Service]\nType=simple\nRestart=always\nRestartSec=1\nEnvironment=\"RUST_LOG=warn\"\nUser=\u003ccurrent-user\u003e\nWorkingDirectory=/\u003cproject directory\u003e\nExecStart=/\u003cproject directory\u003e/target/release/bme-sensors\n\n[Install]\nWantedBy=multi-user.target\n```\n\nUse VictoriaMetrics Agent to buffer data in case of network issues:\n\n```shell\n[Unit]\nDescription=Victoria Metrics Agent service\nAfter=network.target\nStartLimitIntervalSec=0\n\n[Service]\nType=simple\nRestart=always\nRestartSec=1\nUser=root\nWorkingDirectory=/tmp\nExecStart=/usr/local/bin/vmagent -remoteWrite.url=http://\u003cserver-url\u003e:8428/api/v1/write -graphiteListenAddr=:2003\n\n[Install]\nWantedBy=multi-user.target\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchakflying%2Fbme-sensors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchakflying%2Fbme-sensors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchakflying%2Fbme-sensors/lists"}