/mpd_web_gui

A flask server serving as a GUI for an MPD server

Primary LanguagePython

MPD Web GUI

A flask server serving as a GUI for an MPD server

Changes

  • Updated to python3.7
  • updated to latest flask-socketio
  • get standard webpage javascripts from cdn

Requirements

Here is an installation tutorial for OSX.

MPD:

Install MPD:
Via homebrew: brew install mpd

Configuration: vim ~/.mpdconf

Example config:

# Required files
db_file            "~/.mpd/database"
log_file           "~/.mpd/log"

# Optional
music_directory    "~/Music"
playlist_directory "~/.mpd/playlists"
pid_file           "~/.mpd/pid"
state_file         "~/.mpd/state"
sticker_file       "~/.mpd/sticker.sql"

Optional: run mpd (will be started automatically): mpd

Python

Create virtualenv: virtualenv env
Activate virtualenv: source env/bin/activate
Install dependencies: pip install -r requirements.txt
Or manually: pip install flask && pip install python-mpd2 && pip install flask-socketio && pip install gevent

Running server

python player.py

Then go to: http://localhost:5000

Screenshot

Screenshot

What is working

  • A very simple three pane music library (artists > albums > songs)
  • Play a song with a click on the play arrow
  • A status bar showing the current song (refreshes on song play/pause)
  • Pause/resume a song from the status bar
  • Show song progress
  • Socket communication for UI updates

What needs to be done

  • Implement a playlist
  • Show album cover

In the far far future

  • Change loudness of songs
  • Play a random song
  • Allow more complicated queries (like all songs to a genre)
  • Make GUI more mobile friendly
  • Implement more metadata like song rating
  • Album art downloader with sharpening/resizing/contrast
  • Lyrics downloader