Page 1 of 1

subcl -- a command-line subsonic client in ruby

PostPosted: Tue Sep 20, 2011 3:45 am
by winsbe01
hey all,

i've been using subsonic for a few months now and absolutely LOVING it. i've got it running on a server in my living room, and am eating up my carrier's data plan streaming to the Android app. while i do love using the web interface on my laptop, i'm a bit of a command-line junky myself, so i thought i could write up a little tool to interface with the api.

it's still missing many of subsonic's great features (as it's only a few days old now), but it does queue songs and albums, and play them using mplayer. i'm working to add more feature support, as well as work expand it's own features (such as working with other music players besides mplayer).

the source can be found here: https://bitbucket.org/winsbe01/subcl

feel free to read through it or try it out (try not to judge the code itself too hard -- it's my first foray into ruby!). i'd love to hear any feedback anyone has, and i hope it proves to be of some interest to people.

thanks again to sindre and the whole community for making subsonic an amazing piece of software, and an important part of my everyday life!

-ben

Re: subcl -- a command-line subsonic client in ruby

PostPosted: Mon Sep 26, 2011 7:15 am
by Gomez
Cool! Thx for the work!

Re: subcl -- a command-line subsonic client in ruby

PostPosted: Sat Aug 03, 2013 12:44 pm
by derrjukg
Hey

Recently I started using Awesome WM at work and wanted a way to integrate Subsonic into it. Since everything there works with scripts, and I'm a command line junkie too, a commandline subsonic client sounded like a great idea. I came across this, and it proved to be a great starting point. I turned the code upside down (don't judge me too hard either, this is my first ruby project i really spent time with) and now got a semi-interactive Subsonic client using mpd and mpc.
Check it out here: https://github.com/Tourniquet/subcl

Re: subcl -- a command-line subsonic client in ruby

PostPosted: Fri Aug 23, 2013 5:56 pm
by axxo1
How can I use it? Is there a README file?

Re: subcl -- a command-line subsonic client in ruby

PostPosted: Mon Aug 26, 2013 5:24 pm
by derrjukg
There is indeed a readme file: https://github.com/Tourniquet/subcl/blob/master/README.md - you can find it on the github page too.
To use it, make sure you have ruby installed. Download and unpack the zip archive: https://github.com/Tourniquet/subcl/archive/master.zip
Then pull up a terminal, cd to the directory where you unpacked it and call
Code: Select all
./subcl [command]
. If you're on windows, call it with
Code: Select all
ruby subcl.rb [command]

Hope that helped.

Re: subcl -- a command-line subsonic client in ruby

PostPosted: Fri Feb 21, 2014 7:47 pm
by derrjukg
Just dropping in to say that I've packed it into a ruby gem. So now you can easily install it using
Code: Select all
gem install subcl

Check out the readme on how to create a config file and enjoy.
It should run fine on any *nix system, I didn't test it on Windows. Be sure to have mpd installed and running, too.