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

    Control multi WiFi cameras via one script

    Scheduled Pinned Locked Moved Raspberry Pi
    1 Posts 1 Posters 615 Views
    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 Offline
      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

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post