GhostXML reading states from Bluesound (BluOS) Network
Posted: Wed Jun 10, 2020 11:48 pm
Hi
I am not sure if in looking in the right place for this but just discovered your plugin.
I have several bluesound network players that I want to pull state information from. from their API document it seems pretty simple and I can easily get responses in my browser. Just not sure how to get that in to device states just yet.
If I send:
http://<PlayerIP>:11000/Volume
i get a response of:
<volume db="-79.2" mute="0" offsetDb="0" etag="ad6ceaae9212b58f910dcbe6d49a7bdb">2</volume>
its the "2" i want at the end of the string >2</volume>
ive tried setting your plugin with the above URL and in the debug log it looks like its reading something:
GhostXML Debug HTTPS CURL result: * Trying 10.0.1.160...
* TCP_NODELAY set
* Connected to 10.0.1.160 (10.0.1.160) port 11000 (#0)
> GET /Volume HTTP/1.1
> Host: 10.0.1.160:11000
> User-Agent: curl/7.54.0
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 ok
< Connection: close
< Access-Control-Allow-Origin: *
< Content-Length: 148
< Cache-Control: max-age=0
< Content-Type: text/xml; charset=utf-8
< Date: Thu, 11 Jun 2020 05:39:08 GMT
< Expires: Thu, 11 Jun 2020 05:39:08 GMT
<
{ [148 bytes data]
* Closing connection 0
GhostXML Debug ReturnCode: 0
I assume the content length means its reading the above string. I just have no idea what to do now or if im even looking down the right channel.
Thanks
Lee
I am not sure if in looking in the right place for this but just discovered your plugin.
I have several bluesound network players that I want to pull state information from. from their API document it seems pretty simple and I can easily get responses in my browser. Just not sure how to get that in to device states just yet.
If I send:
http://<PlayerIP>:11000/Volume
i get a response of:
<volume db="-79.2" mute="0" offsetDb="0" etag="ad6ceaae9212b58f910dcbe6d49a7bdb">2</volume>
its the "2" i want at the end of the string >2</volume>
ive tried setting your plugin with the above URL and in the debug log it looks like its reading something:
GhostXML Debug HTTPS CURL result: * Trying 10.0.1.160...
* TCP_NODELAY set
* Connected to 10.0.1.160 (10.0.1.160) port 11000 (#0)
> GET /Volume HTTP/1.1
> Host: 10.0.1.160:11000
> User-Agent: curl/7.54.0
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 ok
< Connection: close
< Access-Control-Allow-Origin: *
< Content-Length: 148
< Cache-Control: max-age=0
< Content-Type: text/xml; charset=utf-8
< Date: Thu, 11 Jun 2020 05:39:08 GMT
< Expires: Thu, 11 Jun 2020 05:39:08 GMT
<
{ [148 bytes data]
* Closing connection 0
GhostXML Debug ReturnCode: 0
I assume the content length means its reading the above string. I just have no idea what to do now or if im even looking down the right channel.
Thanks
Lee