{"id":24087337,"url":"https://github.com/julianwowra/node-sht20","last_synced_at":"2026-05-14T00:42:37.747Z","repository":{"id":128975610,"uuid":"435138771","full_name":"JulianWowra/node-sht20","owner":"JulianWowra","description":"Library to work with a SHT20 chip via i2c","archived":false,"fork":false,"pushed_at":"2025-01-05T11:00:41.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T05:33:32.664Z","etag":null,"topics":["raspberry-pi","sht20"],"latest_commit_sha":null,"homepage":"https://julianwowra.github.io/node-sht20/","language":"TypeScript","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/JulianWowra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2021-12-05T10:46:31.000Z","updated_at":"2025-01-05T11:00:36.000Z","dependencies_parsed_at":"2025-01-10T06:24:43.797Z","dependency_job_id":null,"html_url":"https://github.com/JulianWowra/node-sht20","commit_stats":null,"previous_names":["killerjulian/node-sht20"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianWowra%2Fnode-sht20","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianWowra%2Fnode-sht20/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianWowra%2Fnode-sht20/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianWowra%2Fnode-sht20/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JulianWowra","download_url":"https://codeload.github.com/JulianWowra/node-sht20/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240977392,"owners_count":19887660,"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":["raspberry-pi","sht20"],"created_at":"2025-01-10T03:04:08.467Z","updated_at":"2026-05-14T00:42:37.741Z","avatar_url":"https://github.com/JulianWowra.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-SHT20\n\n[![NPM](https://nodei.co/npm/node-sht20.png)](https://npmjs.org/package/node-sht20)\n\n## Install\n\n```sh\nnpm install node-sht20\n```\n\n```sh\nyarn add node-sht20\n```\n\n## Usage\n\nUsage in TypeScript (with ES Modules):\n\n```typescript\nimport SHT20 from 'node-sht20';\n\nconst sensor = new SHT20({\n\tbus: 1\n});\n\nasync function start() {\n\tconst { temperature, humidity } = await sensor.read();\n\n\tconsole.log(`Temperature: ${temperature.value} ${temperature.unit}`);\n\tconsole.log(`Humidity: ${humidity.value} ${humidity.unit}`);\n\n\t// Temperature in another unit\n\n\tconst degreeFahrenheit = temperature.toFahrenheit();\n\tconsole.log(`Temperature: ${degreeFahrenheit.value} ${degreeFahrenheit.unit}`);\n}\n\nstart();\n```\n\nUsage in JavaScript (with CommonJS):\n\n```js\nconst nodeSHT20 = require('node-sht20');\n\nconst sensor = new nodeSHT20.SHT20({\n\tbus: 1\n});\n\nasync function start() {\n\tconst { temperature, humidity } = await sensor.read();\n\n\tconsole.log(`Temperature: ${temperature.value} ${temperature.unit}`);\n\tconsole.log(`Humidity: ${humidity.value} ${humidity.unit}`);\n\n\t// Temperature in another unit\n\n\tconst degreeFahrenheit = temperature.toFahrenheit();\n\tconsole.log(`Temperature: ${degreeFahrenheit.value} ${degreeFahrenheit.unit}`);\n}\n\nstart();\n```\n\n---\n\n## Author\n\n👤 **KillerJulian \u003cinfo@killerjulian.de\u003e**\n\n- Github: [@KillerJulian](https://github.com/KillerJulian)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\u003cbr /\u003eFeel free to check [issues page](https://github.com/KillerJulian/node-sht20/issues). You can also take a look at the [contributing guide](https://github.com/KillerJulian/node-sht20/blob/master/CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulianwowra%2Fnode-sht20","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulianwowra%2Fnode-sht20","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulianwowra%2Fnode-sht20/lists"}