From 227d4fbf9906ee4fcbc2102fbf52e81d82aa2c22 Mon Sep 17 00:00:00 2001 From: Tilman Date: Sun, 10 Feb 2019 19:55:44 +0100 Subject: [PATCH] mount to be included in path --- code/qudio.py | 2 +- notes.md | 30 +++++++++++++++++------------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/code/qudio.py b/code/qudio.py index 140fc97..8ec969f 100644 --- a/code/qudio.py +++ b/code/qudio.py @@ -14,7 +14,7 @@ logging.basicConfig(level=logging.INFO, format='%(asctime)s %(levelname)s - %(me logging.info('Initializing') # Configuration -MUSIC_BASE_DIRECTORY = "mnt/NAS/" +MUSIC_BASE_DIRECTORY = "mnt/" SOUND_SCANNING = "mnt/INTERNAL/qudio/sounds/scanning.mp3" SOUND_SCAN_FAIL = "mnt/INTERNAL/qudio/sounds/fail-05.mp3" QR_SCANNER_TIMEOUT = 4 diff --git a/notes.md b/notes.md index 4287355..b47b9be 100644 --- a/notes.md +++ b/notes.md @@ -28,7 +28,7 @@ Zien: * ssh volumio@qudio.local * Activate software mixer * sudo apt-get update -* sudo apt-get install fswebcam zbar-tools +* sudo apt-get install fswebcam zbar-tools mc * lsusb && ls /dev/video* * fswebcam -r 320x240 -d /dev/video0 -v /data/backgrounds/webcam-test.jpg * http://192.168.178.31/backgrounds/webcam-test.jpg @@ -36,26 +36,30 @@ Zien: * uname -a && cat /etc/os-release ## Python 3.6 minimum - https://www.scivision.co/compile-install-python-beta-raspberry-pi/ - sudo apt-get install libffi-dev libbz2-dev liblzma-dev libsqlite3-dev libncurses5-dev libgdbm-dev zlib1g-dev libreadline-dev libssl-dev tk-dev build-essential libncursesw5-dev libc6-dev openssl git + https://gist.github.com/dschep/24aa61672a2092246eaca2824400d37f + sudo apt-get install build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev - https://gist.github.com/dschep/24aa61672a2092246eaca2824400d37f | https://gist.github.com/SeppPenner/6a5a30ebc8f79936fa136c524417761d cd ~ - wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz - tar xf Python-3.7.2.tar.xz - cd Python-3.7.2 + wget wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz + tar xf Python-3.6.5.tar.xz + cd Python-3.6.5 ./configure make - sudo make altinstall --> Problem mit OpenSSL - python3.7 --> quit() + sudo make altinstall --> Problem mit OpenSSL bei Python 3.7 + Could not build the ssl module! + Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl with X509_VERIFY_PARAM_set1_host(). + LibreSSL 2.6.4 and earlier do not provide the necessary APIs, https://github.com/libressl-portable/portable/issues/381 + + python3.6 --> quit() sudo easy_install-3.6 -U pip # https://stackoverflow.com/a/34580922/3761783 --> OpenSSL fehlt! - sudo pip3.7 install --upgrade pip - sudo pip3.7 install socketio-client - sudo pip3.7 install RPi.GPIO - python3.7 test.py + sudo pip3.6 install --upgrade pip + sudo pip3.6 install socketio-client + sudo pip3.6 install RPi.GPIO + python3.6 test.py +passwd