Created
March 13, 2016 16:22
-
-
Save miawgogo/f7e0ec5bce6264f6df58 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import subprocess | |
| cmd = 'irsend LIST "" ""' | |
| proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) | |
| tmp = proc.stdout.read() | |
| print tmp | |
| ntmp = tmp.replace("irsend: ", "") | |
| device = ntmp.split("\r\n") | |
| print device | |
| for thing in device: | |
| print thing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment