{"id":19339819,"url":"https://github.com/owaiswiz/ds18b20","last_synced_at":"2025-04-23T02:30:56.182Z","repository":{"id":59153067,"uuid":"113491726","full_name":"owaiswiz/ds18b20","owner":"owaiswiz","description":"🌡️A Ruby Gem to easily interface with the DS18B20 temperature Sensor over 1-Wire","archived":false,"fork":false,"pushed_at":"2018-08-26T09:12:02.000Z","size":16,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T11:07:44.919Z","etag":null,"topics":["ds18b20","raspberry-pi","temperature-monitoring","temperature-sensor"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/owaiswiz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-07T19:46:21.000Z","updated_at":"2023-04-04T23:27:10.000Z","dependencies_parsed_at":"2022-09-13T11:01:28.892Z","dependency_job_id":null,"html_url":"https://github.com/owaiswiz/ds18b20","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owaiswiz%2Fds18b20","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owaiswiz%2Fds18b20/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owaiswiz%2Fds18b20/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owaiswiz%2Fds18b20/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/owaiswiz","download_url":"https://codeload.github.com/owaiswiz/ds18b20/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250357571,"owners_count":21417308,"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","raspberry-pi","temperature-monitoring","temperature-sensor"],"created_at":"2024-11-10T03:23:56.507Z","updated_at":"2025-04-23T02:30:55.942Z","avatar_url":"https://github.com/owaiswiz.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DS18B20\n\n\n[![Build Status](https://travis-ci.org/owaiswiz/ds18b20.svg?branch=master)](https://travis-ci.org/owaiswiz/ds18b20) [![Gem Version](https://badge.fury.io/rb/ds18b20.svg)](https://badge.fury.io/rb/ds18b20) [![Gem](https://img.shields.io/gem/dt/ds18b20.svg?colorB=brightgreen\u0026maxAge=3600)]() \n\n\nThis gem makes interfacing with the DS18B20 temperature easier over 1-Wire.\n\n\nAfter setting it up correctly make sure you have the correct file path where it's output is being recorded.\nThe file name on raspberry pi should be `w1_slave`. If you don't know where the file is located - please read : [DS18B20 - Temperature Sensing](https://learn.adafruit.com/adafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing?view=all).\n\n\nAfter making sure that you have the file path and that output looks similar to one in the tutorial above, you can easily use this gem following the instructions below.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'ds18b20'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install ds18b20\n\n## Usage\n\n### 1. Require\n\n```ruby\nrequire 'ds18b20'\n```\n\n\n### 2. Create Instance with Proper File Path\n\n```ruby\nsensor = Ds18b20::Parser.new(\"/sys/bus/w1/devices/28-800000048d57/w1_slave\")\n```\n\n\n### 3. Getting Temperature\n\n```ruby\nsensor.celsius\n#=\u003e 28.5625\n\n\nsensor.fahrenheit\n#=\u003e 82.0625\n\n\nsensor.kelvin\n#=\u003e 300.9\n```\n\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/owaiswiz/ds18b20.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowaiswiz%2Fds18b20","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowaiswiz%2Fds18b20","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowaiswiz%2Fds18b20/lists"}