https://github.com/nothans/webcam-state
Track the state of your webcam, update a ThingSpeak channel, and control lights.
https://github.com/nothans/webcam-state
on-air on-air-light track-webcam webcam
Last synced: about 1 month ago
JSON representation
Track the state of your webcam, update a ThingSpeak channel, and control lights.
- Host: GitHub
- URL: https://github.com/nothans/webcam-state
- Owner: nothans
- License: mit
- Created: 2021-02-11T16:10:34.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-25T16:04:32.000Z (7 months ago)
- Last Synced: 2025-04-19T14:57:41.358Z (about 2 months ago)
- Topics: on-air, on-air-light, track-webcam, webcam
- Language: Python
- Homepage: https://nothans.com/on-air-light-2023
- Size: 79.1 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
* https://nothans.com/on-air-light-for-microsoft-teams-and-zoom-meetings
* https://nothans.com/on-air-light-2023## 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[](https://nothans.com/on-air-light-2023)