Code Monkey home page Code Monkey logo

obs-tally-py's Introduction

OBS-Tally-py

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

Installation

  1. Install the watchgod and websockets library as root, used to run the script sudo pip3 install websockets

  2. 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)

  1. Put index.php in /var/www/html/

  2. In index.php change tally.xml-path to match the actual path (and make sure nginx can write to it)

  3. Run index.php from a browser

  4. Setup OBS-Tally Settings (IP, Password, Port from OBS-Websockets, Scenes and GPIO-Ports)

  5. Connect LEDs to the matching GPIO

  6. If you need to invert the outputs for no/nc relays, check the invert box in the webpage.

  7. 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 &
    )
    

Hardware

Follow the connection diagram below with a raspberry pi zero w: Adafruit

and an rgb led: Adafruit, Amazon US

Connection Diagram

Resistances: Red - 100 ohm
Green - 220 ohm
Blue - 150 ohm

Loosely based on OBSTally.

obs-tally-py's People

Contributors

isctylr avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.