VovanR / onair

Webcamera and Microphone onair status
MIT License
0 stars 0 forks source link

onair

Webcamera and Microphone onair status

Start server

Install dependencies

npm install

Start the server

npm start

Work with API

Get status

curl http://localhost:3000/api/status

Set status

curl -d '{"camera":true,"microphone":true}' -X POST http://localhost:3000/api/status -H "Content-Type: application/json"

PC

Shell script

mkdir -p ~/.local/bin/
cp bin/com.vovanr.onair.sh ~/.local/bin/

Systemd

mkdir -p ~/.config/systemd/user/
cp systemd/* ~/.config/systemd/user/
systemctl --user enable com.vovanr.onair.timer
systemctl --user start com.vovanr.onair.timer