Skip to content

dmd/nkplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NumKey Music Player

Lets you play music (a playlist, using musicpd) by typing a number on a standalone numeric keypad, like a jukebox.

I have this installed on RPIs in my kids' rooms, with no screen, and just a numeric keypad and speaker attached.

I just have it start on boot. Poor man's daemon - not even dealing with systemd, having the pi boot without password straight to terminal (no X), and in .profile:

if [[ $(tty) == '/dev/tty1' ]]; then
   setleds -D +num
   sudo kbdrate -d 9001 # so mashing key doesn't hurt
   mpd
   cd nkplay
   while true; do
       ./nkplay.py
   done
fi

notes to self for getting it working in our house

sudo apt install mpd mpc python3-pip
sudo pip install python-musicpd getch 

sudo apt install shairport-sync  # if you want airplay support too

/etc/mpd.conf edits:

music_directory         "/home/dmd/musicplayer"
playlist_directory              "/home/dmd/musicplayer"

audio_output {
        type            "alsa"
        name            "My ALSA Device"
        mixer_type      "software"      # optional
        mixer_device    "default"       # optional
        mixer_control   "PCM"           # optional
}

About

numkey pad based mp3 player

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published