GithubHelp home page GithubHelp logo

jukebox's Introduction

jukebox

Restore the functionality of a jukebox.

Info

The plan

Stage 1

Hide a Raspberry Pi with WiFi dongle and external speakers in the ample guts of the Jukebox.

Using a web interface you can select which song to play.

Stage 2

Connect to the selection switches (via an arduino?) to allow songs to be selected the old fashined way.

Stage 3

Add and amplifier and reuse the original speakers.

Installation

Stage 1 is based on a Raspberry Pi with a standard Raspian image.

packages

You need the sox package with all the supported formats to play the audio files, as well as a few utilities:

sudo apt-get install libsox-fmt-all sox screen markdown html2ps

and a web-server:

sudo apt-get install apache2

Yes, I know apache is overkill, but I'm familiar with it ...

Probaly git too (see below):

sudo apt-get install git

files

Clone this repo into ~/GIT/junkebox:

mkdir ~/GIT
cd ~/GIT
git clone https://github.com/sprinkmeier/jukebox.git

Install the CGI script:

cd ~/GIT/jukebox
sudo cp --update --verbose ./jukebox.cgi /usr/lib/cgi-bin/
sudo ln --symbolic /dev/shm/songs.csv /var/jukebox/

and override the 'welcome' page to redirect to it:

sudo cp --update --verbose index.html /var/www/index.html

Someplace to store the audio files:

sudo mkdir /var/jukebox/
sudo chown www-data.www-data /var/jukebox/
sudo ln --symbolic --force /var/jukebox/ /var/www/

The link allows you to download files.

autostart

Edit the auto-start file:

sudo vi /etc/rc.local

To include the following:

screen -d -m su - pi -c '/home/pi/GIT/jukebox/jukebox.py'

jukebox's People

Contributors

sprinkmeier avatar

Watchers

 avatar

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.