{"id":16123356,"url":"https://github.com/thedevminertv/node-ds18b20","last_synced_at":"2025-08-08T18:55:12.827Z","repository":{"id":57165917,"uuid":"398835395","full_name":"TheDevMinerTV/node-ds18b20","owner":"TheDevMinerTV","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T17:42:48.000Z","size":6,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T05:15:24.153Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/TheDevMinerTV.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}},"created_at":"2021-08-22T15:37:16.000Z","updated_at":"2021-08-22T16:24:54.000Z","dependencies_parsed_at":"2023-12-15T18:51:26.405Z","dependency_job_id":null,"html_url":"https://github.com/TheDevMinerTV/node-ds18b20","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"702a4e437696e18fe0cf2a99ce1030c9fbf415c9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDevMinerTV%2Fnode-ds18b20","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDevMinerTV%2Fnode-ds18b20/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDevMinerTV%2Fnode-ds18b20/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDevMinerTV%2Fnode-ds18b20/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheDevMinerTV","download_url":"https://codeload.github.com/TheDevMinerTV/node-ds18b20/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478329,"owners_count":20945267,"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":[],"created_at":"2024-10-09T21:15:51.903Z","updated_at":"2025-04-06T12:15:43.906Z","avatar_url":"https://github.com/TheDevMinerTV.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @thedevminertv/ds18b20\n\nGet temperature from DS18B20 sensors connected to a Raspberry PI (GPIO w1 pin).\n\n## Usage\n\n### Install\n\n```sh\nyarn install @thedevminertv/ds18b20\n```\n\n### Drivers\n\n1-Wire drivers need to be loaded in order to create the connection between the physical sensor and the RPI.\nYou can load them from the terminal (or from the `bin/prepare.sh` script).\n\n```sh\nsudo modprobe wire\nsudo modprobe w1-gpio\nsudo modprobe w1-therm\n```\n\n### Code\n\n```js\nconst ds18b20 = require('@thedevminertv/ds18b20');\n\nasync function main() {\n  const ids = await ds18b20.getSensors();\n\n  let temperature = await ds18b20.getTemperature('10-00080283a977');\n  console.log('Current temperature is', temperature);\n\n  // You can change the parser using the optional `options` argument\n  temperature = await ds18b20.getTemperature('10-00080283a977', { parser: 'hex' });\n  console.log('Current temperature is', temperature);\n}\n\nmain();\n```\n\n## Thanks\n\n* [chamerling](https://github.com/chamerling) for making the [original library](https://github.com/chamerling/ds18b20)\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2021 TheDevMinerTV\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedevminertv%2Fnode-ds18b20","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedevminertv%2Fnode-ds18b20","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedevminertv%2Fnode-ds18b20/lists"}