# Http post squezzebox command

**URL:** <https://discourse.nodered.org/t/http-post-squezzebox-command/47883>\
**Category:** General\
**Created:** [1 July 2021 09:10 UTC](https://discourse.nodered.org/t/http-post-squezzebox-command/47883 "2021-07-01T09:10:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![martc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/martc/32/44187_2.png) [@martc](https://discourse.nodered.org/u/martc)\
**Post date:** [1 July 2021 09:10 UTC](https://discourse.nodered.org/t/http-post-squezzebox-command/47883/1 "2021-07-01T09:10:59Z")

</div>

Hi,  
i'm try send http command to squeezebox (logitech media server) for volume change,  
in browser this work perfect - change volume and return server statuss (playlist, curent song etc.)

command:

```auto
192.168.88.115:9002/status.htm?p0=mixer&p1=volume&p2={{{msg.payload}}}B10&player=b8:27:eb:88:cc:fb

```

"msg.payload" is volume setting - "%5" is 5 step up, and "-5" is 5 step down.  
if use "http request node" POST than get response from server and nothing, if use GET than get response, and volume just droping - no metter using "%5" for increase or "—5" for decreasing volume.

flow what i use:

```auto
[{"id":"53632275.7d628c","type":"tab","label":"LogitechMediaServer Vol","disabled":false,"info":""},{"id":"bf404b4d.c9abf8","type":"http request","z":"53632275.7d628c","name":"HTTP Request (POST)","method":"POST","ret":"txt","paytoqs":"query","url":"http://192.168.88.115:9002/status.htm?p0=mixer&p1=volume&p2={{{msg.payload}}}B10&player=b8:27:eb:88:cc:fb","tls":"","persist":false,"proxy":"","authType":"","x":690,"y":160,"wires":[["2277782e.54d148","3c4f1015.9d8298"]]},{"id":"8a190541.5e1018","type":"function","z":"53632275.7d628c","name":"Action","func":"switch(msg.payload)\n{\n case 1: \n return {payload : \"output1=%8\"};\n case 2: \n return {payload : \"output1=-8\"};\n case 3: \n return {payload : \"output1=15\"};\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":370,"y":160,"wires":[["bf404b4d.c9abf8","f2c08d2b.9bbe5"]]},{"id":"2277782e.54d148","type":"debug","z":"53632275.7d628c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","statusVal":"","statusType":"auto","x":890,"y":120,"wires":[]},{"id":"3c4f1015.9d8298","type":"ui_text","z":"53632275.7d628c","group":"fff83011.1569","order":5,"width":"6","height":"3","name":"","label":"Response from server: ","format":"{{msg.payload}}","layout":"col-center","x":930,"y":360,"wires":[]},{"id":"24ae69d.9d70496","type":"ui_button","z":"53632275.7d628c","name":"Volume + \"%\"","group":"32c9f0ea.152cb","order":1,"width":0,"height":0,"passthru":false,"label":"Volume +","tooltip":"","color":"","bgcolor":"","icon":"","payload":"1","payloadType":"num","topic":"","topicType":"str","x":120,"y":80,"wires":[["8a190541.5e1018"]]},{"id":"bbd4e78b.886a18","type":"ui_button","z":"53632275.7d628c","name":"Volume - \"-\"","group":"32c9f0ea.152cb","order":2,"width":0,"height":0,"passthru":false,"label":"Volume -","tooltip":"","color":"","bgcolor":"","icon":"","payload":"2","payloadType":"num","topic":"","topicType":"str","x":110,"y":160,"wires":[["8a190541.5e1018"]]},{"id":"e75f5457.45d01","type":"ui_button","z":"53632275.7d628c","name":"Volume 15","group":"32c9f0ea.152cb","order":3,"width":0,"height":0,"passthru":false,"label":"Volume 15","tooltip":"","color":"","bgcolor":"","icon":"","payload":"3","payloadType":"num","topic":"","topicType":"str","x":110,"y":240,"wires":[["8a190541.5e1018"]]},{"id":"f2c08d2b.9bbe5","type":"debug","z":"53632275.7d628c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","statusVal":"","statusType":"auto","x":610,"y":100,"wires":[]},{"id":"fff83011.1569","type":"ui_group","name":"Response from server","tab":"294fd043.fbfe3","order":2,"disp":true,"width":"6","collapse":false},{"id":"32c9f0ea.152cb","type":"ui_group","name":"Control Output 1","tab":"294fd043.fbfe3","order":1,"disp":true,"width":"6","collapse":false},{"id":"294fd043.fbfe3","type":"ui_tab","name":"LogitechMediaServer VolumeControl","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

```

i dont need server response, just volume control. From mqtt i can get command parameters (up or down) and NodeRed just need post http request to LMS server.  
What i'm doing wrong? Maybe is some method how i can see outgoing http request from NodeRed, in debug window i see only response...  
Thanks

---

<div class="post-metadata">

**Author:** ![yogy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yogy/32/32191_2.png) [@yogy](https://discourse.nodered.org/u/yogy)\
**Post date:** [1 July 2021 09:49 UTC](https://discourse.nodered.org/t/http-post-squezzebox-command/47883/2 "2021-07-01T09:49:35Z")

</div>

There is a node for Squeezebox, I do not know if this one works.  
[https://flows.nodered.org/node/node-red-contrib-squeezebox](https://flows.nodered.org/node/node-red-contrib-squeezebox)

There was a forum entry over this node  
[Forum entry](https://discourse.nodered.org/t/squeezebox-socket-hang-up/37875)

---

<div class="post-metadata">

**Author:** ![martc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/martc/32/44187_2.png) [@martc](https://discourse.nodered.org/u/martc)\
**Post date:** [1 July 2021 09:57 UTC](https://discourse.nodered.org/t/http-post-squezzebox-command/47883/3 "2021-07-01T09:57:20Z")

</div>

thanks, yesterday after adding that node - NodeRed hungup, and i cant remove that node. Clean install was help....

---

<div class="post-metadata">

**Author:** ![yogy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yogy/32/32191_2.png) [@yogy](https://discourse.nodered.org/u/yogy)\
**Post date:** [1 July 2021 10:01 UTC](https://discourse.nodered.org/t/http-post-squezzebox-command/47883/4 "2021-07-01T10:01:24Z")

</div>

And this one ?  
was updated 8 months ago  
[https://flows.nodered.org/node/node-red-contrib-logitechmediaserver](https://flows.nodered.org/node/node-red-contrib-logitechmediaserver)

---

<div class="post-metadata">

**Author:** ![martc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/martc/32/44187_2.png) [@martc](https://discourse.nodered.org/u/martc)\
**Post date:** [1 July 2021 10:08 UTC](https://discourse.nodered.org/t/http-post-squezzebox-command/47883/5 "2021-07-01T10:08:34Z")

</div>

Thanks a lot, this im trying now, but get only [“socket hang up”]. i found similar problem, thinking now 🙂

---

<div class="post-metadata">

**Author:** ![yogy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yogy/32/32191_2.png) [@yogy](https://discourse.nodered.org/u/yogy)\
**Post date:** [1 July 2021 10:14 UTC](https://discourse.nodered.org/t/http-post-squezzebox-command/47883/6 "2021-07-01T10:14:01Z")

</div>

Here a possible solution:

> [@Squeezebox "socket hang up"](https://discourse.nodered.org/t/squeezebox-socket-hang-up/37875):
>
> I was trying to add my squeezeboxes to NodeRED, and some commands like pause, status etc do work already. I would like to have a dedicated webstream played after pushing a button but i do get a "socket hang up" and i have no clue why: according to http://tutoriels.domotique-store.fr/content/54/95/fr/api-logitech-squeezebox-server-\_-player-http.html the command should be ok. I do have a plain html/css dropdown from history which works fine and uses the same playlist play command: \<di…

---

<div class="post-metadata">

**Author:** ![martc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/martc/32/44187_2.png) [@martc](https://discourse.nodered.org/u/martc)\
**Post date:** [1 July 2021 10:26 UTC](https://discourse.nodered.org/t/http-post-squezzebox-command/47883/7 "2021-07-01T10:26:26Z")

</div>

thanks, that is what im found 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [30 August 2021 10:26 UTC](https://discourse.nodered.org/t/http-post-squezzebox-command/47883/8 "2021-08-30T10:26:36Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
