-Skript auostart Probleme

  • 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

  • /etc/rc.local

    Ich kann da auch nichts mehr speichern

    ja sorry bin im Stress
    muss am Montag vorm Publikum mein Projekt präsentieren

    Einmal editiert, zuletzt von cy7 (14. Februar 2015 um 21:23)

Jetzt mitmachen!

Du hast noch kein Benutzerkonto auf unserer Seite? Registriere dich kostenlos und nimm an unserer Community teil!