„installation-audiorakete.md“ ändern
This commit is contained in:
+43
-19
@@ -23,35 +23,59 @@ sudo easy_install-3.6 -U pip
|
|||||||
sudo pip3.6 install socketio-client
|
sudo pip3.6 install socketio-client
|
||||||
sudo pip3.6 install RPi.GPIO
|
sudo pip3.6 install RPi.GPIO
|
||||||
|
|
||||||
|
|
||||||
# copy directory audiorakete to /data/INTERNAL
|
# copy directory audiorakete to /data/INTERNAL
|
||||||
|
|
||||||
python3.6 /data/INTERNAL/audiorakete/test/lighton.py
|
python3.6 /data/INTERNAL/audiorakete/test/lighton.py
|
||||||
python3.6 /data/INTERNAL/audiorakete/test/lightoff.py
|
python3.6 /data/INTERNAL/audiorakete/test/lightoff.py
|
||||||
python3.6 /data/INTERNAL/audiorakete/test/lighton.py
|
python3.6 /data/INTERNAL/audiorakete/test/buttons.py
|
||||||
python3.6 /data/INTERNAL/audiorakete/test/lightoff.py
|
python3.6 /data/INTERNAL/audiorakete/test/sensor_tcst2103.py
|
||||||
python3.6 /data/INTERNAL/audiorakete/test/buttons.py
|
python3.6 /data/INTERNAL/audiorakete/test/lighton.py
|
||||||
python3.6 /data/INTERNAL/audiorakete/test/sensor_tcst2103.py
|
|
||||||
python3.6 /data/INTERNAL/audiorakete/test/lighton.py
|
|
||||||
fswebcam -d /dev/video0 -v webcam-test.jpg
|
|
||||||
python3.6 /data/INTERNAL/audiorakete/test/lightoff.py
|
|
||||||
fswebcam -d /dev/video0 -v webcam-test.jpg
|
|
||||||
python3.6 /data/INTERNAL/audiorakete/test/lighton.py
|
|
||||||
fswebcam -d /dev/video0 -v webcam-test.jpg
|
|
||||||
sudo shutdown -h now
|
|
||||||
python3.6 /data/INTERNAL/audiorakete/test/lighton.py
|
|
||||||
fswebcam -d /dev/video0 -v webcam-test.jpg
|
fswebcam -d /dev/video0 -v webcam-test.jpg
|
||||||
zbarcam --quiet --nodisplay --raw -Sdisable -Sqrcode.enable /dev/video0
|
zbarcam --quiet --nodisplay --raw -Sdisable -Sqrcode.enable /dev/video0
|
||||||
|
python3.6 /data/INTERNAL/audiorakete/test/lightoff.py
|
||||||
|
|
||||||
|
# disable HDMI
|
||||||
sudo /opt/vc/bin/vcgencmd get_throttled
|
sudo /opt/vc/bin/vcgencmd get_throttled
|
||||||
sudo /opt/vc/bin/tvservice -o
|
sudo /opt/vc/bin/tvservice -o
|
||||||
sudo nano /etc/rc.local
|
|
||||||
# /opt/vc/bin/tvservice -o --> rc.local
|
sudo nano /etc/rc.local
|
||||||
|
```
|
||||||
|
> ```
|
||||||
|
> /opt/vc/bin/tvservice -o
|
||||||
|
> ```
|
||||||
|
|
||||||
|
```
|
||||||
# disable PWR led in /boot/config.txt
|
# disable PWR led in /boot/config.txt
|
||||||
nano /boot/config.txt
|
nano /boot/config.txt
|
||||||
|
```
|
||||||
|
> ```
|
||||||
|
> # Disable the PWR LED
|
||||||
|
> dtparam=pwr_led_trigger=none
|
||||||
|
> dtparam=pwr_led_activelow=off
|
||||||
|
> ```
|
||||||
|
|
||||||
|
```
|
||||||
sudo nano /lib/systemd/system/audiorakete.service
|
sudo nano /lib/systemd/system/audiorakete.service
|
||||||
|
```
|
||||||
|
> ```
|
||||||
|
> [Unit]
|
||||||
|
> Description=audiorakete
|
||||||
|
> After=volumio.service
|
||||||
|
> Requires=volumio.service
|
||||||
|
>
|
||||||
|
> [Service]
|
||||||
|
> Type=simple
|
||||||
|
> ExecStart=/bin/bash -c 'exec python3.6 /data/INTERNAL/audiorakete/audiorakete.p$
|
||||||
|
> User=volumio
|
||||||
|
>
|
||||||
|
> [Install]
|
||||||
|
> WantedBy=multi-user.target
|
||||||
|
> ```
|
||||||
|
|
||||||
|
```
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
sudo systemctl enable qudio.service
|
sudo systemctl enable qudio.service
|
||||||
sudo systemctl enable audiorakete.service
|
sudo systemctl enable audiorakete.service
|
||||||
sudo reboot
|
sudo reboot
|
||||||
tail -f /tmp/audiorakete.log
|
tail -f /tmp/audiorakete.log
|
||||||
```
|
```
|
||||||
Reference in New Issue
Block a user