{"id":15701088,"url":"https://github.com/triforcely/sds011-wrapper","last_synced_at":"2026-03-05T23:03:17.490Z","repository":{"id":39034193,"uuid":"100864552","full_name":"triforcely/sds011-wrapper","owner":"triforcely","description":"Wrapper library created to simplify use of SDS011 laser dust sensor in your projects","archived":false,"fork":false,"pushed_at":"2022-12-30T18:47:55.000Z","size":182,"stargazers_count":17,"open_issues_count":5,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T22:46:00.065Z","etag":null,"topics":["sds011","sensor","uart-protocol","wrapper-library"],"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/triforcely.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}},"created_at":"2017-08-20T13:49:17.000Z","updated_at":"2024-01-17T07:40:24.000Z","dependencies_parsed_at":"2023-01-31T13:30:56.224Z","dependency_job_id":null,"html_url":"https://github.com/triforcely/sds011-wrapper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triforcely%2Fsds011-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triforcely%2Fsds011-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triforcely%2Fsds011-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triforcely%2Fsds011-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/triforcely","download_url":"https://codeload.github.com/triforcely/sds011-wrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252967982,"owners_count":21833247,"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":["sds011","sensor","uart-protocol","wrapper-library"],"created_at":"2024-10-03T19:59:30.063Z","updated_at":"2026-03-05T23:03:12.460Z","avatar_url":"https://github.com/triforcely.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"SDS011-Wrapper\n=========\n![Output](https://i.imgur.com/iQkamEP.png)\n\n[![Build Status](https://travis-ci.org/triforcely/sds011-wrapper.svg?branch=master)](https://travis-ci.org/triforcely/sds011-wrapper)  [![Codecov](https://img.shields.io/codecov/c/github/triforcely/sds011-wrapper.svg)](https://codecov.io/gh/triforcely/sds011-wrapper)\n\n\nAir quality measurements made easy with wrapper library for SDS011 UART interface.\n\nSave your time and focus on specific IoT solution instead of serial communication.\n\n[![NPM](https://nodei.co/npm/sds011-wrapper.png)](https://npmjs.org/package/sds011-wrapper)\n\n## Watch out!\n\nNova Fitness SDS011 laser is designed for 8000 hours of continuous use - this is less than one year. It is recommended to configure [working period](https://github.com/triforcely/sds011-wrapper/wiki/API#SDS011Wrapper+setWorkingPeriod) to extend life span of your solution.\n\n## Synopsis\n\n1. Require the module\n```js\nconst SDS011Wrapper = require(\"sds011-wrapper\");\n```\n2. Connect to your sensor through serial port\n```js\nconst sensor = new SDS011Wrapper(\"COM5\");\n```\n3. Configure\n```js\nawait sensor.setReportingMode('active');\nawait sensor.setWorkingPeriod(10);\n// everything's set\n```\n4. Do awesome things\n```js\nsensor.on('measure', (data) =\u003e {\n    if (data['PM2.5'] \u003e 10) {\n        powerAirPurifierOn();\n    } else {\n        powerAirPurifierOff();\n    }\n});\n```\n\n## Installation\n\n  `npm install sds011-wrapper`\n\n## Usage\n\n- Check the 'examples' folder.\n- See the [API docs](https://github.com/triforcely/sds011-wrapper/wiki/API)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftriforcely%2Fsds011-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftriforcely%2Fsds011-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftriforcely%2Fsds011-wrapper/lists"}