Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Senior Member pippin's Avatar
    Join Date
    Oct 2007
    Location
    Berlin
    Posts
    11,917
    Quote Originally Posted by mherger View Post
    > "serverstatus" has a "playerprefs:xxx" tag. That's what I use to get
    > notified about all player states.


    Oops... then I'd assume you've hit a bug. But what did you mean when you
    mentioned it worked with plugin.irblasterref in comment #4?
    I didn't say it worked. I said thanks to peter since I did NOT try plugin.irblaster:volumeup_count before.


    > Works for everything but this one.


    Which one? I'm confused...
    plugin.irblaster:volumeup_count

    It works for prefs within the "normal" player namespace, e.g. "playtrackalbum" and "digitalVolumeControl", that's what I use now.

    Should I file a bug?
    ---
    learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
    Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
    at penguinlovesmusic.com
    New: iPeng 8, the Universal App for iOS 7 and iOS 8

  2. #12
    Administrator andyg's Avatar
    Join Date
    Jan 2006
    Location
    Pittsburgh, PA
    Posts
    7,395

    Help Needed: Can I read plugin prefs throughserverstatus?

    On Mar 16, 2009, at 11:23 AM, pippin wrote:

    >
    > mherger;406932 Wrote:
    >>> "serverstatus" has a "playerprefs:xxx" tag. That's what I use to get
    >>> notified about all player states.

    >>
    >> Oops... then I'd assume you've hit a bug. But what did you mean when
    >> you
    >> mentioned it worked with plugin.irblasterref in comment #4?
    >>

    >
    > I didn't say it worked. I said thanks to peter since I did NOT try
    > plugin.irblaster:volumeup_count before.
    >
    >>
    >>
    >>> Works for everything but this one.

    >>
    >> Which one? I'm confused...
    >>

    >
    > plugin.irblaster:volumeup_count
    >
    > It works for prefs within the "normal" player namespace, e.g.
    > "playtrackalbum" and "digitalVolumeControl", that's what I use now.
    >
    > Should I file a bug?


    I wouldn't expect to be able to retrieve prefs via serverstatus. I
    don't understand why it even supports that? You should probably use a
    separate call to get the value of pref(s).

  3. #13
    Senior Member pippin's Avatar
    Join Date
    Oct 2007
    Location
    Berlin
    Posts
    11,917
    Quote Originally Posted by andyg View Post

    I wouldn't expect to be able to retrieve prefs via serverstatus. I
    don't understand why it even supports that? You should probably use a
    separate call to get the value of pref(s).
    ???
    This is a documented feature!
    I get all players and a lot of states for each player.
    I thought the whole sense of the "xxxstatus" calls is to prevent polling now I should start to poll for a few preferences???

    http://localhost:9000/en/html/docs/c...l#serverstatus
    ---
    learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
    Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
    at penguinlovesmusic.com
    New: iPeng 8, the Universal App for iOS 7 and iOS 8

  4. #14
    Senior Member pippin's Avatar
    Join Date
    Oct 2007
    Location
    Berlin
    Posts
    11,917
    BTW, what I'm requesting is not really specific, here's what SqueezePlay subscribes through serverstatus:

    Code:
     {
        channel => "/2918a3e3/slim/serverstatus",
        data => {
              "info total albums"  => 756,
              "info total artists" => 381,
              "info total genres"  => 96,
              "info total songs"   => 8345,
              "other player count" => 0,
              "player count"       => 3,
              players_loop         => [
                                        {
                                          canpoweroff => 1,
                                          connected => 1,
                                          displaytype => "graphic-320x32",
                                          ip => "192.168.0.35:47330",
                                          isplayer => 1,
                                          model => "squeezebox3",
                                          name => "JoergsSqueezy",
                                          playerid => "...",
                                          power => 1,
                                          uuid => undef,
                                        },
                                       ...
                                      ],
              "sn player count"    => 1,
              sn_players_loop      => [
                                        { id => ..., name => "EssSqueezy", playerid => "..." },
                                      ],
              version              => "7.4",
            },
        ext => { priority => "" },
        id => 1,
    ---
    learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
    Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
    at penguinlovesmusic.com
    New: iPeng 8, the Universal App for iOS 7 and iOS 8

Posting Permissions

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