{"id":18749684,"url":"https://github.com/coditva/switchboard","last_synced_at":"2025-06-14T17:05:39.894Z","repository":{"id":98240318,"uuid":"311085491","full_name":"coditva/switchboard","owner":"coditva","description":"A wifi switchboard","archived":false,"fork":false,"pushed_at":"2020-11-29T09:56:05.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-20T10:45:13.861Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","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/coditva.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":"2020-11-08T14:51:50.000Z","updated_at":"2020-11-29T09:56:07.000Z","dependencies_parsed_at":"2023-05-18T21:45:37.135Z","dependency_job_id":null,"html_url":"https://github.com/coditva/switchboard","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coditva/switchboard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditva%2Fswitchboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditva%2Fswitchboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditva%2Fswitchboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditva%2Fswitchboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coditva","download_url":"https://codeload.github.com/coditva/switchboard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditva%2Fswitchboard/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259851737,"owners_count":22921632,"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":[],"created_at":"2024-11-07T17:08:22.571Z","updated_at":"2025-06-14T17:05:39.855Z","avatar_url":"https://github.com/coditva.png","language":"Lua","readme":"# switchboard\nA wifi switchboard based on NodeMCU (ESP8266)\n\n## Usage\nWire up GPIO pins of NodeMCU D0 to D7 to relay module inputs.\nChange `config.lua` to configure the switch names, access point SSID and password and local hostname.\nUpload the files to NodeMCU flash and start it up!\n\nIf everything goes well, you should see an access point available with the SSID you configured. There will be a server available which provides this API:\n\n#### `GET` 192.168.4.1\nReturns the status of the device:\n```json\n{\n    \"status\": \"ok\"\n}\n```\n\n#### `GET` 192.168.4.1/:id\nReturns the state of the switch wired to the pin corresponding to the `id` (as specified in `config.lua`).\n\n```json\n{\n    \"state\": 0\n}\n```\n\n#### `POST` 192.168.4.1/:id\nToggles the state of the switch wired to the pin corresponding to the `id` (as specified in `config.lua`).\n```json\n{\n    \"state\": 1\n}\n```\n\n**Note: You can also use `http://switchboard.local` (or whatever hostname you configured in `config.lua`) in place of `192.168.4.1`.**\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoditva%2Fswitchboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoditva%2Fswitchboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoditva%2Fswitchboard/lists"}