https://github.com/vovanr/onair
Webcamera and Microphone onair status
https://github.com/vovanr/onair
Last synced: 11 months ago
JSON representation
Webcamera and Microphone onair status
- Host: GitHub
- URL: https://github.com/vovanr/onair
- Owner: VovanR
- License: mit
- Created: 2024-09-26T19:25:17.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-08T19:16:07.000Z (over 1 year ago)
- Last Synced: 2025-02-08T09:26:26.953Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# onair
> Webcamera and Microphone onair status
## Start server
Install dependencies
```sh
npm install
```
Start the server
```sh
npm start
```
## Work with API
### Get status
```sh
curl http://localhost:3000/api/status
```
### Set status
```sh
curl -d '{"camera":true,"microphone":true}' -X POST http://localhost:3000/api/status -H "Content-Type: application/json"
```
## PC
### Shell script
```shell
mkdir -p ~/.local/bin/
cp bin/com.vovanr.onair.sh ~/.local/bin/
```
### Systemd
```shell
mkdir -p ~/.config/systemd/user/
cp systemd/* ~/.config/systemd/user/
systemctl --user enable com.vovanr.onair.timer
systemctl --user start com.vovanr.onair.timer
```