Difference between revisions of "Respond to Events"

From LinuxMCE
Jump to: navigation, search
(Imported document)
 
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<table width="100%"> <tr><td bgcolor="#FFCFCF">This page was written by Pluto and imported with their permission when LinuxMCE branched off in February, 2007. In general any information should apply to LinuxMCE.  However, this page should be edited to reflect changes to LinuxMCE and remove old references to Pluto.</td></tr> </table><p>This page makes it easy to tell Pluto to do things in response to several pre-defined events. One of the most common events is "Watching Media", or "Listening to Media".  Let's say you want the lights to dim whenever someone is watching something on the tv. You could add the appropriate commands to all the media scenarios that involve the tv. However Pluto will automatically fire a watching media event whenever video starts playing, and a listening to audio event whenever audio without video starts playing. So you can add 1 event handler to indicate what you want to do in such situations, and then you do not need to attach the commands to the individual scenarios.</p>
+
[[Category: Tutorials]]
<p>Another common use is to tell Pluto to do something when a sensor is tripped, like turn on a light. You can also indicate how Pluto should respond to a security breach or a fire alarm.  There are several events to choose from.  Pick the event you want, then specify any parameters for that event along with the commands, or actions, you want to be executed when that event occurs. </p>
+
[[Category: Admin Website]]
<p>Note that you can create several event handlers for the same event all with different criteria.  For example, you could have an event handler for "Watching Media" when it occurs in the living room during daylight hours that closes the blinds.  You could add another event handler for "Watching Media" in the same room for nighttime that dims the lights.</p>
+
[[Category: Automation]]
 +
{{versioninfo}}
 +
[[Image:Respondtoevents.jpg|thumb|200px|Respond to Events Admin Page]]
 +
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 might be added to all media scenarios that involve the TV.
 +
 
 +
(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.
 +
 
 +
Look at [[Event criteria]] for details about each criteria.
 +
 
 +
== Event examples ==
 +
* [[Using Respond To Events]]
 +
* [[Make things happen at sunrise/sunset]]
 +
* [[Make things happen when I enter a room]]
 +
* [[Common Events Examples]]
 +
 
 +
== Also see ==
 +
* [[Advanced Pages Events]]

Latest revision as of 07:55, 14 September 2010

Version Status Date Updated Updated By
710 Unknown N/A N/A
810 Unknown N/A N/A
1004 Unknown N/A N/A
1204 Unknown N/A N/A
1404 Unknown N/A N/A
Usage Information
Respond to Events Admin Page

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 might be added to all media scenarios that involve the TV.

(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.

Look at Event criteria for details about each criteria.

Event examples

Also see