Coder Social home page Coder Social logo

f0m3 / atem-tally-pi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from designshift/atem-tally-pi

0.0 0.0 0.0 36 KB

Raspberry Pi client for ATEM tally light display. See project website for more information.

Home Page: https://designshift.ca/apps/atem-tally/

License: Other

JavaScript 100.00%

atem-tally-pi's Introduction

Before You Start

You should have a Raspberry Pi Zero, 2, 3 or 4 with Raspbian OS that is already connected to the network either by ethernet or wifi. Also have your tally lights/LED connected to GPIO 17 (program) and GPIO 27 (preview).

You also will need to install Node.js on your Pi before you begin. For Pi 2 and Pi Zero, the latest available Node.js is version 10.

You will also need the ATEM Tally application installed from https://designshift.ca/apps/atem-tally

Installation

  1. Open the terminal on your Raspberry Pi

  2. Clone this project

    git clone [email protected]:designshift/atem-tally-pi.git
    
  3. Install all required packages

    npm install
    
  4. Go into the directory and configure the application with the camera angle and the GPIOs that you would like to use with your Raspberry Pi

    cd atem-tally-pi
    nano config.js
    

    Inside you'll see 2 values that you can edit. By default it uses GPIO 17 for program tally, and GPIO 27 for preview tally. Edit these values according to your hardware set up.

    const config = {
        "programGpio": 17,
        "previewGpio": 27
    }
    

    Refer to the Raspberry Pi documentation for GPIO on the location and numbering of each pins.

  5. You can start the application by running.

    node app.js
    

    Press Ctrl + C at any time to exit.

  6. Go over to the main ATEM Tally application and look for your Pi under the Pi menu. You may need to refresh the device list in the application to see it.

    Once you've found your Raspberry Pi in the list, just select the check box to connect to it.

  7. Repeat from Step 4 as needed to adjust your configuration.

Running as a Service on Node

Once you are happy with your configuration, we'll run this as a service on your Raspberry Pi so that it'll always be listening for connections when it is turned on.

We'll skip over the explaination of what pm2 does and just give you the commands that you'll need to set up by default. Refer to the documentation for that if you need to change settings or remove the application.

sudo npm install -g pm2
pm2 start app.js
pm2 startup systemd
sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi
pm2 save

That's it!

atem-tally-pi's People

Contributors

scottkuo 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.