GithubHelp home page GithubHelp logo

greghaynes / pubgredzone Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ibm/rotisserie

0.0 3.0 0.0 3.67 MB

automagically view the most interesting PlayerUnknown's Battlegrounds streams on Twitch.

Home Page: https://pubgred.zone

License: MIT License

JavaScript 88.23% HTML 3.58% Shell 8.18%

pubgredzone's Introduction

pubgredzone

npm version Build Status Docker Automated build License: MIT

LIVE NOW

pubgredzone takes the concept of the red zone in American football and applies it to the popular online battle royale game PLAYERUNKNOWN'S BATTLEGROUNDS. The idea is to always be viewing the most popular PUBG twitch stream with the least amount of people alive in-game.

Installation

You can run your own instance of pubgredzone either for local development or just pure entertainment. Ubuntu and macOS are the currently supported platforms.

Prerequisite Software

The following pieces of software are required to run pubgredzone locally:

You can install these dependencies with one of the two following commands, depending on your os:

  • Ubuntu:
  $ sudo apt-get install tesseract-ocr ffmpeg imagemagick
  $ pip install livestreamer
  • macOS:
  $ brew install tesseract ffmpeg imagemagick
  $ pip install livestreamer

Installing pubgredzone

  • Clone the repo and install with npm:
  $ git clone [email protected]:eggshell/pubgredzone.git
  $ cd pubgredzone
  $ npm install .

Getting an OAuth Token

  1. On a machine with a browser installed, run the following:
  $ livestreamer --twitch-oauth-authenticate
  1. A browser window will open, and prompt you to authorize livestreamer to use your twitch account. Click Authorize.

  2. Your browser will refresh, and a page saying "SORRY, this page does not exist yet" will appear. Ignore this. In your address bar, there will be a callback URL with access_token=<TOKEN>. This is your OAuth token, copy it down and proceed to the next section.

Running It Locally

  $ export token="YOUR_OAUTH_TOKEN"
  • Navigate to the pubgredzone dir if you aren't there already, and start the app:
  $ node ocr.js 2>&1 >/dev/null &
  $ node app.js

Now you can open a browser and navigate to http://localhost:3000 to watch pubgredzone.

Running in a Container

You can also run pubgredzone in a docker container.

  • Clone the repo:
  $ git clone [email protected]:eggshell/pubgredzone.git
  • Get an OAuth token using the instructions above, and export it as an environment variable:
  $ export token="YOUR_OAUTH_TOKEN"
  • Build the docker images:
  $ cd pubgredzone
  $ docker build -f deploy/images/app/Dockerfile -t "pubgredzone:app" --build-arg token=$token .
  $ docker build -f deploy/images/ocr/Dockerfile -t "pubgredzone:ocr" .
  • Start up the containers:
  $ docker run -d pubgredzone:ocr
  $ docker run pubgredzone:app

License

pubgredzone is currently licensed under the MIT LICENSE.

pubgredzone's People

Contributors

nibalizer avatar

Watchers

Greg Haynes avatar James Cloos avatar  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.