Skip to main content

PiratePlayer is an offline player for Pirate Audio

Project description

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pirateplayer-0.3.1.tar.gz (289.8 kB view details)

Uploaded Source

Built Distribution

pirateplayer-0.3.1-py3-none-any.whl (289.9 kB view details)

Uploaded Python 3

File details

Details for the file pirateplayer-0.3.1.tar.gz.

File metadata

  • Download URL: pirateplayer-0.3.1.tar.gz
  • Upload date:
  • Size: 289.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3

File hashes

Hashes for pirateplayer-0.3.1.tar.gz
Algorithm Hash digest
SHA256 bab8abbceaea3f4a675df4140481e48e314d040a1919f8fc11f95358d5723ec4
MD5 2b45c6f7dea67eaa92702becef54b318
BLAKE2b-256 5c91400039b58cab09010c32d330300f670ef85b1ecaf7c91f8096fd0bdcf3af

See more details on using hashes here.

File details

Details for the file pirateplayer-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: pirateplayer-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 289.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3

File hashes

Hashes for pirateplayer-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d1f5679230401003484b638df90753954cfad6c2700d727ece85fff979a37ba8
MD5 449b4f3748eb80510a9ab62e005a1300
BLAKE2b-256 fe8d35a9d6385662f526eeb82534349bcd434a236b9c21041f911d9408211a20

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page