python-firetv
python-firetv copied to clipboard
Runs, but can't connect
I got the damon running, by using Python 2.7. However there appears to be a change in how the adb library works, and I can't figure out the fix. I even had to add some of my own debugging in the FireTV class to get the error. When the code in connect(self) runs, it throws an error I was able to catch by putting "print serr" after the log line. Here's the result:
pi@lirc-officerack:~ $ sudo firetv-server -d 192.168.0.80:5555
WARNING:root:Couldn't connect to host: 192.168.0.80:5555, error: None
getaddrinfo() argument 2 must be integer or string
* Serving Flask app "firetv.__main__" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: off
Something is clearly happening inside the adb library for argument 2, but I can't find any good documentation on it to figure out what's wrong.
FYI, I also tried specifying the key details in the config file. My file:
office:
host: 192.168.0.80:5555
adbkey: /home/pi/.android/adbkey
I then ran it with the config file option, and got similar results (with some added debugging lines I added:
pi@lirc-officerack:~ $ firetv-server -c /home/pi/firetv.conf
WARNING:root:Couldn't connect to host: 192.168.0.80:5555, error: None
getaddrinfo() argument 2 must be integer or string
{'serial': '192.168.0.80:5555', 'rsa_keys': [<adb.sign_pythonrsa.PythonRSASigner object at 0x76143390>]}
* Serving Flask app "firetv.__main__" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: off