{"id":18947658,"url":"https://github.com/pedcapa/lifx-lights-openai","last_synced_at":"2026-04-29T08:33:28.412Z","repository":{"id":186992575,"uuid":"655951612","full_name":"pedcapa/lifx-lights-openai","owner":"pedcapa","description":"Change the brightness of the lights depending on the sentiment of the news","archived":false,"fork":false,"pushed_at":"2024-08-20T19:54:53.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-04T02:54:02.796Z","etag":null,"topics":["lifx-api","lifx-lights","newsapi-org","openai"],"latest_commit_sha":null,"homepage":"","language":"Python","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/pedcapa.png","metadata":{"files":{"readme":"README.md","changelog":"newsMoodLight.py","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":"2023-06-20T01:06:10.000Z","updated_at":"2024-08-20T19:54:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"05d76b6e-2787-43c8-811b-4e6a21d82c46","html_url":"https://github.com/pedcapa/lifx-lights-openai","commit_stats":null,"previous_names":["catbox-dev/lifx-python","pedcapa/lifx-lights-openai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pedcapa/lifx-lights-openai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedcapa%2Flifx-lights-openai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedcapa%2Flifx-lights-openai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedcapa%2Flifx-lights-openai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedcapa%2Flifx-lights-openai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedcapa","download_url":"https://codeload.github.com/pedcapa/lifx-lights-openai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedcapa%2Flifx-lights-openai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32417726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["lifx-api","lifx-lights","newsapi-org","openai"],"created_at":"2024-11-08T13:10:49.738Z","updated_at":"2026-04-29T08:33:28.383Z","avatar_url":"https://github.com/pedcapa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Change the brightness of the lights depending on the sentiment of the news\nThis script uses the [newsAPI](https://newsapi.org/) to get the top headlines and then uses \n[openAI](https://beta.openai.com/) to get the sentiment of the headlines. \nThe script then changes the brightness of the [lifx](https://www.lifx.com/) lights depending on the sentiment of the news.\n\n## Table of Contents\n* [How to use](#how-to-use)\n* [How to setup your lifx lights](#how-to-setup-your-lifx-lights)\n* [Credits](#credits)\n\n## How to use\n1. Create a lifx account and get your token from [here](https://cloud.lifx.com/settings)\n2. Create an openAI account and get your token from [here](https://beta.openai.com/account/api-keys)\n3. Create a newsAPI account and get your token from [here](https://newsapi.org/register)\n4. Clone the repo\n```sh\ngit clone https://github.com/catbox-dev/newsMoodLight.git\n```\n5. Install the requirements\n```sh\npip3 install -r requirements.txt\n```\n6. Replace the tokens in confi.ini with your tokens\n7. Make sure you have correctly setup your lifx lights, see [here](#how-to-set-up-your-lifx-lights)\n7. Run the python script\n```sh\npython3 newsMoodLight.py\n```\n\n## How to set up your lifx lights\n1. Install the lifx app on your phone\n2. Connect your phone and your computer to the same wifi network\n3. Open the lifx app and connect your lights\n\n## Credits\n* [newsAPI](https://newsapi.org/)\n* [openAI](https://beta.openai.com/)\n* [lifx](https://www.lifx.com/)\n* Project by [catbox-dev](https://github.com/catbox-dev)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedcapa%2Flifx-lights-openai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedcapa%2Flifx-lights-openai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedcapa%2Flifx-lights-openai/lists"}