Guy . D Guy . D - 10 months ago 65
Python Question

Run `pigpiod` daemon over remote Linux

pigpiod
is a daemon to control Remote GPIO (Raspberry Pi).
I'm trying to load it remotely from rpi#1 on rpi#2, unsuccessfuly.

Both RPi run Python 3.5 With Ubuntu 16.04.

when using on local machine- daemon's executed OK:

def runpigpiod_local():
subprocess.run(['sudo','pigpiod'])


BUT- when trying to execute it remotely- it fails

def runpigpiod(adress):
result = subprocess.run(['ssh','guy@192.168.2.112','sudo pigpiod'])


output:

guy@192.168.2.112's password:
sudo: no tty present and no askpass program specified

Answer Source

Question is answered in: Configuring Remote GPIO

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download