News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

when a motion sensor is tripped display a message on the TV

Started by gaspala, November 04, 2008, 10:55:01 PM

Previous topic - Next topic

gaspala

I have a motion sensor on the driveway. When it is tripped, I would like to display 'Driveway motion detected' on all on-screen orbiters.

I tried to use 'Respond To Events' for the motion sensor. I tried 'Send Message' on 'On Screen Orbiter' with '#144 Go Back (bool)' set to 1
'#9 Text (string)' set to 'Driveway motion detected'

I also tried 'Display Alert' with
'#251 Interruption (int)' set to 0
'#9 Text (string)' set to 'Driveway motion detected'
'#182 Timeout (string)' set to 3
'#70 Tokens (string)' set to 'motion'

Neither of them displayed any text. Instead, it toggled UI2 when no media is played. It showed the list of media files during a video playback.

Please let me know if I need to use different message or different parameters.

If possible, I would like to display the message at the top left corner of all TVs (on-screen orbiters). It is like how 'Remote nn is Active' is displayed when you associate a remote (FireChief) to a media director.

Thanks.

hari

where do you send that display alert to?

I'm using DEVICETEMPLATE_VirtDev_All_Orbiters_CONST (-305), works fine..

best regards,
Hari
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

gaspala

Where do you specify -305 ? I don't see any device that corresponds to -305 in the listbox named 'Device' on 'Edit' page of 'Respond To Events' page.

hari

rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

tschak909

The all orbiters device isn't available from the web admin. You will need to do each orbiter individually.

-Thom

gaspala

Thom, thanks for confirming lack of choice in the 'Device' list.

I achieved the same by wrapping the following command in a shell script and invoking 'App Server' device with 'Spawn Application' command

               /usr/pluto/bin/MessageSend dcerouter -targetType category -bl 5 1 5 1 809 251 0 9 "Driveway Motion detected" 182 15 70 "motion"

I realize that what I want to get done is similar to 'Anouncement' available from 'Active Sensors' page. But, instead of audio I need text display. Text display is a non-invasive. Perhaps, this is a good enhancement.

tschak909

Yeah, it can be added definitely. The relevant code to do this is in src/Security_Plugin, and the web admin may need to be modified to support this. I'm not sure, just conjecturing at this point.

-Thom