Guy . D Guy . D - 1 year ago 75
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','[email protected]','sudo pigpiod'])


output:

[email protected]'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