{"id":19241784,"url":"https://github.com/l3akage/onewire_exporter","last_synced_at":"2025-04-21T09:32:29.461Z","repository":{"id":57637803,"uuid":"126366492","full_name":"l3akage/onewire_exporter","owner":"l3akage","description":"Prometheus exporter for DS18b20 1-wire sensors connected to a raspberry pi","archived":false,"fork":false,"pushed_at":"2021-01-24T19:50:19.000Z","size":98,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T12:03:56.228Z","etag":null,"topics":["ds18b20","onewire","prometheus-exporter"],"latest_commit_sha":null,"homepage":"","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}},"created_at":"2018-03-22T16:46:39.000Z","updated_at":"2024-11-13T21:08:59.000Z","dependencies_parsed_at":"2022-09-02T03:12:41.320Z","dependency_job_id":null,"html_url":"https://github.com/l3akage/onewire_exporter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l3akage%2Fonewire_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l3akage%2Fonewire_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l3akage%2Fonewire_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l3akage%2Fonewire_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/l3akage","download_url":"https://codeload.github.com/l3akage/onewire_exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250032151,"owners_count":21363780,"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":["ds18b20","onewire","prometheus-exporter"],"created_at":"2024-11-09T17:12:31.700Z","updated_at":"2025-04-21T09:32:29.163Z","avatar_url":"https://github.com/l3akage.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# onewire_exporter\n\nPrometheus exporter for 1-wire temperature sensors connected to a Raspberry PI\n\n# Usage\n\n```\n./onewire_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--ignoreUnknown |true | Ignores sensors without a name\n--names | names.yaml | File mapping IDs to names\"\n\n\n# Configuration\n\nThe names.yaml files contains the sensor id and name to use\n```\nnames:\n  28-0416506c85ff: temp_sensor_01\n```\n\n# Setup\nFor gpio 4 append this to /boot/config.txt and reboot\n\n```\ndtoverlay=w1-gpio-pullup,gpiopin=4,extpullup=on\n```\n\nYou should now see your sensors with IDs in /sys/bus/w1/devices\n\n# Example output\n```\n# HELP onewire_temp Air temperature (in degrees C)\n# TYPE onewire_temp gauge\nonewire_temp{id=\"28-0416506c85ff\",name=\"temp_sensor_01\"} 28.187\n```\n\n# Circuit\n\nI used DS18b20 1-wire sensors. For a long distance (50m worked fine) i used 5v power for the sensors and 3.3v with a 4.7k resistor as pull-up.\n\n![Circuit](onewire_circuit.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl3akage%2Fonewire_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fl3akage%2Fonewire_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl3akage%2Fonewire_exporter/lists"}