Skip to content

rwhit/musicserver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

musicserver

Quick flask based music server for use on a rasberry pi

#Dependencies apt-get update sudo apt-get install build-essential libao-dev libmad0-dev libfaad-dev git libgcrypt11-dev yasm make pkg-config python-dev mplayer postgresql libpq-dev libcap2-bin autoconf libcurl4-gnutls-dev lsof pianobar

wire pianobar to flask

# see configcopy dir & note in scripts/install.sh - why not doc'ed?!

configure alsa

vim /usr/share/alsa/alsa.conf
# pcm.front cards.pcm.front => pcm.front cards.pcm.default

Python dependencies

sudo apt-get install python-pip
sudo pip install flask flask-socketio requests eventlet psycopg2

Allow python to bind to port 80 (if non-root user)

sudo setcap 'cap_net_bind_service=+ep' $(readlink -f $(which python))

Setup db schema

cd db
./setup.sh

install crontab & service, Start server

cd scripts
./install.sh

About

Quick flask based music server for use on a rasberry pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 49.5%
  • JavaScript 18.4%
  • HTML 16.5%
  • Shell 10.7%
  • CSS 4.9%