Hi,
I'm currently attempting to configure Girder with Sage to control external set-top boxes via infrared (USBUIRT) when it desires the video source to change channels. (I know I can do this directly from Sage, but desire Girder involved for other event handling)
I've successfully configured exemultituner, and have girder seeing the change-channel events from sage as a Girder Event. happy day...
However, since the channels selected come through as complete numbers (i.e., I could receive a "5" for channel 5, or a "607" for a different channel) I believe that I need to build a lua script to, upon the exemultituner event, pass the channel number to a lua script, which would parse it and send the IR actions.
I.e., it should be able to call the IR actions for "6", "0", "7" and "ENTER" when Sage says "change_channel" "607"
All this sounds conceptually within Girder's ability, but after a couple of days of hard reading and experimentation, I'll be darned if I can figure out how to trigger a Girder Action (such as a learned IR "Transmit IR Command" action) from a lua script. (I can certainly see that I can cause an Event to occur - but the lua script is *responding* to an event, and needs to *cause* an action)
Is this possible? Or is this done a different way? Sorry if this is trivial, I've searched a *lot* and read the lua reference a lot before posting...
Thanks!


Reply With Quote