Hi leute
mein Oyhton-Skript startet gar nicht automatisch beim booten
hab wirklich alles versucht
in crontab steht ganz unten
@reboot python /home/pi/6.py
mein Skript:
#!/user/bin/python
from time import sleep
import os
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(27, GPIO.IN)
GPIO.setup(23, GPIO.IN)
GPIO.setup(24, GPIO.IN)
GPIO.setup(25, GPIO.IN)
GPIO.setup(05, GPIO.IN)
while True:
if ( GPIO.input(27) == True
os.system('sudo killall mpg321')
if ( GPIO.input(23) == False
os.system('mpg321 Taster1.mp3 &')
playing=1
if ( GPIO.input(24) == False
os.system('mpg321 Taster2.mp3 &')
playing=1
if ( GPIO.input(25) == False
os.system('mpg321 Taster3.mp3 &')able
playing=1
if ( GPIO.input(05) == False
os.system('mpg321 Taster4.mp3 &')
playing=1
sleep(0.2);
als ich es geöffnet habe stand das hier
the tesxt file 6.py seems to be execute script
...
bitte um Hilfe