This runs as a system service on Raspberry Pi inside my “lofipi” speaker to automatically stream music from YouTube playlists on startup.

For full build instructions, see:


For input, a tone knob and a pause/skip button are connected to GPIO.

A PWM fan connected by GPIO will have its speed set to 50% on startup by default.

Check out the default settings, which you can override by copying that file to /etc/lofipi-mpv.conf and editing them appropriately.


Install me with:

sudo dpkg -i lofipi-mpv_1.0.0-0~bullseye0_armhf.deb


You can build me as a deb by:

sudo apt install debhelper nodejs npm
dpkg-buildpackage --build=binary -uc -us


View Github