Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass active device count. #48

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

spiffy-sam
Copy link
Contributor

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.

@@ -27,7 +27,7 @@
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" id="F0z-JX-Cv5">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES"/>
<rect key="contentRect" x="196" y="240" width="600" height="426"/>
<rect key="screenRect" x="0.0" y="0.0" width="3440" height="1415"/>
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="875"/>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what this change is for. I haven't done Xcode xib editing in a while so let me know if I need to revert this part.

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.
@objective-see objective-see merged commit 863ed80 into objective-see:main Oct 26, 2023
timrogers added a commit to timrogers/litra that referenced this pull request Nov 21, 2023
…ing `-activeCount` argument

`litra-oversight` allows you to automatically turn your Litra
on/off when your webcam turns on and off in connection with
[OverSight][1].

OverSight can be pointed at the `litra-oversight` command to
enable this kind of automation.

OverSight calls the specified CLI with a number of arguments.
v2.1.8 [added][2] a new `-activeCount` argument that is
passed. We don't actually need this or care about it, but
since it isn't an allowlisted argument, we error and the
integration breaks down.

This allows `litra-oversight` to accept but ignore that
argument, getting thingss working again.

Fixes #259.

[1]: https://github.com/objective-see/OverSight
[2]: objective-see/OverSight#48
timrogers added a commit to timrogers/litra that referenced this pull request Nov 21, 2023
…ing new `-activeCount` argument (#269)

* Fix `litra-oversight`'s compatibility with Oversight 2.1.8+ by accepting `-activeCount` argument

`litra-oversight` allows you to automatically turn your Litra
on/off when your webcam turns on and off in connection with
[OverSight][1].

OverSight can be pointed at the `litra-oversight` command to
enable this kind of automation.

OverSight calls the specified CLI with a number of arguments.
v2.1.8 [added][2] a new `-activeCount` argument that is
passed. We don't actually need this or care about it, but
since it isn't an allowlisted argument, we error and the
integration breaks down.

This allows `litra-oversight` to accept but ignore that
argument, getting thingss working again.

Fixes #259.

[1]: https://github.com/objective-see/OverSight
[2]: objective-see/OverSight#48

* Build TypeScript into JavaScript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants