Looking for a coding guru to explain me what direction I need to take now:
I use an Amazon Echo Dot which is currently connected to my Raspberry Pi. I can now say "Alexa turn device on/off" which returns a true/false to my Raspberry Pi using this excellent repository: https://github.com/toddmedema/echo.
Could anyone explain me how I can replace this 'true' in this python script with a script that sends a request to execute a batch file on my windows computer using RDP?. I think it is here but it doesn't work:
def act(self, client_address, state, name):
print "State", state, "from client @", client_address
GPIO.setmode(GPIO.BOARD) ## Use board pin numbering
GPIO.setup(str(sys.argv[3]), GPIO.OUT) ## Setup GPIO Pin to OUTPUT
GPIO.output(str(sys.argv[3]), not state) ## State is true/false
GPIO.cleanup(str(sys.argv[3]))
return True ## after this line add the command the execute?
Extra question: How do I add more voice commands?
Would really appreciate it.