RCVolus / obs-google-sheet-importer

Small application that reads data from a google spreadsheet periodically and updates all text sources matching a given name scheme.
23 stars 4 forks source link
google-sheets obs spreadsheet

OBS Google Sheet Importer

This tool allows you to dynamically update content, color and visibility of text sources in OBS through a google sheet.

For a version with additional features (managing image, color, and browser sources in addition to text), check out this fork by DaBenjamins

Prerequisites

Installation

Usage

Spreadsheet

The source spreadsheet needs to be set to allow anyone with the link to view, otherwise the API connection doesn't work.

OBS Setup

Make sure the Websocket is enabled (Tools -> WebSocket Server Settings -> Enable WebSocket Server), take not of the settings (Port and Password)

Configuration

Open config-dist.json and set the following values:

Save the file as config.json

OBS Scene

To enable an OBS source to be controlled via the sheet, name the source in this format: [Arbitrary Source Name] |sheet [Cell]

For example, Text Source 1 |sheet C5 would be controlled by the contents of cell C5.

The tool does not work with groups. Using groups is not recommended in general, use nested scenes instead

Controlling Text Sources

Setting Text

Any text in a cell is set as the text in the source. Empty cells are not updated.

Hiding/Showing a source

Change the cell text to begin with ?hide;Any text here or ?show; Any text here to disable/enable the text source (with the last text that was set)

Changing text color

Change the cell text to ?color=000000;Any text here to set the text color in OBS with hex colors.