PIR to activate touch screen page

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by tommo98765, Jan 19, 2016.

  1. tommo98765

    tommo98765

    Joined:
    Jan 16, 2015
    Messages:
    11
    Likes Received:
    0
    Location:
    Perth
    Hi all,

    I tried searching but no luck. Hopefully it's possible.

    Basically I've got an IP camera and Cbus PIR sensor setup on the front porch. I have the IP camera correctly displayed on a page within the Colour touch screen.
    Whenever the PIR is activated I would like it to activate the page on the touch screen which has the camera display instead of having to manually click into it.

    Is that possible?

    Appreciate any feedback.
     
    tommo98765, Jan 19, 2016
    #1
  2. tommo98765

    DarylMc

    Joined:
    Mar 24, 2006
    Messages:
    1,308
    Likes Received:
    49
    Location:
    Cleveland, QLD, Australia
    You can do this with logic if your touchscreen has it.
     
    DarylMc, Jan 19, 2016
    #2
  3. tommo98765

    tommo98765

    Joined:
    Jan 16, 2015
    Messages:
    11
    Likes Received:
    0
    Location:
    Perth
    .. Go onnn
     
    tommo98765, Jan 19, 2016
    #3
  4. tommo98765

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,524
    Likes Received:
    173
    Location:
    Adelaide, Australia
    Code:
    once GetLightingState("PIR GA") then showPage("Camera Page");
    It's in the logic help :)
     
    Last edited by a moderator: Jan 19, 2016
    Ashley, Jan 19, 2016
    #4
  5. tommo98765

    Wonkey

    Joined:
    Aug 3, 2004
    Messages:
    395
    Likes Received:
    37
    Location:
    Adelaide
    The logic wizard will also create the correct code for you
     
    Wonkey, Jan 19, 2016
    #5
  6. tommo98765

    tommo98765

    Joined:
    Jan 16, 2015
    Messages:
    11
    Likes Received:
    0
    Location:
    Perth
    Awesome, thanks all. I'll look into it.

    I've done lots of programming before but very new to cbus so I didn't even know it was an option.

    the rabbit hole deepens.
     
    tommo98765, Jan 19, 2016
    #6
  7. tommo98765

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,524
    Likes Received:
    173
    Location:
    Adelaide, Australia
    Well, syntactically correct anyway :)
     
    Ashley, Jan 19, 2016
    #7
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.