subcl -- a command-line subsonic client in ruby

Announcements and discussion of new releases.

Moderator: moderators

subcl -- a command-line subsonic client in ruby

Postby winsbe01 » Tue Sep 20, 2011 3:45 am

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
winsbe01
 
Posts: 1
Joined: Tue Sep 20, 2011 3:29 am

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

Postby Gomez » Mon Sep 26, 2011 7:15 am

Cool! Thx for the work!
Gomez
 
Posts: 23
Joined: Thu Oct 28, 2010 2:49 pm

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

Postby derrjukg » Sat Aug 03, 2013 12:44 pm

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
derrjukg
 
Posts: 3
Joined: Sat Aug 03, 2013 12:38 pm

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

Postby axxo1 » Fri Aug 23, 2013 5:56 pm

How can I use it? Is there a README file?
axxo1
 
Posts: 1
Joined: Fri Aug 23, 2013 5:55 pm

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

Postby derrjukg » Mon Aug 26, 2013 5:24 pm

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.
derrjukg
 
Posts: 3
Joined: Sat Aug 03, 2013 12:38 pm

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

Postby derrjukg » Fri Feb 21, 2014 7:47 pm

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.
derrjukg
 
Posts: 3
Joined: Sat Aug 03, 2013 12:38 pm


Return to Announcements

Who is online

Users browsing this forum: No registered users and 5 guests