azaz44;571423 Wrote: 
> 
> I try to make some small plugin development and wonder how you do this.
> I found SoftSqueeze works great instead of testing thing on the real
> hardware. This way I can also development anywhere, not only at home.
> 
I use SqueezePlay (for simulating new devices), SoftSqueeze (for
simulating old devices) and slavesqueeze for simulating multiple
players.

azaz44;571423 Wrote: 
> 
> But is there any way to get rid of SC stop/start everytime I make a
> change and want to test? Or any way to make this work faster? I
> disabled all unneeded plugins in SC, but still it takes some time to
> stop and start again.
> 
I don't think you can avoid the restart when you change the perl code.
If you have a web interface in your plugin you usually doesn't have to
restart if you just change a HTML file or a image.

azaz44;571423 Wrote: 
> 
> Any other tips on how to develop things?
> 
If you are familiar with Linux, use it instead of Windows, it's
generally faster and a lot better command shell.

In my Linux setup I have a couple of start scripts that looks something
like this:

Code:
--------------------
    
  #!/bin/sh
  export PERL5LIB=$PERL5LIB:/opt/squeezecenter75:/opt/squeezecenter75/CPAN
  export PATH=/opt/squeezecenter75:$PATH
  slimserver.pl --cachedir /var/lib/squeezecenter/Cache75 --prefsdir 
/home/erland/Configurations/Prefs75 --logdir /var/lib/squeezecenter/Logs75 $*
  
--------------------


By using the --prefsdir, --cachedir and --logdir parameters I can point
each script to a different configuration directory. That way I can for
example have a single SBS installation but still be able to easily
switch between a small or large library by pointing it to different
prefs directories.

I usually also start SBS with the --d_startup flag to get some
increased logging if there are some perl syntax errors in my plugin.

Another recommendation is to use the svn version of SBS (which requires
ActiveState perl on Windows) because it makes it a lot easier if you are
using a SBS beta and like to upgrade to a newer version.

It's probably a good idea to either use 7.6 (with SQLite) or a separate
MySQL server instance (if using 7.5). By using a separate MySQL server
instance you don't need to restart MySQL every time and I think this
will speed up SBS restarts a bit. Another recommendation is to use a
small music library since larger libraries usually results in decreased
performance.


-- 
erland

Erland Isaksson ('My homepage' (http://erland.isaksson.info))
(Developer of 'many plugins/applets'
(http://wiki.slimdevices.com/index.php/User:Erland). If my answer
helped you and you like to encourage future presence on this forum
and/or third party plugin/applet development, 'donations are always
appreciated' (http://erland.isaksson.info/donate))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=81440

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to