Jan
14
comment Autostart a program comprising GPIO-commands
Hallo Ingo, ich kriege nach "sudo systemctl enable test4.service die Fehlermeldung :'The unit files have no installation config (WantedBy, RequiredBy ,,,,etc) in the [Install] section and DefaultInstance for template units. This means they are not meant to be enabled using systemctl." Das Programm (Eine LED wird von Raspery GPIO pin 7gespeist) funktioniert nicht. Hast Du eine Idee, warum nichtt? Das Programm läuft perfekt, wenn man das Script mit 'python3 test4' manuell startet und ist mit 'sudo chmod a+x test4" ausführbar gemacht worden.
Jan
14
comment Autostart a program comprising GPIO-commands
Dear Dmitry, 1.) the program should start just before GUI. 2.) the program did not start at all. No error message appeared. Spaciba! Klaus
Jan
12
comment Autostart a program comprising GPIO-commands
Dear G-Trawo, thanks for your efforts. I have to confess that even wirh your support I failed so far. My rc.local entry reads as: #!/bin/sh -e /usr/bin/python/home/pi/test3.py. The program is the easiest possible test program, light a LED (pin7) as follows: #!/usr/bin/python import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) import swys, time GPIO.setup(7, GPIO.OUT) GPIO.output(7, GPIO.HIGH) time.sleep(10) GPIO.output(7, GPIOI.LOW) GPIO.cleanup() sys.exit() What is wrong? Kind regards! Klaus
Jan
10
comment Autostart a program comprising GPIO-commands
Now my rc.local-file reads as: #!/usr/bin/python /home/pi/test3.py It is executable and can manually be tested. Unfortunately the program does not start automatically when starting the PC.
Jan
10
comment Autostart a program comprising GPIO-commands
I can start the iprogram manually without any problem.
Jan
10
comment Autostart a program comprising GPIO-commands
Tkanks, dear G.Trawo, I added the line /usr/bin/test3.py
Jan
8
asked Autostart a program comprising GPIO-commands