Hi,
Is it possible to run a python script on Raspberry Pi remote from Raspberry Pi local (I don't know another word).
The purpose is that I want to run a python script on a second Raspi when I set a switch on the local Raspi. So the code is only starting when I switch it on.
I used this command:
cat hello.py | ssh user@192.168.1.101 python -
When I deploy I get the message that the pyfiles doesn't exist.
This is the node:
[{"id":"15bf71d3.6f1f2e","type":"pythonshell in","z":"5b671f97.b2a04","name":"","pyfile":"cat test.py | ssh sudo pi@192.168.178.192 python -","virtualenv":"","continuous":false,"stdInData":false,"x":500,"y":680,"wires":[["4ed3e434.2763fc"]]},{"id":"a7235cd0.41a9c","type":"ui_switch","z":"5b671f97.b2a04","name":"","label":"switch","tooltip":"","group":"ca7ab20f.854e4","order":4,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":240,"y":680,"wires":[["15bf71d3.6f1f2e"]]},{"id":"4ed3e434.2763fc","type":"debug","z":"5b671f97.b2a04","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":750,"y":680,"wires":[]},{"id":"ca7ab20f.854e4","type":"ui_group","z":"","name":"Relais","tab":"32c55549.8b1c0a","order":1,"disp":true,"width":"6","collapse":false},{"id":"32c55549.8b1c0a","type":"ui_tab","z":"","name":"Relais","icon":"dashboard","order":3,"disabled":false,"hidden":false}]
I hope somebody can give me some advise.
Thank you.
Yvonne