# Using the phat buttons with raspotify

**URL:** <https://forums.pimoroni.com/t/using-the-phat-buttons-with-raspotify/7839>\
**Category:** Raspberry Pi\
**Created:** [May 31, 2018, 6:53pm UTC](https://forums.pimoroni.com/t/using-the-phat-buttons-with-raspotify/7839 "2018-05-31T18:53:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rototom](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/rototom/32/4163_2.png) [@rototom](https://forums.pimoroni.com/u/rototom)\
**Post date:** [May 31, 2018, 6:53pm UTC](https://forums.pimoroni.com/t/using-the-phat-buttons-with-raspotify/7839/1 "2018-05-31T18:53:54Z")

</div>

Can I use the buttons on my pirateradio with raspotify?

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [June 1, 2018, 10:43am UTC](https://forums.pimoroni.com/t/using-the-phat-buttons-with-raspotify/7839/2 "2018-06-01T10:43:41Z")

</div>

I suspect that it’s possible, but I’m not so sure if it’s feasible.

It looks like raspotify is just a wrapper for librespot which you can find the source for here: [https://github.com/librespot-org/librespot](https://github.com/librespot-org/librespot)

Neither of them have particularly comprehensive documentation… or any documentation that I can find! So it would take some ruthless digging through the source, or poking the librespot binary to see if it has any options for remote control.

---

<div class="post-metadata">

**Author:** ![rototom](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/rototom/32/4163_2.png) [@rototom](https://forums.pimoroni.com/u/rototom)\
**Post date:** [June 1, 2018, 11:34pm UTC](https://forums.pimoroni.com/t/using-the-phat-buttons-with-raspotify/7839/3 "2018-06-01T23:34:30Z")

</div>

Ok, thank you!  
I dont want to use raspotify either, I just want to use spotify on my radio using my phone to control. Its mainly meant as a radioplay device for my daughter.  
Could I arrange this using “pure” mopidy? The mopidy mobile app does not let me view albums from an artist I found which is an important feature to play radioplays…

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [June 5, 2018, 10:56pm UTC](https://forums.pimoroni.com/t/using-the-phat-buttons-with-raspotify/7839/4 "2018-06-05T22:56:03Z")

</div>

I’ve barely scratched the surface of mopidy, so I’m not sure! Does it support keyboard control, or plugins? It’s certainly possible to inject keyboard events from Python if it does the former.
