{"id":38302669,"url":"https://github.com/bbusse/compost-sensor","last_synced_at":"2026-01-17T02:24:51.000Z","repository":{"id":207393633,"uuid":"719130958","full_name":"bbusse/compost-sensor","owner":"bbusse","description":"esphome-based farming sensors","archived":false,"fork":false,"pushed_at":"2025-06-23T20:42:00.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-23T21:27:19.861Z","etag":null,"topics":["compost","esp32","esphome","farming","gardening","home-assistant","hot-composting","humidity","monitoring","sensor","temperature","weather","weather-station"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bbusse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2023-11-15T14:18:12.000Z","updated_at":"2025-06-23T20:42:04.000Z","dependencies_parsed_at":"2025-06-23T21:22:42.860Z","dependency_job_id":"c946b0f2-6deb-4c0d-9267-4eb17858aef9","html_url":"https://github.com/bbusse/compost-sensor","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"3d66c50e64f0285e29bfe19193d19edea4862fb5"},"previous_names":["bbusse/compost-sensor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bbusse/compost-sensor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbusse%2Fcompost-sensor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbusse%2Fcompost-sensor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbusse%2Fcompost-sensor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbusse%2Fcompost-sensor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbusse","download_url":"https://codeload.github.com/bbusse/compost-sensor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbusse%2Fcompost-sensor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T00:50:05.742Z","status":"online","status_checked_at":"2026-01-17T02:00:07.808Z","response_time":85,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["compost","esp32","esphome","farming","gardening","home-assistant","hot-composting","humidity","monitoring","sensor","temperature","weather","weather-station"],"created_at":"2026-01-17T02:24:50.448Z","updated_at":"2026-01-17T02:24:50.987Z","avatar_url":"https://github.com/bbusse.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"This repository contains recipes for building software for embedded systems. While the range of applications is manifold,\nthe examples given here relate to application for gardening / farming.  \n\nIt builds an ESP32 firmware in a [container](https://github.com/bbusse/esphome-build) providing an [ESPHome](https://esphome.io/) build environment  \n\nConfiguration files for the firmware target are kept in a [seperate repository](https://github.com/bbusse/esphome-cfg) and fetched during build  \n\nDifferent kinds of sensors are used for various applications, mostly for measuring temperature and humidity but also\natmospheric pressure and fine dust where applicable\n\n## Build\n### Create an `argfile.conf`\nThis file must contain all the necessary variables  \nAn example is given below, adjust to your needs\n```\nWIFI_SSID=\"farm-nerds\"\nWIFI_PASSPHRASE=\"farm-nerds-passphrase\"\nHA_API_KEY=\"6C6eGlbYMw1sEYlURtpIOquRlSIk58sq9Bz46m5XDsk=\"\nHA_OTA_PASSWORD=\"LjwgwKMVvRlMNWom68T/lA6nR5AwFmqA\"\n```\nTo create an individual random HA_API_KEY\n```\n# Create key\nhead -c32 /dev/random | uuencode -m \n```\n### Build on Linux/BSD\nConfiguration yaml files for ESPHome need to be supplied as build argument  \nand are fetched from [esphome-cfg](https://github.com/bbusse/esphome-cfg)  \n  \n#### Compost\nDS18B20 / BME280\n```\n$ podman build . -t compost-0 --build-arg-file=argfile.conf --build-arg ESPHOME_CFG=compost-0.yaml\n```\n\n#### Greenhouse\nDHT22 / AM2302\n```\n$ podman build . -t greenhouse-1 --build-arg-file=argfile.conf  --build-arg ESPHOME_CFG=greenhouse-1.yaml\n```\n\n#### Seedling box\nBME280\n```\n$ podman build . -t seedling-box-0 --build-arg-file=argfile.conf --build-arg ESPHOME_CFG=\"seedling-box-0.yaml\"\n```\n\n#### Weather station\nBME680\n```\n$ podman build . -t weather --build-arg-file=argfile.conf --build-arg ESPHOME_CFG=weather.yaml\n```\n\n### Copy the built firmware from the running container to the local filesystem\n```\n$ export VARIANT=compost-0\n$ podman run localhost/${VARIANT}\n$ podman cp $(podman ps | awk '/'${VARIANT}'/ {print $1}'):/home/build/.esphome/build/${VARIANT}/.pioenvs/${VARIANT}/firmware-${VARIANT).bin .\n```\n\n### Build on Windows\n#### Install Python including pip\n[Python Download](https://www.python.org/ftp/python/3.13.0/python-3.13.0-amd64.exe)\n#### Install esphome\n```\n$ pip install esphome\n```\n\n## Flash firmware\nConnect your ESP32 for flashing\n```\n# Flash a bootloader\n$ esptool.py write_flash 0x0 ~/Downloads/esp32_bootloader_v4.bin\n# Flash the firmware\n$ esptool.py write_flash 0x10000 firmware.bin\n```\n\n## Resources\n### ESP32\n[ESP32](https://en.wikipedia.org/wiki/ESP32)  \n\n### ESPHome\n[ESPHome](https://esphome.io/)  \n[ESPHome Source Code](https://github.com/esphome/esphome)  \n[ESPHome Releases](https://github.com/esphome/esphome/releases)  \n[ESPHome Configuration Files](https://github.com/bbusse/esphome-cfg)  \n\n### Sensors\n[AS3935 Datasheet](https://github.com/sparkfun/SparkFun_AS3935_Lightning_Detector/blob/master/Documents/AS3935_Datasheet_EN_v2.pdf)  \n[BME280 Datasheet](https://www.bosch-sensortec.com/products/environmental-sensors/humidity-sensors-bme280/)  \n[BME680 Datasheet](https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme680-ds001.pdf)  \n[DHT22/AM2302 Datasheet](https://www.sparkfun.com/datasheets/Sensors/Temperature/DHT22.pdf)  \n[DS18B20 Datasheet](https://www.analog.com/media/en/technical-documentation/data-sheets/DS18B20.pdf)  \n[VEML6030](https://www.vishay.com/docs/84366/veml6030.pdf)  \n[SPH0645LM4H](https://www.knowles.com/docs/default-source/model-downloads/kas-700-0137-crawford-mic-on-flex-product-brief-rev29may19.pdf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbusse%2Fcompost-sensor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbusse%2Fcompost-sensor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbusse%2Fcompost-sensor/lists"}