Interesting. A while back I was thinking about a "child lock" plugin for
my Boom (so my young child wouldn't fiddle with its buttons). I figured
on a PIN rather than a math problem, but the idea was to ignore all
button presses until / unless the correct PIN was entered. Since the
Boom is in my guest room, a math problem would make more sense than a
PIN. :-) Conceptually, your suggestion would be just a little bit more
difficult. The plugin could use the addDispatch API to intercept all
"ir" commands; when locked, it would look for the PIN or answer and not
pass any button presses along to other SqueezeCenter functions until
unlocked. For the alarm scenario, it could listen for alarm notification
events and "lock" the player once an alarm sounds, staying locked for
something like an hour until / unless manually unlocked. This would only
work with the IR remote, or front panel buttons (as for Boom, Receiver,
and Transporter) -- locking a Controller would take additional work,
possibly requiring a Lua applet running on the Controller itself.

I never did any work toward implementing this. At some point I modified
my VolumeLock plugin to enable setting a maximum volume, so now I merely
have a max volume set on the guest room Boom. I've saved the Boom
settings (with SettingsManager), so about the worst my kid can do is
turn on music at low-to-moderate volumes. So I'm not terribly motivated
to build anything better. But this *is* a very feasible idea.

-Peter


-- 
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=64812

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

Reply via email to