Skip to content

Harbardr/JukeBox

Repository files navigation

JukeBox

Parts used for v1

  • raspberry Pi v1 B
  • Adafruit PiTFT - 2.8" Touchscreen 320x240px (tuto install)
  • Philips SD HD card 16Gb

Software adn configuration

OS

I used the last image from adafruit downloadable here.

python3

Install python3 on the raspberry.

pyQT5 and pyuic5

Install pyQT on the raspberry.

Mplayer

Install mplayer2 on the raspberry.

Modifiy alsa.conf

ALSA.CONF

Modify autostart

sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
#@openbox
#@unclutter -idle 0
@/bin/bash /home/pi/Documents/python/JukeBox/listMusic.sh
@/usr/bin/python3 /home/pi/Documents/python/JukeBox/main.py > /media/JukeBox/juke.log
@point-rpi

Auto-mount USB Key

Step 1 - Plug the usb key Step 2 – Identify The Devices Unique ID In order to find the unique reference (UUID) for your drive run the following command in the terminal :

ls -l /dev/disk/by-uuid/

The line will usually refer to “/sda” and in this example it is “sda1”. My ID is “12AB-3456”. Step 3 – Create a Mount Point

sudo mkdir /media/JukeBox
sudo chown -R pi:pi /media/JukeBox

Step 4 – Auto Mount

sudo nano /etc/fstab

Then add the following line at the end :

UUID=12AB-3456 /media/JukeBox vfat auto,nofail,noatime,users,rw,uid=pi,gid=pi 0 0

Qt Creator

I used Qt Creator on mac to create the interface.

Use the command pyuic5 to transform the .ui to .py pyuic5 mainwindow.ui > mainwindow_auto.py

Link

PiTFT

OS Raspbian with PiTFT

Auto Mount

Mplayer

ALSA.CONF

mplayer doc

mplayer playlist

autostart

autostart without GUI

PyQT GUI

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published