duracell80 / ArgonOne-Radio

0 stars 0 forks source link

Control MPD Playback via USB Air Mouse #8

Closed duracell80 closed 4 years ago

duracell80 commented 4 years ago

Air mouses for Android TV devices typically have simple layouts and media control buttons. Since the usecase of headless means there is no screen an airmouse doesn't need to have a cursor/pointer function.

Investigate if it's possible to control MPD using the buttons on an airmouse thus not needing line of sight to Argon One.

Target device T2 Fly Mouse. https://i.ebayimg.com/images/g/zDIAAOSwulde2Kq5/s-l400.jpg

Rune thread: https://www.runeaudio.com/forum/2-4ghz-airmouse-as-remote-t3119-10.html

Project: https://unfix.org/projects/empcd/

duracell80 commented 4 years ago

Work is progressing here, I had some .intrc stuff going but I'm gonna switch direction and go with a continuous listening script listening for the A B C D from the DPAD on the remote.

The prototype approach I have in the car at the moment works super well, but gets in the way when using terminals like putty. The MPD playlist is on loop so upon reaching the last station forward then loops back round to the start. Left and Right keys control the volume.

Holding the power button on the remote turns the radio off.

duracell80 commented 4 years ago

Implemented ... UP and Down to skip stations, Left and Right to change volume.