Hello,
I am trying to get the Server data in Python, which I am more familiar with. I tried to access it via http://localhost:6555 in a browser. It returned the following information.
{"category":"tracker","statuscode":501,"values":{"statusmessage":"Unknown category"}}
It seems I did not get the information correct. What's wrong with it?
Another way to get the data is by calling the TETApiConsole.exe in Python via a subprocess.
C:\Program Files (x86)\EyeTribe\Client\TETApiConsole.exe
If I can call it , then I can use Python to read the output in the console in a similar way as below. But I do not have all the information. How can I call the TETApiConsole.exe in Python? Thanks!
#filters output
import subprocess
proc = subprocess.Popen(['python','fake_utility.py'],stdout=subprocess.PIPE)
while True:
line = proc.stdout.readline()
if line != '':
#the real code does filtering here
print "test:", line.rstrip()
else:
break