New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/nuriofernandez/desktop-spotlight-camera-control

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/nuriofernandez/desktop-spotlight-camera-control

  • v0.0.0-20241122175129-1e657b7b1e90
  • Source
  • Go
  • Socket score

Version published
Created
Source

Setup and context

A few months ago, I decided to purchase and install a spotlight on my desktop. I did this to improve the video quality during meetings and calls with friends. Aditonally, I connected this spotlight to a smart plug/switch so it can be turn on and off with my phone.

Has ilustrated in the following image, I have a spotlight connected with a smart switch and an external camera on top of my monitor.

image

After the installation of this light, the difference is remarkable.

image

The issue

I keep forgetting to turn on that light over and over, having to get my phone and turn it on is not complicated, but it's something I keep forgeting to do.

This solution

I decided to build this project, a system that checks for camera usage on my compter and a controller to turn on and off the spotlight.

The resulting main function (using addtional components) is the following:

func main() {
	for {
		cameraStatus := checkCameraStatus()
		_ = TurnSpotlightTo(cameraStatus)

		time.Sleep(1 * time.Second)
	}
}

Live demo

image

FAQs

Package last updated on 22 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc