Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Senior Member pippin's Avatar
    Join Date
    Oct 2007
    Location
    Berlin
    Posts
    10,385

    Help Needed: Can I read plugin prefs through serverstatus?

    I'm trying to get IRBlaster's "volumedown_count" and "volumeup_count" preferences through "serverstatus". I've tried about every combination of namespace and pref as a parameter for the "playerprefs" tag.
    No success.
    Is this possible at all and if not, is there another way to get the pref setting through CLI/cometd?
    ---
    learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
    New: Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
    at penguinlovesmusic.com

  2. #2
    Quote Originally Posted by pippin View Post
    I'm trying to get IRBlaster's "volumedown_count" and "volumeup_count" preferences through "serverstatus". I've tried about every combination of namespace and pref as a parameter for the "playerprefs" tag.
    No success.
    Is this possible at all and if not, is there another way to get the pref setting through CLI/cometd?
    In the CLI, this works for me:

    Code:
    MACADDR playerpref plugin.irblaster:volumeup_count ?
    http://www.tux.org/~peterw/
    Note: The best way to reach me is email or PM, as I don't spend time on the forums.
    Free plugins: AllQuiet Auto Dim/AutoDisplay BlankSaver ContextMenu DenonSerial
    FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher
    SettingsManager SleepFade StatusFirst SyncOptions VolumeLock

  3. #3
    Oh, BTW, you probably need SC 7.4 for that CLI query to work...

    http://bugs.slimdevices.com/show_bug.cgi?id=10390

    "The 'pref' CLI command, both in query and set/command mode, is supposed to accept preference names in the format $namespace:$prefname. But the regexp for parsing $namespace:$prefname only allows $prefname to contain letters and numbers. Preference names like 'macro-Boom-preset_6', while legal in Perl code, are not usable with the 'pref' CLI commands."

    Fixed in 7.4 in early January.

    -Peter
    http://www.tux.org/~peterw/
    Note: The best way to reach me is email or PM, as I don't spend time on the forums.
    Free plugins: AllQuiet Auto Dim/AutoDisplay BlankSaver ContextMenu DenonSerial
    FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher
    SettingsManager SleepFade StatusFirst SyncOptions VolumeLock

  4. #4
    Senior Member pippin's Avatar
    Join Date
    Oct 2007
    Location
    Berlin
    Posts
    10,385
    Thanks. I did try "plugin.irblaster.volumeup_count" and "plugin.irblaster::volumenup_count" but not "plugin.irblaster:volumeup_count"...

    Do you know if the fix will also be included in 7.3.3?
    ---
    learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
    New: Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
    at penguinlovesmusic.com

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

    Help Needed: Can I read plugin prefs throughserverstatus?

    > Do you know if the fix will also be included in 7.3.3?

    Does the prefs/playerprefs command fail for you at all? It's only with
    some particular variable names that there is an issue.

    --

    Michael

  6. #6
    Senior Member pippin's Avatar
    Join Date
    Oct 2007
    Location
    Berlin
    Posts
    10,385
    Quote Originally Posted by mherger View Post
    > Do you know if the fix will also be included in 7.3.3?

    Does the prefs/playerprefs command fail for you at all? It's only with
    some particular variable names that there is an issue.
    Can't tell right now, all my physical players are on 7.4 servers. Will have to check another day.
    ---
    learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
    New: Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
    at penguinlovesmusic.com

  7. #7
    Senior Member pippin's Avatar
    Join Date
    Oct 2007
    Location
    Berlin
    Posts
    10,385
    Can't I use this with "serverstatus"?
    Doesn't work right now, even with my 7.4 server.
    ---
    learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
    New: Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
    at penguinlovesmusic.com

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

    Help Needed: Can I read plugin prefs throughserverstatus?

    > Can't I use this with "serverstatus"?

    I'm really surprised you're asking this. Different commands for different
    uses seems pretty obvious to me?

    --

    Michael

  9. #9
    Senior Member pippin's Avatar
    Join Date
    Oct 2007
    Location
    Berlin
    Posts
    10,385
    Quote Originally Posted by mherger View Post
    > Can't I use this with "serverstatus"?

    I'm really surprised you're asking this. Different commands for different
    uses seems pretty obvious to me?
    ???
    "serverstatus" has a "playerprefs:xxx" tag. That's what I use to get notified about all player states.
    Works for everything but this one.
    ---
    learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
    New: Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
    at penguinlovesmusic.com

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

    Help Needed: Can I read plugin prefs throughserverstatus?

    > "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?

    > Works for everything but this one.


    Which one? I'm confused...

    --

    Michael

Posting Permissions

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