{"id":16883379,"url":"https://github.com/hardillb/physical-web-lightswitch","last_synced_at":"2025-07-17T19:31:57.067Z","repository":{"id":68666324,"uuid":"52589414","full_name":"hardillb/physical-web-lightswitch","owner":"hardillb","description":"A Eddystone/Physical Web wrapper for Belkin Bulbs","archived":false,"fork":false,"pushed_at":"2024-09-25T20:39:27.000Z","size":76,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-13T16:11:34.729Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hardillb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-02-26T08:17:29.000Z","updated_at":"2024-09-25T20:39:27.000Z","dependencies_parsed_at":"2023-03-13T20:27:48.672Z","dependency_job_id":null,"html_url":"https://github.com/hardillb/physical-web-lightswitch","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/hardillb%2Fphysical-web-lightswitch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2Fphysical-web-lightswitch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2Fphysical-web-lightswitch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2Fphysical-web-lightswitch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hardillb","download_url":"https://codeload.github.com/hardillb/physical-web-lightswitch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226296252,"owners_count":17602297,"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-10-13T16:11:30.326Z","updated_at":"2024-11-25T08:25:35.175Z","avatar_url":"https://github.com/hardillb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Physical Web Light Switch\n\nThis is a relativly simple wrapper round some of the work I've done to interact with Belkin WeMo lightbulbs\n\nThe creates a Eddystone beacon that broadcasts a URL for a web interface to switch a bulb on/off and set \nthe brightness.\n\n## Config\n\nConfig data goes in config.js. You can set the following:\n\n - The port the web server listens on\n - The short URL to broadcast\n - The device id of the bulb/group to control\n - The beacon name\n\nThe divice id is the id of the bridge + '-' + id of the bulb/group. This isn't the most userfriendly at the \nmoment but it works.\n\n```\nmodule.exports = {\n\tdeviceID: '231442B01005F2-94103EA2B27803ED',\n\tport: 3000,\n\tshortURL: 'https://s.loc/l'.\n\tname: 'Lights'\n};\n```\n\nThe deviceID is the serial number of the WeMo Bridge and the light/group id concatenated with a '-'. \n\nTo run as a user other than root on Linux you will need to grant the NodeJS executable the right priveledges,\nthis can be done with this command:\n\n```sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)```\n\n## TODO\n\n - Add Utility to print out device names and device id's to make creating the config file easier\n - Add current state to the web interface\n - Create basic Android App","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardillb%2Fphysical-web-lightswitch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhardillb%2Fphysical-web-lightswitch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardillb%2Fphysical-web-lightswitch/lists"}