Your Digital Media Has Never Looked So Good

 
thorstenhirsch
Topic Author
Posts: 19
Joined: Fri Jan 05, 2007 4:25 pm

control your SoundBridge with curl

Sat Nov 21, 2009 10:17 am

Looks like nobody has posted it, yet, so here we go. You can control your SoundBridge with curl (unix command line tool) since the SB has a web interface with a form that provides control buttons. The form uses HTTP POST to send the control action to the SB, so that's what curl can also do:
curl -d 'Next=' http://soundbridge/Forms/SoundBridgeNP_1

This command "pushes" the next button.
And these commands are for previous, pause, play:
curl -d 'Prev=' http://soundbridge/Forms/SoundBridgeNP_1

curl -d 'Pause=' http://soundbridge/Forms/SoundBridgeNP_1

curl -d 'Play=' http://soundbridge/Forms/SoundBridgeNP_1

Who is online

Users browsing this forum: No registered users and 1 guest