Coder Social home page Coder Social logo

jukebox's Introduction

Noddy jukebox for raspberry pi (also works on a mac)

The kids made me build this.

"Here's how a jukebox works, Daddy: you press some numbers and it plays songs. Then you write all the songs down in a book, ok?"

So, this is a simple thing where you press some numbers and it plays some songs. I haven't written them down yet.

running it

It requires libvlc.

Usage:

$ python juke.py music_folder

To play a song type the two digit album_id and then the two digit song_id. You can play the whole album by using 00 as the song_id. Type a full-stop '.' to stop playing or to erase a number. Type 'q' to quit.

the music folder

The music folder needs to be structured as follows:

  • [album_id] album name/
    • [song_id] song name.[mp3|mp4]

So, given

  • 50 Some Album/
    • 01 First Song.mp3
    • 02 Secong Song.mp3

5001 would play First Song and 5002 Second Song and 5000 The whole album. See, easy?

Clearly it only supports 100 albums (00-99)

optional LCD display

If the environment variable USE_LCD is set, the status output is written to the serial port /dev/ttyAMA0 - which is where I've attached a serial two character LCD display to the Raspberry PI.

jukebox's People

Contributors

techbelly avatar

Stargazers

Antony avatar Craig Hissett avatar Tom Armitage 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.