-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Examples do not work #25
Comments
it's not a bug on line 285. after "~ doesn't work" string is error message of on try block. it means the first of data(Checking Camera) should be a tuple not a string. for x in cameras: cameras = [('HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age=1800\r\nEXT: \r\nLOCATION: http://192.168.122.1:61000/scalarwebapi_dd.xml\r\nSERVER: UPnP/1.0 MINT-X/1.8.1\r\nST: urn:schemas-sony-com:service:ScalarWebAPI:1\r\nUSN: uuid:000000001000-1010-8000-02AEFA7863EA::urn:schemas-sony-com:service:ScalarWebAPI:1\r\n\r\n', ('192.168.122.1', 48385))] then you should not use the first data. I should check the discover method. but if you check like below it works. pysony.SonyAPI(QX_ADDR='http://'+x[1][0]+':'+x[1][1]) it's a new pattern I didn't seen.before... |
i had the same problem. so i thought i'd dive into the code (had cloned the repo) to investigate further. just to find out my changes to pysony.py are never called because the i got rid of this distributable version by
after that it just magically worked (and with the other examples too), i did not even have to modify the pysony.py source but the way it gets imported. so i guess something may be wrong with the setup.py thing? edit: just found out you don't even have to |
I cannot make this work on my HX90V:
This seems to be related to a bug on Line 285 in https://github.com/Bloodevil/sony_camera_api/blob/master/src/pysony.py
The text was updated successfully, but these errors were encountered: