Giter VIP home page Giter VIP logo

mpd_web_gui's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.