Http post squezzebox command

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:

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:

[{"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

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

There was a forum entry over this node
Forum entry

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

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

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

Here a possible solution:

thanks, that is what im found :slight_smile:

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