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

Hybrid View

  1. #1
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,153

    7.4 - OS "native" control panel

    Something else I've spent some time on is a "native" (as in not web based) control panel for basic SC settings and control: set startup mode, start/stop SC, access log files, set paths, run scans, view information, cleanup etc.

    It should eventually show up in Windows control panel, OSX Preference Pane etc. For now you'll find it in OSX' application folder and in Windows start menu (or the SqueezeTray icon bottom right).

    While I'm interested in what you're thinking about it, please keep in mind this should stay clean and simple, and therefore concentrate on the very basics. We don't want this to be a full fledged SC control.

    If you're running Linux, you can access it by running cleanup.pl. Make sure you have a recent Wx for perl installed (>0.7).

    (Edit: I assume you can guess the various labels from my German version :-))
    Attached Images Attached Images   
    Michael

    http://www.herger.net/slim-plugins - MusicArtistInfo, MusicInfoSCR, Smart Mix

  2. #2
    Senior Member radish's Avatar
    Join Date
    Apr 2005
    Location
    Red Bank, NJ
    Posts
    5,052
    One thing I'd mention is that I'd be really sad if this meant the deb builds suddenly had dependencies on GUI stuff (e.g. X11, gnome, whatever). My server's headless and GUI-less and I avoid installing things which insist on bringing in piles of stuff I don't want. I've no problem with the control panel code being in there, it's just external deps I'm concerned about.

  3. #3
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,153

    7.4 - OS "native" control panel

    > One thing I'd mention is that I'd be really sad if this meant the deb
    > builds suddenly had dependencies on GUI stuff (e.g. X11, gnome,
    > whatever).


    Don't worry. If cleanup.pl can't find Wx it will expose a very simple CLI.
    The GUI is really optional.

    > My server's headless and GUI-less and I avoid installing
    > things which insist on bringing in piles of stuff I don't want.


    So is mine.

    --

    Michael

  4. #4
    Senior Member radish's Avatar
    Join Date
    Apr 2005
    Location
    Red Bank, NJ
    Posts
    5,052
    Awesome, thanks for the reassurance

  5. #5
    Senior Member
    Join Date
    Apr 2005
    Location
    Colorado
    Posts
    11,018
    How does it modify prefs such as paths? Does is send a message to the server to modify the loaded options, or does it require a server restart?

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

    7.4 - OS "native" control panel

    > How does it modify prefs such as paths? Does is send a message to the
    > server to modify the loaded options, or does it require a server
    > restart?


    It's mostly using JSON/RPC - like the Controller and the web UI. Most
    settings therefore are only available while SC is running. Some critical
    settings will be available without SC running, if they can help debug a
    failing SC.

    --

    Michael

  7. #7
    Senior Member
    Join Date
    Feb 2009
    Location
    Cambridge, UK
    Posts
    269

    7.4 - OS "native" control panel

    mherger wrote:
    > If you're running Linux, you can access it by running cleanup.pl. Make
    > sure you have a recent Wx for perl installed (>0.7).


    The Debian build doesn't have cleanup.pl, but it does have
    /usr/sbin/squeezecenter-cleanup.

    Is that it?

    cheers,
    calum.

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

    7.4 - OS "native" control panel

    > /usr/sbin/squeezecenter-cleanup.
    >
    > Is that it?


    I guess so. Give it a try and you'll know :-)

    Michael

  9. #9
    Senior Member
    Join Date
    Feb 2009
    Location
    Cambridge, UK
    Posts
    269

    7.4 - OS "native" control panel

    Michael Herger wrote:
    >> /usr/sbin/squeezecenter-cleanup.
    >>
    >> Is that it?

    >
    > I guess so. Give it a try and you'll know :-)


    it didn't sound like something I wanted to try without checking; perhaps
    cleanup meant remove all my files?


    anyway, not to promising so far, but perhaps it's something simple? I'm
    far from a Perl guru; here do I get the JSON module, please?

    cheers,
    calum.

    diz $ /usr/sbin/squeezecenter-cleanup
    Use of uninitialized value in subroutine entry at
    /usr/share/perl5/Slim/Utils/OS.pm line 264.
    dirsFor: Didn't find a match request: [base]
    GUI can't be loaded: Can't locate loadable object for module JSON::XS in
    @INC (@INC contains: /usr/share/squeezecenter/CPAN
    /usr/share/squeezecenter
    /usr/sbin/CPAN/arch/5.10/i386-linux-thread-multi
    /usr/sbin/CPAN/arch/5.10/i386-linux-thread-multi/auto
    /usr/sbin/CPAN/arch/5.10.0/i486-linux-gnu-thread-multi
    /usr/sbin/CPAN/arch/5.10.0/i486-linux-gnu-thread-multi/auto
    /usr/sbin/CPAN/arch/5.10/i486-linux-gnu-thread-multi
    /usr/sbin/CPAN/arch/5.10/i486-linux-gnu-thread-multi/auto
    /usr/sbin/CPAN/arch/i486-linux-gnu-thread-multi /usr/sbin/lib
    /usr/sbin/CPAN /usr/sbin CPAN /etc/perl /usr/local/lib/perl/5.10.0
    /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5
    /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . CPAN)
    at /usr/share/perl5/Slim/GUI/ControlPanel.pm line 203
    Compilation failed in require at
    /usr/share/perl5/Slim/GUI/ControlPanel.pm line 203.
    BEGIN failed--compilation aborted at
    /usr/share/perl5/Slim/GUI/ControlPanel.pm line 203.
    Compilation failed in require at /usr/sbin/squeezecenter-cleanup line 38.


    Please Stop SqueezeCenter before running the cleanup.

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

    7.4 - OS "native" control panel

    > anyway, not to promising so far, but perhaps it's something simple? I'm
    > far from a Perl guru; here do I get the JSON module, please?


    Two things:

    > dirsFor: Didn't find a match request: [base]


    Proving we didn't test this with Linux yet. Will fix this.

    > GUI can't be loaded: Can't locate loadable object for module JSON::XS in
    > @INC (@INC contains: /usr/share/squeezecenter/CPAN


    Proving you were too excited to read the announcement to the end ;-)

    "If you're running Linux, you can access it by running cleanup.pl. Make
    sure you have a recent Wx for perl installed (>0.7)."

    > beta mailing list
    > beta (AT) lists (DOT) slimdevices.com


    Enjoing hasslefree posting to the forums using the mailing list :-)

    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
  •