{"id":31059952,"url":"https://github.com/gxjansen/pirate-audio-mopidy-setup","last_synced_at":"2026-05-19T07:34:59.953Z","repository":{"id":313098430,"uuid":"1050037320","full_name":"gxjansen/pirate-audio-mopidy-setup","owner":"gxjansen","description":"Complete setup for Pimoroni Pirate Audio HAT with Mopidy on Raspberry Pi. Features automatic playlist loading, physical button controls, and hands-free operation.","archived":false,"fork":false,"pushed_at":"2025-09-03T21:22:06.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-06T17:51:40.673Z","etag":null,"topics":["audio","automation","gpio","mopidy","pimoroni","pirate-audio","python","raspberry-pi","systemd"],"latest_commit_sha":null,"homepage":null,"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/gxjansen.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-03T21:19:19.000Z","updated_at":"2025-09-03T21:22:10.000Z","dependencies_parsed_at":"2025-09-03T23:22:30.885Z","dependency_job_id":"48b6867c-c0a1-4a0a-a636-b472efae6ccb","html_url":"https://github.com/gxjansen/pirate-audio-mopidy-setup","commit_stats":null,"previous_names":["gxjansen/pirate-audio-mopidy-setup"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gxjansen/pirate-audio-mopidy-setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gxjansen%2Fpirate-audio-mopidy-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gxjansen%2Fpirate-audio-mopidy-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gxjansen%2Fpirate-audio-mopidy-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gxjansen%2Fpirate-audio-mopidy-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gxjansen","download_url":"https://codeload.github.com/gxjansen/pirate-audio-mopidy-setup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gxjansen%2Fpirate-audio-mopidy-setup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33206320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T07:16:55.748Z","status":"ssl_error","status_checked_at":"2026-05-19T07:16:54.366Z","response_time":58,"last_error":"SSL_read: 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":["audio","automation","gpio","mopidy","pimoroni","pirate-audio","python","raspberry-pi","systemd"],"created_at":"2025-09-15T09:55:12.471Z","updated_at":"2026-05-19T07:34:59.920Z","avatar_url":"https://github.com/gxjansen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pirate Audio Mopidy Setup\n\nA complete setup for using the Pimoroni Pirate Audio HAT with Mopidy music server on Raspberry Pi, featuring automatic playlist loading and physical button controls.\n\n## Features\n\n- 🎵 **Mopidy Music Server** with web interface (Iris)\n- 🔘 **Physical Button Controls** for play/pause, next/previous, volume\n- 📱 **ST7789 Display Support** with custom interface\n- 🎶 **Auto-load Playlists** on boot (no manual web interface interaction needed)\n- 🔄 **Auto-start Services** for hands-free operation\n- 🔊 **HiFiBerry DAC Audio** output\n\n## Hardware Requirements\n\n- Raspberry Pi (tested on Pi Zero 2WH)\n- Pimoroni Pirate Audio HAT (240x240 ST7789 display + 4 buttons + DAC)\n- MicroSD card (16GB+)\n- Audio files stored locally\n\n## Quick Start\n\n1. **Install base system:**\n   ```bash\n   ./scripts/install.sh\n   ```\n\n2. **Configure Mopidy:**\n   ```bash\n   ./scripts/configure-mopidy.sh\n   ```\n\n3. **Setup services:**\n   ```bash\n   ./scripts/setup-services.sh\n   ```\n\n4. **Add your audio files** to the configured media directory\n\n5. **Create playlist file** (see [Configuration Guide](docs/configuration-guide.md))\n\n6. **Reboot** and enjoy hands-free audio playback!\n\n## Button Controls\n\n- **A (Bottom Left)**: Play/Pause ▶️⏸️\n- **B (Left Side)**: Previous Track ⏮️\n- **X (Bottom Right)**: Next Track ⏭️\n- **Y (Top Right)**: Volume Toggle 🔊 (50% ↔ 70%)\n\n## Project Structure\n\n```\n├── docs/               # Documentation\n├── scripts/            # Installation scripts\n├── config/             # Configuration templates\n├── src/                # Python source code\n├── systemd/            # SystemD service files\n└── README.md           # This file\n```\n\n## Documentation\n\n- [Installation Guide](docs/installation-guide.md) - Detailed setup instructions\n- [Configuration Guide](docs/configuration-guide.md) - Config file explanations  \n- [Troubleshooting](docs/troubleshooting.md) - Common issues and solutions\n\n## Audio Files \u0026 Copyright\n\nThis project does NOT include audio files. You must provide your own legally obtained audio content. The project is designed to work with:\n- Local audio files (MP3, FLAC, etc.)\n- M3U/M3U8 playlists\n- Any format supported by GStreamer\n\n## Contributing\n\nContributions welcome! Please read the contributing guidelines and submit pull requests for any improvements.\n\n## License\n\nMIT License - See LICENSE file for details.\n\n## Acknowledgments\n\n- **Hardware Foundation**: Built using the excellent [Pimoroni Pirate Audio](https://github.com/pimoroni/pirate-audio) examples as reference for button handling\n- [Pimoroni](https://pimoroni.com/) for the excellent Pirate Audio HAT hardware\n- [Mopidy](https://mopidy.com/) music server project\n- [Mopidy-Iris](https://github.com/jaedb/iris) web interface","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgxjansen%2Fpirate-audio-mopidy-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgxjansen%2Fpirate-audio-mopidy-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgxjansen%2Fpirate-audio-mopidy-setup/lists"}