Tally light for OBS source using rpi, rgb leds, and obs-websocket Each pi will sit and look for a websocket connection. Once connected, it will light yellow when the provided source is in preview and green when its in program
-
Install the watchgod and websockets library as root, used to run the script
sudo pip3 install websockets
-
Install and Setup NGINX and PHP Server: https://www.raspberrypi.org/documentation/remote-access/web-server/nginx.md
(If using php 7, also install php-xml - sudo apt install php-xml
)
-
Put index.php in /var/www/html/
-
In index.php change tally.xml-path to match the actual path (and make sure nginx can write to it)
-
Run index.php from a browser
-
Setup OBS-Tally Settings (IP, Password, Port from OBS-Websockets, Scenes and GPIO-Ports)
-
Connect LEDs to the matching GPIO
-
If you need to invert the outputs for no/nc relays, check the invert box in the webpage.
-
Start this script and nginx on boot:
sudo update-rc.d -f nginx defaults;
sudo nano /etc/rc.local
- just above line 'exit 0' insert:
( cd [/path/to/obs-tally] python3 obstally.py & )
Follow the connection diagram below with a raspberry pi zero w: Adafruit
and an rgb led: Adafruit, Amazon US
Resistances:
Red - 100 ohm
Green - 220 ohm
Blue - 150 ohm
Loosely based on OBSTally.