Skip to content

Track the state of your webcam, update a ThingSpeak channel, and control lights.

License

Notifications You must be signed in to change notification settings

nothans/webcam-state

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Track Webcam State with Python and OpenCV

I wanted to track my webcam state, whether or not it is in use, so I could turn on an On Air light. The light's on when my webcam is in use. I use this for my new remote working world. I am in Microsoft Teams and Zoom meetings most of the day.

When this Python script runs, it checks if my webcam is in use or not and updates a ThingSpeak channel with the status. Then, an ESP-8266 Wi-Fi device reads that state from ThingSpeak to control a light.

For more information about my On Air light project:

Setup

  • Create ThingSpeak channel at (https://thingspeak.com) with Field 1 enabled
  • Change thingSpeakWriteKey to your channel's Write API Key

Dependencies

  • pip install opencv-python
  • pip install requests

On Air Light Project

About

Track the state of your webcam, update a ThingSpeak channel, and control lights.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages