Difference between revisions of "Respond to Events"
Perspectoff (Talk | contribs) |
Perspectoff (Talk | contribs) |
||
Line 4: | Line 4: | ||
[[Image:Respondtoevents.jpg|thumb|200px|Respond to Events Admin Page]] | [[Image:Respondtoevents.jpg|thumb|200px|Respond to Events Admin Page]] | ||
− | This page makes it easy to | + | This page makes it easy to automatically execute a command in response to a pre-defined event or set of events. |
− | + | Two of the most common events, for example, are "Watching Media" and "Listening to Media". You can choose to dim the lights whenever someone is watching TV, for example, by using the "Watching Media" event handler. This event handler could be added to all media scenarios that involve the TV, for example. | |
− | (LinuxMCE | + | (LinuxMCE triggers a "watching media" event by default whenever a video starts playing, and a "listening to audio" event whenever an audio starts playing.) |
− | You can add a event handler to indicate | + | You can add a event handler to indicate a desired command to be executed in response to every occurrence of a specific situation (event). You would not then need to attach that command to individual scenarios. The commands would be automatically executed in response to the same situation (event) every time. |
− | Another common use is to tell LinuxMCE to | + | Another common use of an event handler is to tell LinuxMCE to trigger a specific command whenever a sensor is tripped (like turning on the lights when a motion detector is tripped). You can use this to select how LinuxMCE will respond to a security breach or a fire alarm, for example. |
− | You can create several event handlers | + | You can create several event handlers that include the same event, each with somewhat different criteria. For example, you might have a separate event handler that during daylight hours will close the blinds in response to the "Watching Media" event. During nighttime hours, "Watching Media" might trigger the lights to dim, instead. |
Revision as of 23:29, 22 May 2008
This page makes it easy to automatically execute a command in response to a pre-defined event or set of events.
Two of the most common events, for example, are "Watching Media" and "Listening to Media". You can choose to dim the lights whenever someone is watching TV, for example, by using the "Watching Media" event handler. This event handler could be added to all media scenarios that involve the TV, for example.
(LinuxMCE triggers a "watching media" event by default whenever a video starts playing, and a "listening to audio" event whenever an audio starts playing.)
You can add a event handler to indicate a desired command to be executed in response to every occurrence of a specific situation (event). You would not then need to attach that command to individual scenarios. The commands would be automatically executed in response to the same situation (event) every time.
Another common use of an event handler is to tell LinuxMCE to trigger a specific command whenever a sensor is tripped (like turning on the lights when a motion detector is tripped). You can use this to select how LinuxMCE will respond to a security breach or a fire alarm, for example.
You can create several event handlers that include the same event, each with somewhat different criteria. For example, you might have a separate event handler that during daylight hours will close the blinds in response to the "Watching Media" event. During nighttime hours, "Watching Media" might trigger the lights to dim, instead.