Difference between revisions of "Respond to Events"
Rwilson131 (Talk | contribs) m |
Perspectoff (Talk | contribs) |
||
Line 1: | Line 1: | ||
+ | [[Category: Tutorials]] | ||
[[Category: Admin Website]] | [[Category: Admin Website]] | ||
[[Category: Automation]] | [[Category: Automation]] | ||
+ | |||
[[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 tell LinuxMCE to do things in response to several pre-defined events. | + | This page makes it easy to tell LinuxMCE to do things in response to several pre-defined events. |
+ | |||
+ | One of the most common events is "Watching Media", or "Listening to Media". You can choose to dim the lights whenever someone is watching TV, for example. This event handler can be added to all media scenarios that involve the TV, for example. | ||
+ | |||
+ | (LinuxMCE automatically triggers a "watching media" event by default whenever a video starts playing, and a "listening to audio" event whenever audio starts playing.) | ||
+ | |||
+ | You can add a event handler to indicate what you want to do in a specific situation, and then you do not need to attach the commands to the individually selected scenarios. The commands ought to be automatically executed in response to the same event every time. | ||
− | Another common use is to tell LinuxMCE to do something | + | Another common use is to tell LinuxMCE to do something whenever a sensor is tripped (like turning on the lights). You can, for example, indicate how LinuxMCE should respond to a security breach or a fire alarm. |
− | + | You can create several event handlers for the same event, each with different criteria. For example, you could have a separate event handler that closes the blinds in response to "Watching Media" whenever it occurs during daylight hours. You could add another event handler for "Watching Media" for nighttime that dims the lights. |
Revision as of 23:22, 22 May 2008
This page makes it easy to tell LinuxMCE to do things in response to several pre-defined events.
One of the most common events is "Watching Media", or "Listening to Media". You can choose to dim the lights whenever someone is watching TV, for example. This event handler can be added to all media scenarios that involve the TV, for example.
(LinuxMCE automatically triggers a "watching media" event by default whenever a video starts playing, and a "listening to audio" event whenever audio starts playing.)
You can add a event handler to indicate what you want to do in a specific situation, and then you do not need to attach the commands to the individually selected scenarios. The commands ought to be automatically executed in response to the same event every time.
Another common use is to tell LinuxMCE to do something whenever a sensor is tripped (like turning on the lights). You can, for example, indicate how LinuxMCE should respond to a security breach or a fire alarm.
You can create several event handlers for the same event, each with different criteria. For example, you could have a separate event handler that closes the blinds in response to "Watching Media" whenever it occurs during daylight hours. You could add another event handler for "Watching Media" for nighttime that dims the lights.