TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Control multi WiFi cameras via one script

    Raspberry Pi
    1
    1
    211
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • tuicemenT
      tuicemen
      last edited by

      As I mentioned here https://www.triggercmd.com/forum/topic/1953/voice-controlling-x10-pan-tilt-wifi-cameras I have HomeGenie (HG) move my wifi cameras via macros based off a security system trip.
      I did add a simple way to perform that task for my front door via TRIGGERcmd and Voice nice cool factor.
      However I have several cameras some outside some inside I view all these at once in HG via a special camera page. Each camera has 4 preset buttons I added to widgets I created. Now I could just press a preset button for each to turn the camera to a door (yes they all can focus on multiple door entries)
      To make things simpler and faster I thought I'd make a simple script to turn all cameras to the preset that matched the closest entry door to the camera. Now I can say Alexa run door watcher and all cameras turn to the closest door to the camera.
      the script is simple enough

      #!bin/bash
      #camera 1 preset 1
      curl "URL for preset"
      #camera2 preset 2
      curl "URL for preset"
      

      If you test this from the command line and all goes well you should get a "OK" response from each camera.
      I've tested this thus far with 4 cameras (3 different brands & models).

      1 Reply Last reply Reply Quote 0
      • First post
        Last post