Author Topic: when a motion sensor is tripped display a message on the TV  (Read 1221 times)

gaspala

  • Regular Poster
  • **
  • Posts: 20
    • View Profile
when a motion sensor is tripped display a message on the TV
« on: November 04, 2008, 10:55:01 pm »
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

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2421
    • View Profile
    • ago control
Re: when a motion sensor is tripped display a message on the TV
« Reply #1 on: November 04, 2008, 11:58:22 pm »
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 - http://www.agocontrol.com home automation

gaspala

  • Regular Poster
  • **
  • Posts: 20
    • View Profile
Re: when a motion sensor is tripped display a message on the TV
« Reply #2 on: November 05, 2008, 04:37:35 am »
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

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2421
    • View Profile
    • ago control
Re: when a motion sensor is tripped display a message on the TV
« Reply #3 on: November 05, 2008, 11:41:58 am »
dunno, I'm sending this from a device (c++).

br, Hari
rock your home - http://www.agocontrol.com home automation

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5501
  • DOES work for LinuxMCE.
    • View Profile
Re: when a motion sensor is tripped display a message on the TV
« Reply #4 on: November 05, 2008, 01:37:22 pm »
The all orbiters device isn't available from the web admin. You will need to do each orbiter individually.

-Thom

gaspala

  • Regular Poster
  • **
  • Posts: 20
    • View Profile
Re: when a motion sensor is tripped display a message on the TV
« Reply #5 on: November 05, 2008, 06:45:23 pm »
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

  • LinuxMCE God
  • ****
  • Posts: 5501
  • DOES work for LinuxMCE.
    • View Profile
Re: when a motion sensor is tripped display a message on the TV
« Reply #6 on: November 05, 2008, 06:47:20 pm »
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