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

Hybrid View

  1. #1

    XBMC controller applet

    Hi,

    Since there was no applet availible to control XBMC with the Squeezebox controller, I decided to make one. I must admid I'm not a great programmer, but hey everything seem to work fine. If you have suggestions / found bugs, can post them but I'm to onest I don't want to spend to much time anymore on this applet.
    To install this applet simply unzip and put the new directory in "/usr/share/jive/applets"

    The applet wasn't working with XBMC v10, so I did some modifications. There are some other issues fixed as well, for filenames with 'strange'characters and the iconbar is now working.

    Well enjoy, Robbin.

    watch: http://www.youtube.com/watch?v=FbJeLEFuFiQ
    Last edited by robbinvandervelden; 2011-01-22 at 14:56. Reason: not allowed to add an link

  2. #2
    Ne'er-do-well, Vagabond bklaas's Avatar
    Join Date
    Apr 2005
    Location
    Minneapolis, MN
    Posts
    2,033
    Robbin- this is great stuff. I'm an avid XBMC user and intend to check this out very soon.

    Did you run into anything on the applet development side you couldn't figure out how to do?

    cheers and well done,
    #!/ben
    Former Logitech Developer: Squeezeplay/SqueezeOS/SqueezeboxController/SqueezeCenter
    Community Developer: Nokia770Skin (r.i.p.)

    http://www.last.fm/user/bklaas/
    KHAAAN!...BUNNIES!

  3. #3
    Hi Ben,

    thanks! I figured everything out I wanted to do, one way or another. The only thing I couldn't find out is updating or removing the iconbar. I can make one on my my one and put this over the orignal one, but I don't think that is a good solution.

    regards Robbin.

  4. #4
    Ne'er-do-well, Vagabond bklaas's Avatar
    Join Date
    Apr 2005
    Location
    Minneapolis, MN
    Posts
    2,033
    if you have a window object myWindow, you can remove the iconbar with the following code:

    Code:
    myWindow:setShowFrameworkWidgets(false)
    it sounds like you want to update the iconbar with xbmc-specific stuff...you can do that like so...

    Code:
    -- bring in iconbar object
    local iconbar = iconbar
    
    -- as an example, set iconbar mode icon to stop
    iconbar:setPlaymode('stop')
    You probably need to be careful to disconnect from any connected squeezebox when you do this though, because any playerstatus update from the server that comes in will update the iconbar on its own, which is probably not what you want.

    The iconbar stuff (and lots of other things in the squeezeplay/src/share/jive area are documented in POD format. If you are using Linux or Mac for development, accessing this is as simple as typing `perldoc <filename>`.

    This is the output of `perldoc squeezeplay/src/share/jive/Iconbar.lua`

    Code:
    NAME
        jive.Iconbar - icon raw at the bottom of the screen
    
    DESCRIPTION
        The Iconbar class implements the Jive iconbar at the bottom of the
        screen. It refreshes itself every second.
    
    SYNOPSIS
         -- Create the iconbar (this done for you in JiveMain)
         iconbar = Iconbar()
    
         -- Update playmode icon
         iconbar:setPlaymode('stop')
    
         -- force iconbar update
         iconbar:update()
    
    FUNCTIONS
      Iconbar:setPlaymode(val)
        Set the playmode icon of the iconbar. Values are nil (off), "stop",
        "play" or "pause".
    
      Iconbar:setPlaylistMode(val)
        Set the playlistmode of the iconbar. Values are nil (no mode), 1 for
        playlist mode and 2 for party mode. When not 1 or 2, setRepeat()
    
      Iconbar:setRepeat(val)
        Set the repeat icon of the iconbar. Values are nil (no repeat), 1 for
        repeat single track and 2 for repeat all playlist tracks.
    
      Iconbar:setAlarm(val)
        Sets the alarm icon on the iconbar. Values are OFF and ON
    
      Iconbar:setSleep(val)
        Sets the sleep icon on the iconbar. Values are OFF (Sleep Off), and ON
        (Sleep On)
    
      Iconbar:setShuffle(val)
        Set the shuffle icon of the iconbar. Values are nil (no shuffle), 1 for
        shuffle by track and 2 for shuffle by album.
    
      Iconbar:setBattery(val)
        Set the state of the battery icon of the iconbar. Values are nil (no
        battery), CHARGING, AC or 0-4.
    
      Iconbar:setWirelessSignal(val)
        Set the state of the network icon of the iconbar. Values are nil (no
        network), ERROR or 1-3.
    
      Iconbar:setServerError(val)
        Set the state of the SqueezeCenter connection. Values are nil, OK or
        ERROR.
    
      Iconbar:update()
        Updates the iconbar.
    
      Iconbar()
        Creates the iconbar.
    
    LICENSE
        Copyright 2010 Logitech. All Rights Reserved.
    
        This file is licensed under BSD. Please see the LICENSE file for
        details.
    cheers,
    #!/ben
    Former Logitech Developer: Squeezeplay/SqueezeOS/SqueezeboxController/SqueezeCenter
    Community Developer: Nokia770Skin (r.i.p.)

    http://www.last.fm/user/bklaas/
    KHAAAN!...BUNNIES!

  5. #5
    Hi Ben

    A bit of a late reply, but thanks for the input.

    I've just create my own iconbar for this applet and update this one within the applet.

    rgd's Robbin.

  6. #6
    Junior Member
    Join Date
    Jan 2011
    Posts
    1

    control squeezebox from xbmc?

    Hi Robbin,

    I tried your XBMC controller and it works nice Only issue is that I can't see the full episode names of my tv shows due to the small screen size. (Maybe the text should scroll?)

    While this works great, I'm curious if you also considered creating a control the other way around: control the Squeezebox from XBMC. Something like a programm addon, that, if you select it, displays a window within xbmc with the output from squeezeplay or the http webinterface from the server.

    That would be awesome

  7. #7
    mfaine
    Guest
    Quote Originally Posted by robbinvandervelden View Post
    Hi,

    Since there was no applet availible to control XBMC with the Squeezebox controller, I decided to make one. I must admid I'm not a great programmer, but hey everything seem to work fine. If you have suggestions / found bugs, can post them but I'm to onest I don't want to spend to much time anymore on this applet.
    To install this applet simply unzip and put the new directory in "/usr/share/jive/applets"

    The applet wasn't working with XBMC v10, so I did some modifications. There are some other issues fixed as well, for filenames with 'strange'characters and the iconbar is now working.

    Well enjoy, Robbin.

    watch: http://www.youtube.com/watch?v=FbJeLEFuFiQ
    Good god thank you man. I haven't tried it yet but at least you are trying something. I'm about to go freaking insane looking for reliable information for how to use squeezebox on a PC. Is it SoftSqueeze, SqueezePlay, what? And no, SqueezePlay isn't available on the Nightly Builds page. It seems like the entire squeezebox community was just left to rot and I only just now stumbled upon its corpse. There doesn't seem to be any plugin validation (many of them don't work at all) and the whole thing is just a big jumbled mess. And then you uploaded this - finally a bit of sanity in my world. Again, thanks.

    ... after taking a second look apparently this is for something else and isn't much help to me. Even so, good work man.
    Last edited by mfaine; 2011-02-02 at 18:56.

  8. #8
    Senior Member JJZolx's Avatar
    Join Date
    Apr 2005
    Location
    Colorado
    Posts
    11,462
    Quote Originally Posted by mfaine View Post
    Good god thank you man. I haven't tried it yet but at least you are trying something. I'm about to go freaking insane looking for reliable information for how to use squeezebox on a PC. Is it SoftSqueeze, SqueezePlay, what? And no, SqueezePlay isn't available on the Nightly Builds page.
    SqueezePlay. And it's on the nightly build pages.

  9. #9
    Senior Member lrossouw's Avatar
    Join Date
    Jan 2006
    Location
    Cape Town, South Africa
    Posts
    1,034

    Does this run on the touch?

    As my SB touch sits next to the TV it would be kind of cool if it could show now playing info on the touch display of what I'm watching on the TV, and of course allow me to browse to something else while still watching.

    I'd want the reverse too. Som XMBC screen that just shows what's playing on the touch. Album art, playlist and track info etc.
    Louis
    Last.fm

  10. #10
    Junior Member
    Join Date
    May 2009
    Location
    FL
    Posts
    24

    Menu to select XBMC clients

    Any chance of a menu to select different XBMC clients, for instance I have XBMC installed on ATV2, mac mini with CrystalHD and my iPad even an old XBOX which I dont use any more. Would be nice to have a menu option to choose which system I was controlling rather than having to change i.p address.

    BTW, great script. I love it, puts my Harmony One to shame
    LMS 7.9.0 -> QNAP TVS-871 Raid 5, Slimdevices Silver Transporter, 1 * SB Touch, 2 * SB Duets, 2 * SB Boom, 1 * SB Radio, 1 * Wandboard Quad, (1 dead SB Classic), Rasp Pi 2.0 + HiFiBerry-Amp+ Official Touchscreen + PiCorePlayer

Tags for this Thread

Posting Permissions

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