PiratePlayer
While there are other good software for audio playing, none of them works fully offline (mopidy) or doesn't natively support GPIO buttons (omxplayer): PiratePlayer to the rescue!
HOW-TO use
while browsing menu:
press A to scroll up
press B to scroll down
press X to select current file
press Y to go back
while playing:
press A to stop and go back to menu
press B to decrease volume
press X to play//pause
press Y to increase volume
Hardware needs
- Raspberry pi, a cheap model like the zero-w works fine
- Pimoroni's pirate-audio hat, or hack together some DIY
- (optional) 3.7v LiPo + 5v regulator or something like a LiPo shim
Install deps
Install requirements for gstreamer and hifiberry dac
then make sure you have installed:
gobject-introspection libgirepository1.0-dev libcairo2-dev
and enable GPIO SPI - check RPiconfig if not sure how
Setup dev environment
PiratePlayer runs with python >= 3.5
$ virtualenv venv
$ . venv/bin/activate
$ pip3 install --editable .
$ pirateplayer
Install as systemd service (from python module)
install pirateplayer from pip
launch install.sh
Release files for pirateplayer 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pirateplayer-0.3.3.tar.gz | 290.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pirateplayer-0.3.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 580.3 kB
Release files / pirateplayer-0.3.3.tar.gz
| Download URL | pirateplayer-0.3.3.tar.gz |
|---|---|
| Size | 290.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c81277c6c1a0a769e6740c4cd4db74ef1b00096b059c74cd79cd69ed37b17b6
|
|
BLAKE2b-256 checksum How to use checksums |
78fc68fd41acec73659cbeb384d7ed0710730c5092c12f381aa706a7bc5ecadf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3
|
Release files / pirateplayer-0.3.3-py3-none-any.whl
| Download URL | pirateplayer-0.3.3-py3-none-any.whl |
|---|---|
| Size | 290.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d2e40eef4e23ca180c65102079be79ee5e9b098724f8f9119bb0322eafc302b
|
|
BLAKE2b-256 checksum How to use checksums |
73cc1dd31b93466dc969bebc8221938758510a13e596f811ddfa126459aed9df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3
|