Giter Club home page Giter Club logo

jukebox's Introduction

Jukebox

This simple project is meant to drive VLC using a numeric keypad. Uses hidraw to acquire and decode input data from keypad. Uses STDOUT (or TCP/IP with netcat) to communicate to VLC running in server mode.

Usage

Create a directory where all media files to played are located (e.g. /home/pi/music). Put all contents in such directory organizing them in sub-directories with numeric names (e.g. 1, 45, 345,...). Use symbolic links for convenience. To play all media contained in one of the directories, just enter the corresponding number with the keypad and press Enter. If pressing Enter twice, the playback is stopped and playlist is cleared. Use the other keypad keys for controlling:

  • volume: +, -
  • fast forward: numlock
  • playlist navigation: /, *
  • pause: .

How to install and run on a Raspberry board

Install vlc and optionally netcat.

Edit /etc/rc.local and add the following line to it to launch VLC at startup

/home/pi/jukebox/jukebox /home/pi/music | runuser -l pi -c "/usr/bin/vlc" &

If using netcat, add instead:

runuser -l pi -c "/usr/bin/vlc --intf rc --rc-host :50000 &"
sleep 5
/home/pi/jukebox/jukebox /home/pi/music | /bin/nc localhost 50000 &

A Raspberry power button can be easily added: see Pi Power Button.

The Activity LED can be retargeted following instructions provided here: Activity LED. In short, add the following line

dtparam=act_led_gpio=17

to /boot/config.txt

jukebox's People

Contributors

siorpaes avatar

Watchers

James Cloos 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.