OK, making progress. I decided that all I really needed to do was switch
the Meridian 218 on & off with the Squeezebox player, so used Felix's
PowerSwitchII as a starting point.

I put my plugin into /usr/local/slimserver/Cache/Plugins, restarted LMS,
and the new plugin is listed as installed in the web interface Plugins
tab.
I was able to activate it on an SB3 I have via the Extras menu, and it
works - turns the Merdian 218 on & off as expected.

BUT... I want to use it with a SBR, and I can't see how it can be
activated on that. (Presumably I'd have the same issue if I wanted to
use it on a Squeezelite player).

(Note: I had already removed the code inherited from PowerSwitchII that
checks whether the player is a Transporter or SB2/3, but I don't think
that's relevant - I haven't even got as far as activating the plugin on
the SBR).

My next thought was that maybe the way PowerSwitchII is configured uses
some kind of legacy mechanism only available on the older players with a
display.

So I took a look at the PowerSave plugin (which I already have active on
the SBR) and noticed that it includes a PLAYER.HTML file that presents
the various options in the LMS Settings web interface, and a SETTINGS.PM
file that looks like it processes the settings selected in the
PLAYER.HTML page. So I built a simple equivalent and placed it with the
rest of my plugin. After restarting LMS, a SETTINGS option appeared next
to my new plugin, but clicking it results in:

Code:
--------------------
    404 Not Found: plugins/Extensions/settings/plugins/M218/settings/player.html
--------------------

I had a poke around, but as far as I can see none of the directories on
the server called Extensions have anything to do with PowerSave in
them.

I tried moving my new plugin to
/usr/local/slimserver/Cache/InstalledPlugins/Plugins (which is where
PowerSave was installed), but that didn't help. 

So I'm kind of stuck at this point. There seem to be so many possible
places where the various files might belong. Can anyone can give some
more guidance?

If it's relevant, I'm using piCorePlayer as my server, running LMS 7.9.2



Transporter -> ATC SCM100A
------------------------------------------------------------------------
cliveb's Profile: http://forums.slimdevices.com/member.php?userid=348
View this thread: http://forums.slimdevices.com/showthread.php?t=114585

_______________________________________________
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss

Reply via email to