https://github.com/tethik/on-air
https://github.com/tethik/on-air
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tethik/on-air
- Owner: Tethik
- License: apache-2.0
- Created: 2021-05-02T21:22:00.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-17T18:35:55.000Z (about 5 years ago)
- Last Synced: 2025-05-15T07:55:32.181Z (about 1 year ago)
- Language: Go
- Size: 274 KB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# On Air

Connects the webcam of my computer to my "on-air" sign. It toggles our cheap wifi lamp dongle thingy (https://github.com/vikstrous/zengge-lightcontrol) on or off, based on whether or not my webcam is active.
## Install
Running the application requires that you have `inotifywait` and `fuser` installed. Also Linux, most likely 🐧
Golang is needed to compile it.
```sh
$ make
$ make install # installs the application
$ make install-service # installs application as a service
```
## Usage
```
Controls the on-air sign in our apartment
Usage:
on-air [command]
Available Commands:
daemon Continuously checks for webcam usage and toggles the light
off Turns off the light
on Turns on the lamp
Flags:
--config string config file (default is $HOME/.on-air.yaml)
-h, --help help for on-air
Use "on-air [command] --help" for more information about a command.
```
## Todo / Ideas
- [ ] More Testing IRL
- [ ] Support for multiple computers on the same local network
- [ ] detect microphone usage