diff --git a/code/piplayer2.py b/code/piplayer2.py index 6fb6666..9fc233c 100644 --- a/code/piplayer2.py +++ b/code/piplayer2.py @@ -10,7 +10,7 @@ import os # Configuration -MUSIC_BASE_DIRECTORY = "/media/audio/" +MUSIC_BASE_DIRECTORY = "/home/pi/audio/" SOUND_SCANNING = "/home/pi/piplayer2/sounds/scanning.mp3" SOUND_OK = "/home/pi/piplayer2/sounds/ok.mp3" SOUND_SCAN_FAIL = "/home/pi/piplayer2/sounds/fail.mp3" diff --git a/code/test/prevtest.py b/code/test/prevtest.py new file mode 100644 index 0000000..fe45a65 --- /dev/null +++ b/code/test/prevtest.py @@ -0,0 +1,16 @@ +import subprocess + +out, err = subprocess.Popen(['mocp','--info'], stdout=subprocess.PIPE).communicate() +out = out.splitlines() + +#ls = subprocess.Popen(['mocp','--info'], stdout=subprocess.PIPE) +#out = ls.stdout.readlines() + +for s in out: + s = s.decode("utf-8") + if s.startswith('CurrentSec'): + print(s) + print(s.rfind(' ')) + print(s[s.rfind(' ')+1:]) + sec = s[s.rfind(' ')+1:] + print(int(sec) > 10) diff --git a/installation.txt b/installation.txt index 93b25d3..8b1c616 100644 --- a/installation.txt +++ b/installation.txt @@ -34,6 +34,11 @@ sudo reboot sudo nano /etc/rc.local # /usr/bin/tvservice -o +# Disable the ACT LED. +sudo nano /boot/config.txt +# dtparam=act_led_trigger=none +# dtparam=act_led_activelow=off + sudo apt install ntp sudo /etc/init.d/ntp restart sudo nano /etc/ntp.conf diff --git a/misc/QR-Code-Vorlage.odt b/misc/QR-Code-Vorlage.odt index 89d2e12..25c8e44 100644 Binary files a/misc/QR-Code-Vorlage.odt and b/misc/QR-Code-Vorlage.odt differ