Triode wrote: 
> Pascal,
> 
> If you only use jivelite to control the wandboard player, then how about
> checking the against the currently selected player mac rather than the
> jivelite mac address.  I think this may work, but not tried...
> 
> appletManager:callService("getCurrentPlayer"):getId() should give the
> mac address of the current player, you may need to protect against the
> current player not being set so:
> 
> local currentPlayer = appletManager:callService("getCurrentPlayer")
> if currentPlayer and currentPlayer:getId() == mac_to_test then
> <do something useful>
> end

Thank you both for the suggestions.

What I want with the Trigger Output is to have something very universal
and with as little configuration as possible. The Trigger Output must be
able to function well in every use case of the Community Squeezebox.
There are other users interested in the Trigger Output functionality and
I don’t want to narrow down its use to a certain use case.
Having said that, I rarely use Jivelite myself to operate Squeezelite.
Instead I use the Community Squeezebox just as any other Squeezebox; I
mainly use iPeng and SqueezePad to control them. 

I’m thinking to go back to something what I had in the past where I
extracted the real MAC addresses from ifconfig. I’m still thinking about
how exactly to do it but I need to do some more testing. It may not have
been the most elegant way of doing it but at least that worked fine in
every case. I’m able to extract both the Ethernet’s and WiFi’s real MAC
addresses there. And I could use both MAC addresses to verify whether
the power control came from the current player or not.



1 x SB3, 1 x SB Boom, 1 x SB Radio and 2 x SB Touch - all wireless
1 x Wandboard behind the bedroom ceiling
ReadyNAS NVX running LMS 7.7.2. w iTunes plugin
iPeng on iPod Touch.
SqueezePad & iPeng on iPad.
http://www.last.fm/user/phibon
------------------------------------------------------------------------
Pascal Hibon's Profile: http://forums.slimdevices.com/member.php?userid=7969
View this thread: http://forums.slimdevices.com/showthread.php?t=98544

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

Reply via email to