{"id":50555421,"url":"https://github.com/angristan/huemidi","last_synced_at":"2026-06-04T06:32:03.573Z","repository":{"id":302714146,"uuid":"1013385594","full_name":"angristan/huemidi","owner":"angristan","description":"Control the brightness of a Hue bulb with a MIDI keyboard","archived":false,"fork":false,"pushed_at":"2025-07-03T20:14:42.000Z","size":9,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-30T05:39:38.938Z","etag":null,"topics":["hue","midi","philips-hue"],"latest_commit_sha":null,"homepage":"","language":"Go","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/angristan.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,"zenodo":null}},"created_at":"2025-07-03T20:13:28.000Z","updated_at":"2025-07-04T16:08:02.000Z","dependencies_parsed_at":"2025-07-03T21:25:34.002Z","dependency_job_id":"cbeeeeef-b554-4d59-9843-bc41c9a96740","html_url":"https://github.com/angristan/huemidi","commit_stats":null,"previous_names":["angristan/huemidi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/angristan/huemidi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angristan%2Fhuemidi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angristan%2Fhuemidi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angristan%2Fhuemidi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angristan%2Fhuemidi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angristan","download_url":"https://codeload.github.com/angristan/huemidi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angristan%2Fhuemidi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33893323,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["hue","midi","philips-hue"],"created_at":"2026-06-04T06:32:02.838Z","updated_at":"2026-06-04T06:32:03.562Z","avatar_url":"https://github.com/angristan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HueMIDI 🎹💡\n\nA Go CLI tool that allows you to control the brightness of your Philips Hue light bulbs using a MIDI piano keyboard. The leftmost key corresponds to 0% brightness, and the rightmost key corresponds to 100% brightness.\n\n## Features\n\n- 🔍 **Auto-discovery**: Automatically discovers your local Hue bridge\n- 🎯 **Light Selection**: Choose from available light bulbs using a fuzzy finder\n- 🎹 **MIDI Calibration**: Calibrate your keyboard by pressing the leftmost and rightmost keys\n- 🌈 **Real-time Control**: Control brightness in real-time by pressing keys on your MIDI keyboard\n\n## Prerequisites\n\n- Go 1.21 or later\n- A Philips Hue bridge on your local network\n- A MIDI keyboard connected to your computer\n\n## Installation\n\n1. Clone this repository:\n\n   ```bash\n   git clone \u003cyour-repo-url\u003e\n   cd huemidi\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   go mod tidy\n   ```\n\n3. Build the application:\n\n   ```bash\n   make build\n   # or manually: go build -o huemidi\n   ```\n\n## Usage\n\n1. **Connect your MIDI keyboard** to your computer\n2. **Ensure your Hue bridge** is on the same network as your computer\n3. **Run the application**:\n\n   ```bash\n   ./huemidi\n   # or: make run\n   ```\n\n4. **Follow the on-screen instructions**:\n   - The app will auto-discover your Hue bridge\n   - Press the link button on your Hue bridge when prompted\n   - Select a light bulb from the list using arrow keys and Enter\n   - Calibrate your MIDI keyboard by pressing the leftmost and rightmost keys\n   - Start playing! Press keys to control the brightness\n\n## Environment Variables\n\n- `HUE_USERNAME`: Set this to skip the authentication step on subsequent runs\n\nExample:\n\n```bash\nexport HUE_USERNAME=your_username_here\n./huemidi\n```\n\n## How It Works\n\n1. **Discovery**: Uses the official Hue discovery API to find your bridge\n2. **Authentication**: Creates a new user on the bridge (requires pressing the link button)\n3. **Light Selection**: Fetches available lights and presents them in a user-friendly list\n4. **MIDI Calibration**: Maps your keyboard range to 0-100% brightness\n5. **Real-time Control**: Listens for MIDI note-on events and maps key positions to brightness levels\n\n## Dependencies\n\n- `github.com/manifoldco/promptui` - Interactive prompts and selection\n- `gitlab.com/gomidi/midi/v2` - MIDI input handling\n- `github.com/tidwall/gjson` - JSON parsing for Hue API responses\n\n## Troubleshooting\n\n### MIDI Issues\n\n- **No MIDI devices found**: Ensure your MIDI keyboard is connected and recognized by your system\n- **Permission denied**: On Linux, you may need to add your user to the `audio` group\n\n### Hue Bridge Issues\n\n- **Bridge not found**: Ensure the bridge is on the same network and accessible\n- **Authentication failed**: Make sure to press the link button within 30 seconds of the prompt\n\n### General Issues\n\n- **Build errors**: Ensure you have Go 1.21+ and run `go mod tidy`\n- **Network issues**: Check firewall settings that might block bridge discovery\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangristan%2Fhuemidi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangristan%2Fhuemidi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangristan%2Fhuemidi/lists"}