Skip to content
c-m0s edited this page Jan 5, 2019 · 11 revisions

Welcome to the RPi-Jukebox-RFID wiki! #General

Rotate Screen on RPi

How to rotate the screen on a Raspberry Pi 3

1 - sudo nano /boot/config.txt.
2 - move all the way down to the end of the file.
3 - add the line: display_rotate=3.
4 - Press ctrl + o to save and ctrl + x to exit the file.

displayx_rotate=3 bedeutet Bildschirm cw 90 degrees drehen, damit dreht sich die Darstellung ccw 90.

Installation

cd; rm stretch-install-*; wget https://raw.githubusercontent.com/MiczFlor/RPi-Jukebox-RFID/master/scripts/installscripts/stretch-install-default.sh; chmod +x stretch-install-default.sh; ./stretch-install-default.sh

  • sudo iwconfig wlan0 power off
  • Activate SSH via sudo raspi-config:

Select Interface Options and then SSH Enable/Disable remote command line... to enable the remote access.

  • sudo apt-get update

  • sudo apt-get install apt-transport-https samba samba-common-bin python-dev python-pip gcc linux-headers-4.9 lighttpd php7.0-common php7.0-cgi php7.0 php7.0-fpm at mpd mpc mpg123 git ffmpeg python-mutagen

  • sudo smbpasswd -a pi user : pi password : raspberry

  • apt-cache search linux-headers- --> sudo apt-get install linux-headers-4.9 (Highest linux-headers-#)

  • stopped process at lighttpd: web server for web app

pi@raspberrypi:~ $ ls -la /dev/input/by-id/ insgesamt 0 drwxr-xr-x 2 root root 180 Dez 7 12:33 . drwxr-xr-x 4 root root 240 Dez 7 12:33 .. lrwxrwxrwx 1 root root 9 Dez 7 12:33 usb-413d_2107-event-kbd -> ../event0 lrwxrwxrwx 1 root root 9 Dez 7 12:33 usb-413d_2107-if01-event-mouse -> ../eve nt1 lrwxrwxrwx 1 root root 9 Dez 7 12:33 usb-413d_2107-if01-mouse -> ../mouse0 lrwxrwxrwx 1 root root 9 Dez 7 12:33 usb-C-Media_Electronics_Inc._USB_PnP_Sou nd_Device-event-if03 -> ../event2 lrwxrwxrwx 1 root root 9 Dez 7 12:33 usb-Lenovo_ThinkPad_Compact_USB_Keyboard _with_TrackPoint-event-kbd -> ../event3 lrwxrwxrwx 1 root root 9 Dez 7 12:33 usb-Lenovo_ThinkPad_Compact_USB_Keyboard _with_TrackPoint-if01-event-mouse -> ../event4 lrwxrwxrwx 1 root root 9 Dez 7 12:33 usb-Lenovo_ThinkPad_Compact_USB_Keyboard _with_TrackPoint-if01-mouse -> ../mouse1

  • Autologin after boot When you start the Phoniebox, it needs to fire up without stalling at the login screen. This can also be configured using the RPi config tool. Open a terminal to star the RPi configuration tool. $ sudo raspi-config Select Boot options and then Desktop / CLI. The option you want to pick is Console Autologin - Text console, automatically logged in as 'pi' user.

RFID-Reader not working:

Fix is here:

https://github.com/MiczFlor/RPi-Jukebox-RFID/issues/231

Hi, I had the problem that my reader was listed twice:

python RegisterDevice.py
Choose the reader from list
0 HID 413d:2107
1 HID 413d:2107

>>> from evdev import list_devices
>>> list_devices()
['/dev/input/event1', '/dev/input/event0']

The problem was, that only event0 works, but RPi-Jukebox-RFID/scripts/Reader.py chooses event1, because it's the first one in the list with the devices name. So I kind of fixed it by removing the break statement in Reader.py:

for device in devices:
            if device.name == deviceName:
                self.dev = device
                #break

I have no Idea, why the device is listed twice. But now it works and that is fine.

--> Image dieser Version: 2018-12-10.

#Volume in Webinterface not adjustable, GPIO for Volume don't work

https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/INSTALL-stretch

  • Issue: I am using a USB-Sound-Device, that's the reason.

Taken from Doku: - https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/INSTALL-stretch

Maybe you need to change the audio iFace in the config file, too. By default it uses PCM which should work out of the box. If it does not work, try Master or Speakers. Here you can find more information on how to find the right audio iFace name in the section 'Create settings for audio playout'.

mixer_control "yourAudioIfaceNameHere" (you need to uncomment this line and change the audio iFace shortname) Then you need to update mpc:

mpc update

and also: https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/CONFIGURE-stretch#configAudioIFace

Troubleshooting:

Inside settings/Audio_iFace_Name is the iFace name of the sound card. By default for the RPi this would be PCM. But this does not work for every setup. If you are using phatbeat as a DAC for example, you need to change the content of Audio_iFace_Name from PCM to Master or Speaker. Other external sound cards might use different interface names. To see if PCM could work for you, type amixer sget PCM. To list all available iFace names, type amixer scontrols. If one is using an audio amplifier (like the pHAT BEAT) without a physical volume limiter (like a potentiometer) your Phoniebox can get very loud "accidentally". The maximal volume can be set in settings/Max_Volume_Limit. echo "PCM" > /home/pi/RPi-Jukebox-RFID/settings/Audio_iFace_Name echo "3" > /home/pi/RPi-Jukebox-RFID/settings/Audio_Volume_Change_Step echo "100" > /home/pi/RPi-Jukebox-RFID/settings/Max_Volume_Limit echo "0" > /home/pi/RPi-Jukebox-RFID/settings/Idle_Time_Before_Shutdown

Clone this wiki locally