Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Hybrid View

  1. #1
    Senior Member
    Join Date
    Jan 2007
    Posts
    852

    Where do I start?

    Hello,

    I've just bought a Squeezebox and want to start programming my own plugins to control it - the SlimServer web interface just doesn't do what I want. I want to build a Windows application like this one which I did for iTunes:

    http://albumbrowser.galleytech.com/

    So where do I start? Given this is for a Windows platform, what do I need to start looking into in order to work out how to control SlimServer from a 3rd party app? I guess I'll need things like:

    - start playing a song now
    - next/prev/pause/stop
    - add a song to the playlist queue
    - delete a song from the playlist queue
    - clear the playlist queue
    - skip to a specific position within the playing track

    Then there's the question of how SlimServer would like to be told what a track is - ie. whether it needs an ID within its own database or whether a full file path will do.

    Any guidance gratefully received. I'll be happy to share my app with anyone that helps.

  2. #2
    Senior Member
    Join Date
    Dec 2006
    Location
    Boulder, CO
    Posts
    599
    The SlimServer Command Line Interface (CLI) is how third-party apps communicate with SlimServer. Documentation for the CLI API is included with the SlimServer software, in HTML/EN/html/docs/cli-api.html in the SlimServer installation directory.

    CLI API documentation is also available through the SlimServer web interface at http://localhost:9000. Go to Help->Technical Information->The SlimServer Command Line Interface.

    Also check out the work that others have done:

    Moose: http://www.rusticrhino.com/drlovegrove/ and http://forums.slimdevices.com/showthread.php?t=32467
    slimfx: http://solaristics.net/slimfx/ and http://forums.slimdevices.com/showthread.php?t=32422
    FatGooey: http://www.the-gordons.net/homepage/DownLoad.html and http://forums.slimdevices.com/showthread.php?t=32414

    Good luck!
    Last edited by Ron Olsen; 2007-02-12 at 05:28.

  3. #3
    Member
    Join Date
    Oct 2006
    Location
    Zurich / Switzerland
    Posts
    94
    jezbo,

    Maybe there is already someting which could fit your needs.
    http://www.rusticrhino.com/drlovegrove/

    otherwise check this out http://wiki.slimdevices.com/index.cgi?DeveloperGuide

  4. #4
    Senior Member
    Join Date
    Jan 2007
    Posts
    852
    Many thanks good people, the CLI is indeed what I was looking for,

  5. #5
    Senior Member
    Join Date
    Dec 2006
    Location
    Boulder, CO
    Posts
    599
    Hi jezbo,

    Pesonally, I would like to see development of third-party apps that work on multiple platforms, like slimfx.

    Windows-only apps (Moose, FatGooey) don't do me any good, since I run SlimServer on Linux.

    It would be great if you could develop your app to run on Linux as well as Windows.

  6. #6
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    18,931

    Where do I start?

    > Windows-only apps (Moose, FatGooey) don't do me any good, since I run
    > SlimServer on Linux.


    We're talking about client apps here. As long as the app is using the CLI
    the application doesn't care about the server's OS.

    > It would be great if you could develop your app to run on Linux as well
    > as Windows.


    I second that. I'd like to see some supporting efforts for the SlimFX skin
    development...

    --

    Michael

    -----------------------------------------------------------------
    http://www.herger.net/SlimCD - your SlimServer on a CD
    http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR


  7. #7
    Senior Member erland's Avatar
    Join Date
    Dec 2005
    Location
    Sweden
    Posts
    10,313
    Quote Originally Posted by Michael Herger View Post
    > Windows-only apps (Moose, FatGooey) don't do me any good, since I run
    > SlimServer on Linux.


    We're talking about client apps here. As long as the app is using the CLI the application doesn't care about the server's OS.
    I care since I'm running Linux on both my server and my laptop. Moose is one of the applications I really miss since I kicked out Windows from the laptop.
    Erland Isaksson (My homepage)
    (Developer of many plugins/applets (both free and commercial).
    If you like to encourage future presence on this forum and/or third party plugin/applet development, consider purchasing some plugins)
    You may also want to try my Android apps Squeeze Display and RSS Photo Show
    Interested in the future of music streaming ? ickStream - A world of music at your fingertips.

  8. #8
    Senior Member
    Join Date
    Dec 2006
    Location
    Boulder, CO
    Posts
    599
    Quote Originally Posted by Michael Herger View Post
    We're talking about client apps here. As long as the app is using the CLI the application doesn't care about the server's OS.
    Client apps that only run on Windows don't do me any good. I've got one computer that runs SlimServer, my web browser, client apps, and everything else. At that computer is running Gentoo Linux.

    SlimFX has lots of promise, and I would love to see some cooperative effort put into improving it.

  9. #9
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    18,931

    Where do I start?

    > I've just bought a Squeezebox and want to start programming my own
    > plugins to control it - the SlimServer web interface just doesn't do
    > what I want. I want to build a Windows application like this one which
    > I did for iTunes:


    There's a new Flash based skin calle SlimFX which might be closer to what
    you're looking for than the other skins:

    http://forums.slimdevices.com/showthread.php?t=32422

    I'm sure Mike would be happy if you wanted to give him a helping hand :-).

    > So where do I start?


    On your SlimServer you'll find the Command Line Interface (CLI)
    documentation in the Help/Technical something section.

    > - start playing a song now


    That command is called "start"

    > - next/prev/pause/stop


    That would be "index +1", "index -1", "pause" and "play"

    > - add a song to the playlist queue


    "playlist add"

    > - delete a song from the playlist queue


    "playlist deleteitem"

    > - clear the playlist queue


    "playlist clear"

    > - skip to a specific position within the playing track


    "time seconds"

    > Then there's the question of how SlimServer would like to be told what
    > a track is - ie. whether it needs an ID within its own database or
    > whether a full file path will do.


    I think both can be used.

    --

    Michael

    -----------------------------------------------------------------
    http://www.herger.net/SlimCD - your SlimServer on a CD
    http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR


  10. #10
    Senior Member
    Join Date
    Nov 2005
    Location
    North Carolina, USA
    Posts
    1,171
    Quote Originally Posted by jezbo View Post
    I'll be happy to share my app with anyone that helps.
    Looks like you're sharing your itunes app with anyone who has 10 quid.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •