Control multi WiFi cameras via one script
-
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).
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