An open API service indexing awesome lists of open source software.

https://github.com/chme/pidi-mpris

Control MPRIS media players with a Pirate Audio Raspberry Pi add-on
https://github.com/chme/pidi-mpris

mpris pirate-audio raspberry-pi st7789

Last synced: 2 months ago
JSON representation

Control MPRIS media players with a Pirate Audio Raspberry Pi add-on

Awesome Lists containing this project

README

          

# Control MPRIS media players with a Pirate Audio Raspberry Pi add-on

## pidi-mpris

__pidi-mpris__ allows you to control a MPRIS capable media player with
a [Pirate Audio Raspberry Pi add-on](https://shop.pimoroni.com/collections/pirate-audio).

It displays the album cover art for the current song on the Pirate Audio display
([ST7789 display](https://github.com/pimoroni/st7789-python)) and assigns playback control
commands to the four buttons A, B, X and Y (active low connected to BCM 5, 6, 16, and 20).

Tested on a headless Raspberry Pi 3 A+ to control [Shairport Sync](https://github.com/mikebrady/shairport-sync).

## Button Mapping

| Button | Artwork Screen | Info Screen | Gif Screen |
| ------ | -------------- | ----------- | ---------- |
| A | Skip to previous song | Skip to previous song | _not assigned_ |
| B | Show next screen | Show next screen | Show next screen |
| B (3s long press) | Turn display on/off | Turn display on/off | Turn display on/off |
| X | Skip to next song | Skip to next song | _not assigned_ |
| Y | Toggle play / pause | Toggle play / pause | Cycle through configured gif images |

## Pictures

Cover artwork

![coverart](pictures/pirate-audio-coverart.jpg)

Now playing

![coverart](pictures/pirate-audio-info.jpg)

Animated GIF

![coverart](pictures/pirate-audio-gif.jpg)