{"id":50745920,"url":"https://github.com/aoephtua/switchbot-api","last_synced_at":"2026-06-10T20:33:03.910Z","repository":{"id":211418133,"uuid":"729088185","full_name":"aoephtua/switchbot-api","owner":"aoephtua","description":"Node.js library to communicate with official SwitchBot API","archived":false,"fork":false,"pushed_at":"2025-08-04T12:50:27.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-13T11:14:28.124Z","etag":null,"topics":["es6","javascript","nodejs","smarthome","switchbot"],"latest_commit_sha":null,"homepage":"","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/aoephtua.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,"zenodo":null}},"created_at":"2023-12-08T11:37:15.000Z","updated_at":"2025-08-04T12:48:30.000Z","dependencies_parsed_at":"2023-12-19T09:51:20.135Z","dependency_job_id":null,"html_url":"https://github.com/aoephtua/switchbot-api","commit_stats":null,"previous_names":["aoephtua/switchbot-api"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/aoephtua/switchbot-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aoephtua%2Fswitchbot-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aoephtua%2Fswitchbot-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aoephtua%2Fswitchbot-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aoephtua%2Fswitchbot-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aoephtua","download_url":"https://codeload.github.com/aoephtua/switchbot-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aoephtua%2Fswitchbot-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34170162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":["es6","javascript","nodejs","smarthome","switchbot"],"created_at":"2026-06-10T20:33:03.414Z","updated_at":"2026-06-10T20:33:03.906Z","avatar_url":"https://github.com/aoephtua.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# switchbot-api\n\n[![npm](https://img.shields.io/npm/v/switchbot-api)](https://www.npmjs.com/package/switchbot-api)\n![npm](https://img.shields.io/npm/dw/switchbot-api?label=↓)\n[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/aoephtua/switchbot-api/blob/master/LICENSE)\n\nNode.js library to communicate with official [SwitchBot API](https://github.com/OpenWonderLabs/SwitchBotAPI). It provides elementary functionalities to control devices.\n\n## Installing\n\nUsing npm:\n\n    $ npm install switchbot-api\n\nOnce the package is installed, you can import the classes:\n\n```javascript\nimport SwitchBotApi, { SwitchBotBlindTilt } from 'switchbot-api';\n```\n\n## Usage\n\n```javascript\nconst switchBotApi = new SwitchBotApi(token, secret);\n\nconst devices = await switchBotApi.getDevices();\n```\n\nSee [examples](examples) to get an insight.\n\n## Devices\n\n- [SwitchBotBlindTilt](src/devices/switchBotBlindTilt.mjs)\n\n## License\n\nThis project is licensed under [MIT](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faoephtua%2Fswitchbot-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faoephtua%2Fswitchbot-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faoephtua%2Fswitchbot-api/lists"}