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

    Plugin installer: repo file for my plugins

    I've just created a repo file for my 14 plugins, including my hacked version of AutoDisplay that works with SC 7.01+:

    http://www.tux.org/~peterw/slim/slim7/repodata.xml

    If anyone's interested, I've posted the Perl script I threw together to create this XML. It looks at a couple local directories to find my plugins, and makes some assumptions about the varius things like
    - names of the string tokens needed for the localized title and desc elements
    - names of the info web pages for the link elements
    - how to extract the "base" plugin name and version from a zip file name
    - that you've got 'sha1sum' installed (I'm too lazy to install Digest::SHA1, but if you search for "SHA1" you'll see what to change if you're less lazy than I)
    - that you only have plugins to offer
    - that all plugins work on SC 7.0 through 7.3, all platforms

    Hopefully some of you will find it of some use.

    http://www.tux.org/~peterw/slim/slim7/mkrepo.pl.txt

    -Peter
    owner of the stuff that used to reside at 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

  2. #2
    Senior Member
    Join Date
    Apr 2005
    Posts
    8,410

    Plugin installer: repo file for my plugins

    >
    > I've just created a repo file for my 14 plugins, including my hacked
    > version of AutoDisplay that works with SC 7.01+:
    >
    > http://www.tux.org/~peterw/slim/slim7/repodata.xml
    >


    Looking good and thanks for the wiki entries. Do we need more info on the
    wiki to explain the xml format or where you happy with the comments in the
    code?

    I will post on the 3rd Party plugins page to let people know this is
    available and get people using 7.3 to start trying it. (From my BBCiPlayer
    plugin I see 130 downloads of the 7.3 version, so I think enough people are
    using 7.3 to publish this now)


  3. #3
    Quote Originally Posted by Triode View Post
    Looking good and thanks for the wiki entries. Do we need more info on the
    wiki to explain the xml format or where you happy with the comments in the
    code?
    Good question. I think the wiki repo page ought to at least link to sample XML, but explaining the format in a developers' section on that page would be great.

    Some thoughts on the current setup -- requests for 7.3.1 and 8.0:

    web UI browsability: I'm concerned the plugin list could get really long, really fast. Suggest organizing by repo, and within a repo, by status. Javascript hyperlinks in place to expand/collapse status or repo sections.

    web UI search: make it easy to search through the info in plugins' name, title, and description info.

    repo XML: "suggestions" to allow repo maintainers to recommend other repos, e.g.

    Code:
    <suggestions>
    <suggestion url="http://herger.net/blahblah.xml">
    <name lang="EN">Michael Herger's plugins</name>
    <commment lang="EN">Music Info Screensaver is a must-have for
    Squeezebox players with screens. Michael, now a Logitech
    employee, has a bunch of other interesting plugins available.</comment>
    </suggestion>
    </suggestions>
    In the SC web UI, suggestions for repos not yet subscribed to would offer simple hyperlinks to add those repos. This would build a "web of recommendations" to help users could find lots of good stuff after only cutting and pasting one repo URL.
    owner of the stuff that used to reside at 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 erland's Avatar
    Join Date
    Dec 2005
    Location
    Sweden
    Posts
    11,002
    Quote Originally Posted by peterw View Post
    repo XML: "suggestions" to allow repo maintainers to recommend other repos, e.g.

    In the SC web UI, suggestions for repos not yet subscribed to would offer simple hyperlinks to add those repos. This would build a "web of recommendations" to help users could find lots of good stuff after only cutting and pasting one repo URL.
    I'm not sure I like to have this kind of information in the repository xml files, it could be a mess to maintain if some developer for some reason needs to move his repository xml file to another host or path. You will then have a lot of other repository xml files pointing to the wrong place.
    (Yes, I understand it isn't recommended to move the repository xml file)

    Listing the repositories on the wiki page should be enough until we have a central repository.
    Erland Isaksson (My homepage)
    Lead platform developer of ickStream Music Platform - A world of music at your fingertips

    (Also 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)

  5. #5
    Senior Member
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    627
    Quote Originally Posted by peterw View Post
    I've just created a repo file for my 14 plugins, including my hacked version of AutoDisplay that works with SC 7.01+:

    http://www.tux.org/~peterw/slim/slim7/repodata.xml
    Peter,

    i took a test ride and removed your previously installed plugins (namely the settingsmanager) so i can use the new extension framework. On SC-startup i get the following message

    Code:
    [08-11-08 17:22:53.5051] Slim::Utils::Strings::string (410) Error: missing string SETUP_AUTOBRIGHTNESS_CHOOSE
    [08-11-08 17:22:53.5056] Slim::Utils::Strings::string (410) Backtrace:
    
       frame 0: Slim::Utils::Log::logBacktrace (/opt/SqueezeCenter_svn/7.3/trunk/server/Slim/Utils/Strings.pm line 410)
       frame 1: Slim::Utils::Strings::string (/home/control/squeezecenter/cache/InstalledPlugins/Plugins/SettingsManager/Plugin.pm line 574)
       frame 2: Plugins::SettingsManager::Plugin::nameCorePrefs (/home/control/squeezecenter/cache/InstalledPlugins/Plugins/SettingsManager/Plugin.pm line 98)
       frame 3: Plugins::SettingsManager::Plugin::initPlugin (/opt/SqueezeCenter_svn/7.3/trunk/server/Slim/Utils/PluginManager.pm line 524)
       frame 4: (eval) (/opt/SqueezeCenter_svn/7.3/trunk/server/Slim/Utils/PluginManager.pm line 524)
       frame 5: Slim::Utils::PluginManager::enablePlugins (/opt/SqueezeCenter_svn/7.3/trunk/server/Slim/Utils/PluginManager.pm line 140)
       frame 6: Slim::Utils::PluginManager::init (/opt/squeezecenter/slimserver.pl line 430)
       frame 7: main::init (/opt/squeezecenter/slimserver.pl line 482)
       frame 8: main::main (/opt/squeezecenter/slimserver.pl line 1046)
    Does this make sense?

    nevertheless: great work you've all done so far regarding this repository approach. In my opinion this will bring the "SC is (easy) extendable with plugins" to a much broader audience. Remains the challenge how to do platform independent SC restarts...

    keep up the good work,
    Markus

  6. #6
    Senior Member
    Join Date
    May 2005
    Location
    In a house
    Posts
    1,666
    I can confirm the same SETUP_AUTOBRIGHTNESS_CHOOSE error with Settings Manager.

    I had an error also with SyncOptions also:

    [12:10:07.0083] Slim::Control::Request::execute (1887) Error: While trying to run function coderef [Plugins::SyncOptions::Plugin::SyncOptions_syncComm and]: [Can't locate object method "slaves" via package "Slim::Player::Receiver" at C:\Documents and Settings\All Users\Application Data\SqueezeCenter\Cache\InstalledPlugins/Plugins/SyncOptions/Plugin.pm line 730.
    ]
    When this occurred, I was never able to sync. Moving right would keep repeating the same Sync with PlayerName menu. I disabled SyncOptions, and re-enabled later, and now it seems to work (and very well!).

  7. #7
    Quote Originally Posted by MrC View Post
    I can confirm the same SETUP_AUTOBRIGHTNESS_CHOOSE error with Settings Manager.

    I had an error also with SyncOptions also:
    Thanks. Neither of these is related to the installer framework. The SETUP_AUTOBRIGHTNESS_CHOOSE strings warning is harmless & I will take care of that. The SyncOptions problem is serious (duh!) & will require some investigation.

    -Peter
    owner of the stuff that used to reside at 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

  8. #8

    $::VERSION bug with extension downloader???

    Quote Originally Posted by MrC View Post
    I can confirm the same SETUP_AUTOBRIGHTNESS_CHOOSE error with Settings Manager.
    This is a SqueezeCenter bug that does seem to be related to the extension manager. SettingsManager only tries to use that string if $::VERSION is 7.0.x. If I manually install the code to server/Plugins/, it sees "7.3" for $::VERSION and there's no string() error. But if it's installed by the extension manager, it doesn't work right.

    This may also explain the SyncOptions trouble -- SyncOptions looks at $::VERSION to determine whether to use APIs from SC 7.0 through 7.2, or the "new-streaming" APIs in 7.3. If it can't see the correct value, it won't work right.
    owner of the stuff that used to reside at 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

  9. #9
    Senior Member
    Join Date
    Apr 2005
    Posts
    8,410
    On what platform?

    My plugins are reading $::VERSION ok when installed by extension downloader on linux. I can't see why it would be different.

  10. #10
    Quote Originally Posted by Triode View Post
    On what platform?

    My plugins are reading $::VERSION ok when installed by extension downloader on linux. I can't see why it would be different.
    Linux. Ugh, my published version isn't up to date. False alarm. Seemed darn weird. Grr. Sorry.
    owner of the stuff that used to reside at 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

Posting Permissions

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