{"id":19297430,"url":"https://github.com/arionmiles/f1","last_synced_at":"2025-07-20T07:04:48.716Z","repository":{"id":250602546,"uuid":"834720623","full_name":"ArionMiles/f1","owner":"ArionMiles","description":"Change my room's bulb colors based on F1 race leaders","archived":false,"fork":false,"pushed_at":"2024-08-26T19:33:55.000Z","size":52,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T22:03:19.122Z","etag":null,"topics":["f1","fastf1","tuya"],"latest_commit_sha":null,"homepage":"","language":"Python","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/ArionMiles.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":"2024-07-28T06:41:11.000Z","updated_at":"2025-03-24T14:09:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"06d6979b-3edf-4c65-879b-f6e2b10edd03","html_url":"https://github.com/ArionMiles/f1","commit_stats":null,"previous_names":["arionmiles/f1"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ArionMiles/f1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArionMiles%2Ff1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArionMiles%2Ff1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArionMiles%2Ff1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArionMiles%2Ff1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArionMiles","download_url":"https://codeload.github.com/ArionMiles/f1/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArionMiles%2Ff1/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266081239,"owners_count":23873511,"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":["f1","fastf1","tuya"],"created_at":"2024-11-09T23:04:53.692Z","updated_at":"2025-07-20T07:04:48.619Z","avatar_url":"https://github.com/ArionMiles.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# f1\n\nThis is a simple script to change my room's smart bulbs during a live F1 stream. The colors are based on the P1 driver's team colors. The colors should change in near real-time however it all depends on how fast or how slow the live timing feed is.\n\nThe bulbs are controlled entirely by sending instructions over the LAN. Currently only Wipro smart bulbs are supported since that's all I have.\n\nF1's Live Timing feed operates over SignalR protocol which is unauthenticated so you **don't** need an F1TV or F1TV Pro account to use this.\n\n## Setup\n\n### Prerequisites\nYou need:\n1. Python (v3.9 specifically, due to constraints by fasft1's live-timing implementation)\n2. Poetry (`python3 -m pip install poetry`)\n2. Some tuya compatible smart bulbs.\n    - I have a couple of Wipro bulbs which are compatible.\n    - See [tinytuya](https://github.com/jasonacox/tinytuya) for instructions on generating your `data/devices.json`\n\n### Getting started\n\n```\n# Install all dependencies\npoetry install\n\n# Start venv\npoetry shell\n\n# Start runner\npython3 main.py\n\n# If you need debug logs\nLOG_LEVEL=DEBUG python3 main.py\n```\n\n- `python3 -m tinytuya wizard` should help create `devices.json` which you can move under `data/`\n\n## Why python?\n\nI usually prefer Go and hate Python with a passion. But, I needed something quick, and the libraries for interfacing with my smart bulbs and streaming the live timing data are readily available.\n\n## Thanks\n\nThanks to the following folks, I learnt a few neat things from their implementation:\n\n- [theOehrly/Fast-F1](https://github.com/theOehrly/Fast-F1)\n- [f1stuff/f1-live-data](https://github.com/f1stuff/f1-live-data)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farionmiles%2Ff1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farionmiles%2Ff1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farionmiles%2Ff1/lists"}