{"id":23280397,"url":"https://github.com/alwint3r/sht31-node","last_synced_at":"2026-04-28T18:35:06.489Z","repository":{"id":76136304,"uuid":"84343085","full_name":"alwint3r/sht31-node","owner":"alwint3r","description":"Module for reading SH31 sensor through i2c on Raspberry Pi","archived":false,"fork":false,"pushed_at":"2017-11-12T06:21:16.000Z","size":16,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T13:37:20.845Z","etag":null,"topics":["i2c","iot","raspberry-pi","sensor","sht31"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/alwint3r.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":"2017-03-08T16:38:15.000Z","updated_at":"2017-06-23T01:37:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"65fb6205-9080-4d9f-a0ed-9cffeaf4d219","html_url":"https://github.com/alwint3r/sht31-node","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/alwint3r/sht31-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwint3r%2Fsht31-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwint3r%2Fsht31-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwint3r%2Fsht31-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwint3r%2Fsht31-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alwint3r","download_url":"https://codeload.github.com/alwint3r/sht31-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwint3r%2Fsht31-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32394465,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"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":["i2c","iot","raspberry-pi","sensor","sht31"],"created_at":"2024-12-19T23:34:22.404Z","updated_at":"2026-04-28T18:35:06.474Z","avatar_url":"https://github.com/alwint3r.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"SHT31 Library for Node.js\n=========================\n\nRead temperature and humidity from SHT31 via i2c on a Raspberry Pi.\n\n## Requirements\n\n* Have Node v6 or newer installed.\n* I2C enabled. See [this link](https://learn.sparkfun.com/tutorials/raspberry-pi-spi-and-i2c-tutorial) for more information about enabling I2C on Raspberry Pi.\n\n## Installation\n\n```bash\nnpm install --save sht31\n```\n\nor if you're using yarnpkg\n\n```bash\nyarnpkg add sht31\n```\n\n## Usage Example\n\n```js\nconst SHT31 = require(`sht31`);\n\n// NOTE: you might need to change the I2C bus number or\n// SHT31 address.\n// In this case, SHT31 address is 0x44\n// and I2C bus number is 1\nconst sht31 = new SHT31(0x44, 1); \n\nsht31\n  .init()\n  .then(() =\u003e sht31.readSensorData())\n  .then((data) =\u003e {\n    // data object follows this format:\n    // { temperature: Number, humidity: Number }\n    // temperature is in celcius unit.\n    console.log(data);\n  })\n  .catch((err) =\u003e {\n    // Handle error here\n    // ...\n  });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falwint3r%2Fsht31-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falwint3r%2Fsht31-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falwint3r%2Fsht31-node/lists"}