darvin / OBSfucatorium

A webservice that provides OBS studio scene switching and monitoring of remote server over the stream

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OBSfucatorium

A webservice that provides OBS studio scene switching and monitoring of remote server over the stream

Install

git clone git@github.com:darvin/OBSfucatorium.git
cd OBSfucatorium

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

python obsfucatorium.py

Usage

curl http://localhost:8001/keepAlive
curl http://localhost:8001/launch
curl http://localhost:8001/kill
curl http://localhost:8001/scene/prev
curl http://localhost:8001/scene/next

Install default monitoring suite

sudo apt-add-repository ppa:obsproject/obs-studio
sudo apt-get update
sudo apt-get install obs-studio
sudo apt install glances
sudo npm install -g gtop

Nginx configuration

    location /obsfucator {
        rewrite ^/obsfucator(.*)$ $1 break;
        proxy_pass http://localhost:8001;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_redirect off;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

About

A webservice that provides OBS studio scene switching and monitoring of remote server over the stream

License:MIT License


Languages

Language:Python 96.2%Language:Shell 3.8%