{"id":15290588,"url":"https://github.com/l3akage/dht_exporter","last_synced_at":"2026-04-28T21:01:50.062Z","repository":{"id":178851381,"uuid":"126330320","full_name":"l3akage/dht_exporter","owner":"l3akage","description":null,"archived":false,"fork":false,"pushed_at":"2019-11-02T09:19:14.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T08:17:16.058Z","etag":null,"topics":["dht11","dht22","prometheus-exporter","raspberry-pi"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/l3akage.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":"2018-03-22T12:15:15.000Z","updated_at":"2019-11-02T09:19:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"25c78e68-4637-4650-8f5e-01c335834891","html_url":"https://github.com/l3akage/dht_exporter","commit_stats":null,"previous_names":["l3akage/dht_exporter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/l3akage/dht_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l3akage%2Fdht_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l3akage%2Fdht_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l3akage%2Fdht_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l3akage%2Fdht_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/l3akage","download_url":"https://codeload.github.com/l3akage/dht_exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l3akage%2Fdht_exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32399010,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dht11","dht22","prometheus-exporter","raspberry-pi"],"created_at":"2024-09-30T16:08:42.872Z","updated_at":"2026-04-28T21:01:50.035Z","avatar_url":"https://github.com/l3akage.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dht_exporter\n\nPrometheus exporter for temperature/humidity data provided by DHT11/DHT22 sensors connected to a Raspberry PI GPIO\n\n# Usage\n\n```\n./dht_exporter\n```\n\n# Options\n\nName     | Default | Description\n---------|-------------|----\n--version || Print version information\n--listen-address | :9330 | Address on which to expose metrics.\n--path | /metrics | Path under which to expose metrics.\n--device | 22 | Sensor type, either 11 or 22 for DHT11/DHT22\n--names | names.yaml | File mapping GPIOs to names\n\n# Configuration\n\nThe names.yaml files contains the gpio and name to use\n```\nnames:\n  gpio: dht_sensor_01\n```\n\n# Example output\n```\n# HELP dht_humidity_percent Humidity\n# TYPE dht_humidity_percent gauge\ndht_humidity_percent{location=\"dht_sensor_01\"} 99.1\n# HELP dht_temp Air temperature (in degrees C)\n# TYPE dht_temp gauge\ndht_temp{location=\"dht_sensor_01\"} 24.6\n# HELP dht_up Scrape was successful\n# TYPE dht_up gauge\ndht_up{location=\"dht_sensor_01\"} 1\n```\n\n# Circuit\nConnect pin1 to 3.3V, pin2 with a pull-up resistor (4.7k – 10kΩ) to a gpio pin (i used 4.7k and gpio 4) and pin4 to GND on the PI.\n\n![Circuit](dht22_circuit.svg)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl3akage%2Fdht_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fl3akage%2Fdht_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl3akage%2Fdht_exporter/lists"}