0

HD2000 Looping with motion detector



This script is running on a HD2000 with latest firmware.

The contact closure (gpios) is motion sensor the gives a closure when ever it sees movement in the room.
Currently this file plays when it receives a closure and then restarts when it receives another closure, cutting the file short.
What I need it to do is to play when it receives a contact closure and then play through the whole file and wait for the next contact closure.

VIDEOMODE 1024x768x60p

EVENTS button:0 videoend
STATE 000burrellmain.mpg:gpiosOff() 000burrellmain.mpg
STATE black.jpg:gpiosOn() black.jpg

The gpiosOn() and gpiosOff() don't seem to have any effect. I maybe using the commands in-correctly or in the wrong part of the script.
Comments, Help or suggestions would be greatly appreciated.
thanks

Andrew

2 comments

  • 0
    Avatar
    RokuLyndon


    VIDEOMODE,1024x768x60p,,



    EVENTS,,button:0,videoend

    STATE,black.jpg:gpiosOn(1;2),burrellmain.mpg,

    STATE,burrellmain.mpg:gpiosOff(1;2),,black.jpg



    It should look like this. Your need values inside the gpios on and off commands to tell the unit which gpios you want to turn on and off.
  • 0
    Avatar
    bluebottle3


    All Fixed - Thanks for the Help.  <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
Please sign in to leave a comment.