Closed mtdcr closed 4 years ago
The following calls don't need authentication or special HTTP headers:
http://<host>:50002/?action=sendText&text=This%20is%20a%20text
http://<host>:50002/?action=getText
<?xml version="1.0"?>
<text>This is a text</text>
Thanks for you suggestion.
Honestly I don't think that your suggestion looks that hackish.
Only the way to get the correct url is a bit odd but I wouldn't know how to solve this differently at the moment.
How do you handle the missing command list, are you using a prepared xml file?
How do you handle the missing command list, are you using a prepared xml file?
I don't know yet. How would you think about a default command list embedded as a dict with {name: value}? I wanted it to be usable from Home Assistant, but I think providing an extra XML file wouldn't work well for many users. I guess we could create an object compatible with XmlApiObject from that dict easily.
I think using a dict with {name: value}
as you've suggested is probably the easiest way to provide defaults. The only drawback would be that you'd have to change the code to adjust default values but I don't think that would be necessary.
Fixed in #58 and #60. Thank you :)
Hi,
I patched sonyapilib to be able to register at my old bluray player (BDP-S370).
Among other things, it doesn't offer a command list. However, it uses the same type="ircc" key codes as listed in getRemoteCommandList.xml.
Here's a copy of an Ircc.xml from this generation:
(Source: https://forums.homeseer.com/forum/media-plug-ins/media-discussion/media-controller-dcorsus/68042-support-for-sony-tv-bluray-media-player#post664783)
This is how a response on
http://<host>:50002/
looks like if registration is open:If it's closed, the server returns 403.
Action URLs are using this format:
http://<host>:50002/?action=register¶m=value
Because the patch above is quite hackish, I'm not going to submit a PR. But I'd like to document my findings. Maybe you or someone else can find a nicer way to integrate it. I don't use my bluray player often these days, so my motivation is lacking a bit.
Good luck with your thesis, Alex!