For some time this worked:
- Code: Select all
import subprocess
resp= subprocess.Popen("/usr/bin/curl http://YOUR_IP:3689/login?pairing-guid=YOUR_SERIAL_NUMBER",shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE).communicate()[0]
indigo.server.log("Apple TV waking up: " + resp)
However, not anymore. I would need a unique GUID which I don't know.
This could be a starting point, but I'm not sure what to do. Since it covers even more control it might be interesting to others as well.
https://github.com/jeanregisser/mediaremotetv-protocol
Any help is appreciated.