avangessel

Element Overlay for OBS

Download for Windows7.8 MBelement-overlay.exe · 64-bit · no installer

The overlay projected on the floor of a golf sim: club, ball speed, launch angle, carry, spin, launch direction and height above the impact clip, with the Element in its leveling mount beyond

Projected on the floor next to the Element.

OBS with the Element dock on the left, the metric and video sources in a Floor scene, and the source list below

The same scene in OBS, with the Element dock on the left.

Quick start

  1. Download and run. Put element-overlay.exe in a folder, for example %USERPROFILE%\element-overlay\, and double-click it. A console window shows the Element connection, the dock and source URLs, and a line for each shot.

    The overlay’s console window: version, settings file, Element address, dock and source URLs, then “connected to the Element”

    Windows SmartScreen may warn the first time. Choose More info → Run anyway. If Windows Firewall asks, allow it on private networks so it can reach the Element.

  2. Turn on OBS’s WebSocket server. Open Tools → WebSocket Server Settings and tick Enable WebSocket server.

  3. Add the dock. Open Docks → Custom Browser Docks and add:

    The OBS Docks menu with Custom Browser Docks highlighted

    Name Element
    URL http://localhost:8765/dock

    Dock it wherever you like.

  4. Add sources. In the dock, check each metric you want shown or uncheck each you do not. At the top press Add sources to current scene. It creates Element – Video (402×200, the clip’s native size) and one Element – <metric> source (300×120) for each enabled metric. Drag and resize them into place. If you press it again only missing metrics are added.

    Once the Element is connected, hit a ball or press Replay last shot. The overlay loads the Element’s latest stored shot as a still on start.

The dock

The Element dock: connection status, three buttons, then Element, Video, Default look, Metrics and Source URLs sections

Changes take effect immediately:

  • Header: connection dot and Element address, the last shot’s time (live or stored) and whether its clip is ready.
  • Replay last shot: plays the most recent clip again.
  • Load latest from Element: pulls the newest stored shot, which is handy after a reconnect.
  • Add sources to current scene: see step 4 above.
  • Element: the device address, sgt.local by default.
  • Video: replay options.
  • Default look: the style every metric inherits.
  • Metrics: switch each one on or off, rename it, set its decimals, and override its style.
  • Source URLs: copy-ready URLs for adding sources by hand.

Styling

Styling happens in the dock, not in OBS, and restyles live. Text is sized relative to the source, so resizing a source in OBS scales its text with it.

Animated: in the dock, value size grows, value colour turns green, label colour turns white, background fades and the label toggles off and on, with the preview updating live

Changing the default look.

Default look

Setting Default Notes
Value font Bahnschrift Choose from the fonts installed on the PC
Label font Bahnschrift Also used for the unit
Value size 45 Value height as % of the source’s shorter side (10–90)
Label size 0.4 Label and unit size, relative to the value (0.15–1)
Value color #ffffff
Label color #b8c4cc
Background #000000 at 0.6 Color + opacity; set opacity to 0 for none
Show label / unit on / on
Align center left, center or right within the source

Per-metric overrides

Press Style next to a metric to override any of the default fields for that metric alone. Each field has a default checkbox: ticked, it follows the default look; unticked, it uses its own value. Reset to default clears every override at once. A highlighted Style button means the metric has overrides.

The row itself sets the metric’s label (leave it empty for the built-in name) and its number of decimals (0–4, empty for the default).

Metrics list with Carry’s style panel expanded, showing per-field default checkboxes

Sources & metrics

Each source is a URL for an OBS Browser Source with a transparent background. The dock adds the video and per-metric sources for you. Add the panel, or extra copies, by hand.

URL Shows
http://localhost:8765/video The impact clip, 402×200 native
http://localhost:8765/metric/<key> One metric, such as /metric/carry.
http://localhost:8765/panel Every enabled metric in a grid. Add ?cols=5 to set the columns.

The panel source in five columns showing all default-on metrics

/panel?cols=5 with the default metrics.

Metric keys

Key Label Unit Default
ballSpeed Ball Speed mph on
launchAngle Launch Angle ° on
launchDirection Launch Dir ° L/R on
spinRate Spin rpm on
spinAxis Spin Axis ° L/R on
backSpin Back Spin¹ rpm on
sideSpin Side Spin¹ rpm L/R on
carry Carry yd on
total Total yd on
offline Offline yd L/R on
height Height ft on
apexDistance Apex Dist yd off
descentAngle Descent ° on
flightTime Hang Time s on
clubSpeed Club Speed mph on
attackAngle Attack Angle ° on
clubPath Club Path ° on
clubImpact Impact — off
smash Smash — on
club Club — on

¹ Calculated from spin rate and spin axis.

Video replay

Setting Options Default
Replays Loop until next shot, or play 1–10 times Loop
After replays Hold last frame, or hide the video Hold
Speed 0.5×, 1×, 2× 1×

A new shot always interrupts the clip that’s playing. The clip arrives a second or so after the numbers, once the Element has finished processing it.

Settings & command line

Settings live in %APPDATA%\element-overlay\config.json. You shouldn’t need to edit it, since the dock covers everything. A changed port takes effect the next time the program starts.

Command-line options, all optional:

Option Default Meaning
-element sgt.local The Element’s address. Use its IP (e.g. 192.168.1.10).
-port 8765 The port on localhost.
-config %APPDATA%\…\config.json The settings file.
-log none Also write the log to this file.
-v off Log every request, for troubleshooting.

Troubleshooting

The dot stays red

The overlay can’t reach the Element. Check that it’s powered on and on the same network, then put its IP address in the dock’s Element field, or start the program with -element <ip>. Some networks don’t resolve sgt.local.

“Add sources failed: can’t reach OBS at ws://localhost:4455”

The full message ends “(is OBS running with its WebSocket server on?)”. Enable it under Tools → WebSocket Server Settings in OBS (step 2). If you changed the WebSocket port in OBS, that’s fine: the overlay reads it from OBS’s settings.

“Add sources failed: reading OBS websocket settings: …”

OBS’s WebSocket settings file doesn’t exist yet. Open Tools → WebSocket Server Settings once, tick Enable, and press OK so OBS writes it.

“Add sources failed: OBS refused the connection (wrong websocket password?)”

The password in OBS changed since it was saved. Press OK in OBS’s WebSocket Server Settings so it writes the current one, then try again.

A source works on this PC but not from another machine

By design: the overlay only answers on localhost (it replies “use http://localhost” otherwise). Run it on the same PC as OBS.

Numbers update but the video stays blank

Wait a second: the clip arrives after the numbers. If it never shows, check the header’s Clip status, and make sure the Browser Source URL is exactly http://localhost:8765/video. A plain desktop Chromium build without H.264 can’t play the clips, but OBS’s built-in browser can.

Port 8765 is already in use

Start the program with -port <another> (or change it in the settings and restart), then update the dock and source URLs to match.

Still stuck? Start it with -v -log overlay.log and look for the request that fails.