{"id":15598182,"url":"https://github.com/boneskull/deadlights","last_synced_at":"2025-03-26T03:32:01.285Z","repository":{"id":57112014,"uuid":"77522599","full_name":"boneskull/deadlights","owner":"boneskull","description":"Interface for Flux (aka \"Magic Home\") WiFi RGB light bulbs","archived":true,"fork":false,"pushed_at":"2018-04-19T18:19:29.000Z","size":131,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T22:42:05.343Z","etag":null,"topics":["bulb","flux","flux-lighting","home-automation","iot","magichome","rgb","smart-home","wifi"],"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/boneskull.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":"2016-12-28T09:58:05.000Z","updated_at":"2024-11-19T20:02:02.000Z","dependencies_parsed_at":"2022-08-21T00:01:02.051Z","dependency_job_id":null,"html_url":"https://github.com/boneskull/deadlights","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boneskull%2Fdeadlights","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boneskull%2Fdeadlights/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boneskull%2Fdeadlights/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boneskull%2Fdeadlights/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boneskull","download_url":"https://codeload.github.com/boneskull/deadlights/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245585232,"owners_count":20639667,"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":["bulb","flux","flux-lighting","home-automation","iot","magichome","rgb","smart-home","wifi"],"created_at":"2024-10-03T01:29:46.369Z","updated_at":"2025-03-26T03:32:00.937Z","avatar_url":"https://github.com/boneskull.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deadlights\n\n[![Build Status](https://travis-ci.org/boneskull/deadlights.svg?branch=master)](https://travis-ci.org/boneskull/deadlights) [![Dependency Status](https://dependencyci.com/github/boneskull/deadlights/badge)](https://dependencyci.com/github/boneskull/deadlights)\n\n\u003e Interface for [Flux](https://www.fluxsmartlighting.com) (aka \"Magic Home\") WiFi RGB light bulbs\n\nThis wouldn't be possible without the Python [flux_led](https://github.com/beville/flux_led) project.\n\nMy ultimate goal here is to create a Node-RED flow for Flux WiFi bulb control; see [node-red-contrib-fluxwifi](https://github.com/node-red-contrib-fluxwifi). \n\n## Installation\n\n```bash\n$ npm install deadlights\n```\n\n## Requirements\n\n- Node.js, probably 4.x or newer\n\n## Usage\n\n**API is not yet fully implemented!**\n\nAPI docs forthcoming, but an example:\n\n```js\nconst {discover} = require('deadlights');\n\n// find all the bulbs on the local network\ndiscover()\n  // grab the first one\n  .then(bulbs =\u003e bulbs.pop())\n  .then(bulb =\u003e {\n    // toggle the bulb on and off\n    if (bulb.isOn) {\n      return bulb.switchOff();\n    } else {\n      return bulb.switchOn();\n    }\n  })\n  .then(bulb =\u003e {\n    // close the connection to the bulb;\n    // without this, the connection (and script) would stay open indefinitely\n    return bulb.forget();\n  });\n```\n\n## License\n\n:copyright: 2017 [Christopher Hiller](https://github.com/boneskull).  Licensed MIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboneskull%2Fdeadlights","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboneskull%2Fdeadlights","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboneskull%2Fdeadlights/lists"}