{"id":23818020,"url":"https://github.com/lsongdev/dsensor","last_synced_at":"2025-09-07T00:32:51.502Z","repository":{"id":57216722,"uuid":"79003458","full_name":"lsongdev/dsensor","owner":"lsongdev","description":":chart_with_upwards_trend: Digital universal particle concentration sensor ⏲️ ","archived":false,"fork":false,"pushed_at":"2025-02-28T10:40:36.000Z","size":6570,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-06T07:52:30.631Z","etag":null,"topics":["air-quality","air-quality-sensor","hardware","hcho","iot","plantower"],"latest_commit_sha":null,"homepage":"https://npmjs.org/dsensor","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/lsongdev.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},"funding":{"github":"song940","patreon":"song940","open_collective":"song940","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://git.io/fjRcB"}},"created_at":"2017-01-15T06:00:14.000Z","updated_at":"2025-02-28T10:40:40.000Z","dependencies_parsed_at":"2024-09-12T01:29:50.734Z","dependency_job_id":"98f5d18b-8177-4fd9-8c3c-48c6afbe8292","html_url":"https://github.com/lsongdev/dsensor","commit_stats":null,"previous_names":["lsongdev/dsensor","song940/dsensor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lsongdev/dsensor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fdsensor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fdsensor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fdsensor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fdsensor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lsongdev","download_url":"https://codeload.github.com/lsongdev/dsensor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fdsensor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273983015,"owners_count":25202092,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["air-quality","air-quality-sensor","hardware","hcho","iot","plantower"],"created_at":"2025-01-02T05:49:21.757Z","updated_at":"2025-09-07T00:32:51.491Z","avatar_url":"https://github.com/lsongdev.png","language":"JavaScript","funding_links":["https://github.com/sponsors/song940","https://patreon.com/song940","https://opencollective.com/song940","https://git.io/fjRcB"],"categories":[],"sub_categories":[],"readme":"## dsensor ![dsensor](https://img.shields.io/npm/v/dsensor.svg)\n\n\u003e Digital universal particle concentration sensor \n\n### Installation\n\n```bash\n$ npm i [-g] dsensor\n```\n\n### Example\n\n```js\nconst HCHO = require('dsensor/HCHO');\n\nconst sensor = new HCHO(\"/dev/cu.SLAB_USBtoUART\");\n\nsensor.on('message', message =\u003e {\n  console.log(message.toString()); // outputs: \"HCHO: 0.001Mg/m3\"\n});\n\nsensor.on(\"open\", () =\u003e {\n  setInterval(() =\u003e {\n    sensor.send('query');\n  }, 3000);\n});\n```\n\n![](docs/PMS5003.jpg)\n![](docs/DS-HCHO.jpg)\n\n### Golang Version\n\n\u003chttps://github.com/lsongdev/dsensor-go\u003e\n\n### Contributing\n- Fork this Repo first\n- Clone your Repo\n- Install dependencies by `$ npm install`\n- Checkout a feature branch\n- Feel free to add your features\n- Make sure your features are fully tested\n- Publish your local branch, Open a pull request\n- Enjoy hacking \u003c3\n\n### MIT\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Fdsensor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flsongdev%2Fdsensor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Fdsensor/lists"}