That last example make me wonder if you've looked at 'KidsPlay'
(http://www.tux.org/~peterw/slim/KidsPlay.html). A player-specific CLI
command like


Code:
--------------------
    04:20:00:12:23:45 playlist clear
--------------------


can be executed in Perl as 


Code:
--------------------
    $client->execute(['playlist', 'clear']);
--------------------


so KidsPlay does not require you to enter the player MAC -- it's simply
not needed. KidsPlay uses a $client object representing the player where
the button was pressed. In KidsPlay you'd define the macro as simply
"playlist clear". In your case, if you're offering Jive/Controller
options, I'd expect you to execute in the context of the player that the
Controller is currently controlling.

KidsPlay 2.2.0 and newer also allow you to specify a specific player if
that's what you want, or to specify that a command should be run on
behalf of every player, or every player other than the current one --
see http://forums.slimdevices.com/showpost.php?p=450640&postcount=8


-- 
peterw

http://www.tux.org/~peterw/
free plugins: http://www.tux.org/~peterw/#slim
AllQuiet BlankSaver ContextMenu FuzzyTime KidsPlay
KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher
SettingsManager SleepFade StatusFirst SyncOptions VolumeLock
------------------------------------------------------------------------
peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

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

Reply via email to