My first piece of code is inside of my pc which detects characters at a part of the screen. Once it detects a certain sequence then it needs to send a signal to the raspberry pi which controls LEDs. I know that I can use SSH to run things remotely on a raspberry pi. But how do I automate it?
For example if I have the following code inside of my main pc
if numbs == [1,1,2]:
#enter this code into the ssh to run leds.py on the raspberry
The pi is running standard Linux based raspbian.
If you have any other suggestions on better ways of doing this I'm open to ideas.