{"id":22014578,"url":"https://github.com/joeshaw/thermistor","last_synced_at":"2026-04-25T23:34:27.687Z","repository":{"id":66627423,"uuid":"127681544","full_name":"joeshaw/thermistor","owner":"joeshaw","description":"Using a Raspberry Pi and ADS1015 I2C ADC to read temperatures from thermistors and report them to HomeKit and Prometheus","archived":false,"fork":false,"pushed_at":"2023-02-15T02:06:41.000Z","size":215,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T20:17:59.762Z","etag":null,"topics":["ads1x15","gobot","golang","homecontrol","homekit","prometheus-exporter","raspberry-pi","thermistor"],"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/joeshaw.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-04-02T00:06:07.000Z","updated_at":"2020-05-06T22:08:07.000Z","dependencies_parsed_at":"2023-05-25T04:00:35.201Z","dependency_job_id":null,"html_url":"https://github.com/joeshaw/thermistor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joeshaw/thermistor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeshaw%2Fthermistor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeshaw%2Fthermistor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeshaw%2Fthermistor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeshaw%2Fthermistor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeshaw","download_url":"https://codeload.github.com/joeshaw/thermistor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeshaw%2Fthermistor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32280976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"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":["ads1x15","gobot","golang","homecontrol","homekit","prometheus-exporter","raspberry-pi","thermistor"],"created_at":"2024-11-30T04:15:31.267Z","updated_at":"2026-04-25T23:34:27.669Z","avatar_url":"https://github.com/joeshaw.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is the code for a fun home electronics project I did with my son.\n\nTwo [thermistors](https://en.wikipedia.org/wiki/Thermistor) are\nembedded in a radiant floor heating system.  The thermistors are meant\nto be used with the thermostat included in the system, but I decided\nto install a Nest thermostat instead, which can't use these.\n\nWe took a Raspberry Pi and an [ADS1015 I2C 12-bit analog-to-digital\nconverter](https://www.adafruit.com/product/1083) and connected the\ntwo thermistors to it.  We do a little math and report the detected\ntemperatures as a temperature sensor accessory with two services to\nApple HomeKit, and expose the values as a Prometheus exporter.  The \ncode is in Go, uses [Gobot](https://gobot.io) for interfacing with \nthe ADS1015 over the I2C bus and implements the HomeKit Accessory \nProtocol with [HomeControl](https://github.com/brutella/hc).\n\n![The finished product](thermistor-rpi.jpg)\n\n![Values in the Home app](thermistor-ios.jpg)\n\nThis code is specific to our implementation and probably not very\nuseful, but can be a decent example of how to use Gobot, HomeControl,\nPrometheus, the ADS1015 ADC, and calculating temperatures from\nthermistors in general.\n\n### Build\n\nCross-compile for the Raspberry Pi\n\n    $ GOARCH=arm GOOS=linux go build\n\nThen `scp` it to `/usr/local/bin` on the Pi.\n\nA `systemd` unit file (`thermistor.service`) is included.  Copy the\nunit file to `/etc/systemd/system` and then run:\n\n    $ sudo systemctl daemon-reload\n    $ sudo systemctl enable thermistor\n    $ sudo systemctl start thermistor\n\n### License\n\nThe code is licensed under the MIT license.  See the\n[LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeshaw%2Fthermistor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeshaw%2Fthermistor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeshaw%2Fthermistor/lists"}