- raspberry Pi v1 B
- Adafruit PiTFT - 2.8" Touchscreen 320x240px (tuto install)
- Philips SD HD card 16Gb
I used the last image from adafruit downloadable here.
Install python3 on the raspberry.
Install pyQT on the raspberry.
Install mplayer2 on the raspberry.
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
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
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