|
From: MrDave <mot...@gm...> - 2023-10-23 15:54:56
|
What I've seen is that people use a bash script that pings their phone. If the ping returns then disable the camera(s), if not, then turn the camera(s) on. Then use a crontab to run the script at some sort of frequent interval. MrDave On 10/23/2023 9:26 AM, Richard Bown wrote: > Hi > just 8 cams on my system, one really needs to be disabled during the > day, > At the moment I'm sending a script in homeassistant > > lounge_cam: > command_on: 'lwp-request > http://localhost:7770/101/detection/start' > command_off: 'lwp-request > http://localhost:7770/101/detection/pause' > > sorry for the line wrapping, it doesn't always work as verification is > a pig to get to work, So far I have failed , > I have logging set to 8 and I have tried to use grep to find the > response to the lwp-request. > If it was only just using it for a few hours at night, I could use > crontab , but it also needs to be on if we are out or away from home. > with 8 cameras and on log level 8 there is a lot being added to the > logfile. > Am I missing a simple way of doing this ??? > |