nightshift
This commit is contained in:
+61
-2
@@ -42,7 +42,7 @@ sudo nano /etc/ntp.conf
|
||||
sudo /etc/init.d/ntp restart
|
||||
date
|
||||
|
||||
sudo apt install lirc zbar-tools mc moc python3 python-rpi.gpio python3-rpi.gpio
|
||||
sudo apt install lirc zbar-tools mc moc fswebcam python3 python-rpi.gpio python3-rpi.gpio
|
||||
|
||||
# PHAT DAC (https://learn.pimoroni.com/tutorial/phat/raspberry-pi-phat-dac-install)
|
||||
curl -sS get.pimoroni.com/phatdac | bash
|
||||
@@ -51,6 +51,65 @@ curl -sS get.pimoroni.com/phatdac | bash
|
||||
mocp
|
||||
sudo nano /etc/modprobe.d/alsa-base.conf
|
||||
|
||||
# Webcam-Test
|
||||
python3 lighton.py
|
||||
sudo fswebcam -r 320x240 -d /dev/video0 -v ~/test.jpg
|
||||
python3 lightoff.py
|
||||
|
||||
|
||||
# enable lirc in /boot/config.txt and add parameters
|
||||
sudo nano /boot/config.txt
|
||||
# # Uncomment this to enable the lirc-rpi module
|
||||
# dtoverlay=lirc-rpi,gpio_in_pin=23,gpio_out_pin=22
|
||||
|
||||
##### DIESER SCHRITT HILFT NICHTS. Man muss immer noch lirc manuell laden mit "sudo lircd -d /dev/lirc0", bevor man einen Befehl absetzen kann (s.u.).
|
||||
# add lirc configuration to /etc/modules (gpio_in_pin wird mit ungenutztem PIN belegt, weil der default PIN 18 schon vom PHAT DAC verwendet wird)
|
||||
sudo nano /etc/modules
|
||||
# lirc_dev
|
||||
# lirc_rpi gpio_in_pin=23 gpio_out_pin=22
|
||||
#####
|
||||
|
||||
# add lirc configuration to /etc/lirc/hardware.conf
|
||||
sudo nano /etc/lirc/hardware.conf
|
||||
# LIRCD_ARGS="--uinput"
|
||||
# LOAD_MODULES=true
|
||||
# DRIVER="default"
|
||||
# DEVICE="/dev/lirc0"
|
||||
# MODULES="lirc_rpi"
|
||||
# LIRCD_CONF=""
|
||||
# LIRCMD_CONF=""
|
||||
|
||||
sudo reboot
|
||||
|
||||
# copy the JBL remote configuration in /etc/lirc/lircd.conf
|
||||
# --> lirc_jbl_iiip.conf
|
||||
|
||||
sudo /etc/init.d/lirc restart
|
||||
|
||||
# turn on music, list available commands and test remote control
|
||||
mocp -S && mocp -l ~/adele.mp3
|
||||
sudo lircd -d /dev/lirc0
|
||||
irsend LIST JBLIIIP ""
|
||||
## Der Befehl muss 2x schnell hintereinander gesendet werden. Offensichtlich muss die Konfiguration noch verbessert werden.
|
||||
irsend SEND_ONCE JBLIIIP KEY_MUTE
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# ------ HIER WEITER
|
||||
|
||||
|
||||
|
||||
# install python bottle web framework - http://bottlepy.org
|
||||
sudo apt-get install python-pip
|
||||
sudo pip install bottle
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -62,7 +121,7 @@ sudo nano /etc/modprobe.d/alsa-base.conf
|
||||
|
||||
|
||||
|
||||
# GEHT LEIDER NICHT WEGEN KNISTERN
|
||||
# GEHT LEIDER NICHT WEGEN KNISTERN (BRUMMSCHLEIFE)
|
||||
# USB Soundkarte verbinden, dann
|
||||
lsusb
|
||||
alsamixer # -> zeigt oben das aktive Sounddevice an. Mit F6 kann man die Liste aller Devices anzeigen
|
||||
|
||||
Reference in New Issue
Block a user