objective-see / OverSight

OverSight monitors a mac's mic and webcam, alerting the user when the internal mic is activated, or whenever a process accesses the webcam.
GNU General Public License v3.0
511 stars 39 forks source link

Pass active device count. #48

Closed spiffy-sam closed 1 year ago

spiffy-sam commented 1 year ago

When running a script it would be helpful to know if there are still any active devices. This gives the user more information to determine what they want to perform in their script.

Example: I want to turn on a smart switch when my camera or mic are active. This switch has a usb 'On Air' light plugged into it. I don't want the light to turn off until all devices are no longer active. The active count allows me to check without having to keep track since Oversight already does this.

Note: I tried to run this locally but had issues with the Sentry framework. Some instruction on how to build locally would be helpful so I'm not making useless PRs.