Skip to content

rse/huds-hud-hello

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello World HUD

This is a small Hello World HUD for the Head-Up-Display Server (HUDS), which acts as a small template for craftig HUDs with the help of the frameworks Vue, Mousetrap and Anime and intentionally without any build-time procedure like a bundler. It also show-cases all essential features of HUDS with the smallest amount of code.

This HUD does nothing more than display a small Hello World banner in the top-left corner, but its colors and text can be configured and the banner can be bounced by either pressing the SPACE key in an OBS Studio interaction window or by sending the underlying REST event to HUDS.

Use the following steps to run the HUD:

  1. Install HUDS and this HUD either as global NPM packages with...

    $ npm install -g huds huds-hud-hello

    ...or just clone the Git repositories (in case you want to fiddle around with the source code) with:

    $ git clone https://github.com/rse/huds
    $ (cd huds && npm install)
    $ git clone https://github.com/rse/huds-hud-hello
    $ (cd huds-hud-hello && npm install)
  2. Start HUDS with either...

    $ huds -a 127.0.0.1 -p 9999 -U hello -P hello -d hello:@huds-hud-hello

    ...or (in case of cloned repositories):

    $ node huds/src/huds-server-cli.js -a 127.0.0.1 -p 9999 -U hello -P hello \
      -d hello:huds-hud-hello,huds-hud-hello/hello.yaml

    HUDS will display its logging output to the terminal.

  3. Start OBS Studio and add a Browser Source to any scene. As its URL use:

    http://hello:[email protected]:9999/hello/
    

    If you want to interact with it, right-click onto the source and choose "Interact". You can press SPACE in the interaction window to let the Hello World banner bounce.

  4. Now you can also remotely trigger the bounce event with:

    curl -D- http://hello:[email protected]:9999/hello/event/hello.bounce

    One convenient way to trigger the event during your broadcasting session is to use an Elgato Stream Deck remote control device and use its System:Website function.