-
Notifications
You must be signed in to change notification settings - Fork 66
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
Invalid argument(s): "<" expected at 1:1 #2
Comments
In order to get information about your device, the library makes an HTTP GET request to I recommend printing |
From the browser, I can easily get info from /setup/eureka_info but never from /ssdp/device-desc.xml |
Okay I've done some digging and found some unofficial documentation (https://rithvikvibhu.github.io/GHLocalApi/#device-info-eureka-info-get) - it looks like the library can be adapted to use For reference, the URL I've crafted that can act as a substitute is: I'll try and sort out a PR to the repo. Not sure how active the maintainer is. |
Didn't know about the eureka_info way to get the device's info. Seems to be a better fit for this use case, since it's JSON and not (annoying) XML and we can also specify which params we would like to have returned. Updated the code to use eureka_info instead of device_info. |
For model name and friendly name, there is no need for eureka_info since we already have the attributes bundle to decode? You can look at how I did it in: |
Also, just a heads up, I've noticed that POST requests to Eureka device dont' seem to work with HTTP library, I had to use DIO to get those to work (for GET it doesn't matter). Took me far too much time to find out :) |
Trying to use this library but having an issue when trying to get a CastDevice
This gives me the error:
Any ideas?
The text was updated successfully, but these errors were encountered: