Hallo, ich bin gerade an einem kleinen Projekt und möchte 4 verschiedene Programme die ich auf Python geschrieben habe über mein Handy via SSH ansteuern.
Das Programm habe ich erstellt indem ich mich mit dem PC via Putty SSH in das System eingeloggt habe. Das erste Programm heisst gpio.py. Erstellt habe ich es wie folgt:
nano gpio.py
-----Script-----
#!/usr/bin/python
import time
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(22, GPIO.OUT)
GPIO.output(22, GPIO.LOW)
time.sleep(10)
GPIO.output(22, GPIO.HIGH)
GPIO.cleanup()
---Script Ende---
Nun möchte ich das Script via Knopfdruck vom Handy starten können. Dazu habe ich die App Raspberry SSH heruntergeladen. Wo jetzt das Script aber hinterlegt ist und wie ich darauf zugreifen kann weiss ich nicht.
Danke schonmal in Voraus für eine Antwort.
Liebe Grüsse
Luca