{"id":29462054,"url":"https://github.com/dkarter/stomp_station","last_synced_at":"2025-08-03T18:33:12.493Z","repository":{"id":301807027,"uuid":"1010364994","full_name":"dkarter/stomp_station","owner":"dkarter","description":"Wireless foot switch to control music/video playback - WIP!","archived":false,"fork":false,"pushed_at":"2025-07-02T05:33:53.000Z","size":2838,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-29T00:43:38.567Z","etag":null,"topics":["hardware","micropython","raspberry-pi-pico"],"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/dkarter.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-06-28T23:07:00.000Z","updated_at":"2025-07-02T05:33:53.000Z","dependencies_parsed_at":"2025-06-29T00:23:51.133Z","dependency_job_id":"fb5cf4c9-963b-4581-8639-f6af27115d69","html_url":"https://github.com/dkarter/stomp_station","commit_stats":null,"previous_names":["dkarter/stomp_station"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dkarter/stomp_station","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkarter%2Fstomp_station","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkarter%2Fstomp_station/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkarter%2Fstomp_station/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkarter%2Fstomp_station/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkarter","download_url":"https://codeload.github.com/dkarter/stomp_station/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkarter%2Fstomp_station/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268594200,"owners_count":24275733,"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","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"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":["hardware","micropython","raspberry-pi-pico"],"created_at":"2025-07-14T04:00:46.297Z","updated_at":"2025-08-03T18:33:12.425Z","avatar_url":"https://github.com/dkarter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./images/logo.png\" width=\"200\" alt=\"logo\"\u003e\n\u003c/p\u003e\n\n# StompStation\n\nA wireless foot switch using Raspberry Pi Pico W that can control music/video playback on macOS by sending keystrokes wirelessly.\n\n## Features\n\n- WiFi-enabled foot switch using Pico W\n- Auto-start webserver on power-up with retry logic\n- REST API for LED control\n- Web interface for testing\n- Modular firmware architecture\n- Secure credential management with 1Password\n- Development tools and automation\n\n## Quick Start\n\n1. **Install dependencies:**\n\n   ```bash\n   task setup\n   ```\n\n1. **Deploy to Pico W:**\n\n   ```bash\n   task fw:deploy\n   ```\n\n1. **Monitor output:**\n   ```bash\n   task fw:monitor\n   ```\n\n## Available Tasks\n\n- `task setup` - Install project dependencies\n- `task fw:deploy` - Deploy entire src directory to Pico W (with secret injection)\n- `task fw:restart` - Restart the Pico W firmware\n- `task fw:monitor` - Monitor serial output\n- `task fw:status` - Check WiFi connection status\n- `task fw:ls` - List files on Pico W\n- `task fw:shell` - Open rshell to Pico W\n- `task fw:repl` - Connect to Pico W REPL\n- `task lint` - Run linting and formatting\n- `task dev` - Full development workflow\n\n## Hardware Setup\n\n1. Connect LED to Pico W:\n\n   - LED long leg → GP15\n   - LED short leg → GND\n   - (Resistor recommended but not required for testing)\n\n2. Connect Pico W via USB\n\n## Project Structure\n\n```\nfoot_switch/\n├── src/                     # Pico W source files\n│   ├── main.py              # Main entry point (auto-runs on boot)\n│   ├── boot.py              # Boot sequence with hardware initialization\n│   ├── config.py            # WiFi credentials (1Password secrets injected)\n│   ├── wifi_manager.py      # WiFi connection with retry logic\n│   └── wifi_led_server.py   # HTTP server and LED control\n├── scripts/                 # Development scripts\n│   ├── restart_pico.py      # Restart Pico W\n│   ├── monitor_serial.py    # Serial monitor\n│   └── check_wifi_status.py # WiFi status check\n├── taskfiles/               # Task automation\n│   └── fw.yml               # Firmware deployment tasks\n└── Taskfile.dist.yml        # Main build automation\n```\n\n## Firmware Architecture\n\nThe firmware now uses a modular architecture for better maintainability:\n\n- **`boot.py`** - Runs first, handles hardware stabilization\n- **`main.py`** - Entry point that imports and starts the server\n- **`wifi_manager.py`** - Robust WiFi connection with 3 retry attempts\n- **`wifi_led_server.py`** - HTTP server providing REST API and web interface\n- **`config.py`** - Configuration with secure credential injection\n\n## Development\n\nThe project uses modern Python tooling:\n\n- **Black** - Code formatting\n- **isort** - Import sorting\n- **Ruff** - Fast linting\n- **Task** - Build automation\n- **1Password CLI** - Secure credential injection\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkarter%2Fstomp_station","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkarter%2Fstomp_station","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkarter%2Fstomp_station/lists"}