{"id":19231351,"url":"https://github.com/phodal/bracket","last_synced_at":"2025-04-21T03:31:53.337Z","repository":{"id":150636956,"uuid":"122920942","full_name":"phodal/bracket","owner":"phodal","description":"A Serverless IoT Server for Fun","archived":false,"fork":false,"pushed_at":"2018-02-28T01:58:18.000Z","size":31,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T08:51:30.880Z","etag":null,"topics":["internet-of-things","iot","serverless","serverless-iot"],"latest_commit_sha":null,"homepage":"https://iot.pho.im/","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/phodal.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":"2018-02-26T06:01:11.000Z","updated_at":"2018-02-27T01:57:12.000Z","dependencies_parsed_at":"2023-04-09T19:46:45.652Z","dependency_job_id":null,"html_url":"https://github.com/phodal/bracket","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/phodal%2Fbracket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phodal%2Fbracket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phodal%2Fbracket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phodal%2Fbracket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phodal","download_url":"https://codeload.github.com/phodal/bracket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249991019,"owners_count":21357187,"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":["internet-of-things","iot","serverless","serverless-iot"],"created_at":"2024-11-09T15:42:22.293Z","updated_at":"2025-04-21T03:31:53.333Z","avatar_url":"https://github.com/phodal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bracket\n\nA Serverless IoT Server for Fun\n\n**Features**\n\n - On/Off Toggle\n - JSON support\n - Wechat Control\n - AWS IoT?\n\nOn/Off Toggle \n---\n\nAction   |  HTTP Method  |  URL                   | Response\n---------|---------------|------------------------|---------------\ncreate   | POST          | /q                     | {\"uuid\":\"HyOPYVfOf\"}\non       | GET           | /q/{device_id}/on      | {\"results\":\"succeeded\",\"status\":1}\noff      | GET           | /q/{device_id}/off     | {\"results\":\"succeeded\",\"status\":0}\nstatus   | GET           | /q/{device_id}         | {\"status\":0}\nstatus   | GET           | /q/{device_id}/status  | {\"status\":0}\n\n### Examples\n\n**Create**\n\n```\n$ curl -X POST https://iot.pho.im/q\n\n{\"uuid\":\"H1qG3tQ_M\"}\n```\n\n**On/Off**\n\n```\n$ curl -X GET https://iot.pho.im/q/H1qG3tQ_M/on\n\n\n{\"results\":\"succeeded\",\"status\":1}\n```\n\n**Status**\n\n```\n$ curl -X GET curl -X GET https://iot.pho.im/q/H1qG3tQ_M/status\n\n\n{\"status\":1}\n```\n\nSetup\n---\n\n```\nnpm install -g serverless\n```\n\n1.install\n\n```\nyarn install\n```\n\n2.create domain\n\n```\nsls create_domain\n```\n\n3.deloy\n\n```\nsls deploy\n```\n\n## LICENSE\n\n[![Phodal's Idea](http://brand.phodal.com/shields/idea-small.svg)](http://ideas.phodal.com/)\n\n© 2018 A [Phodal Huang](https://www.phodal.com)'s [Idea](http://github.com/phodal/ideas).  This code is distributed under the MIT license. See `LICENSE` in this directory.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphodal%2Fbracket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphodal%2Fbracket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphodal%2Fbracket/lists"}