Singular.live
Partly, untested. Singular Data Streams take any JSON over HTTP, without call limits, and a composition script puts the values into the graphic. For overlays.uno, which runs on Singular, use the built-in UNO output instead: it needs no script.
Set up
- In the Singular Dashboard, open Data Stream Manager > New and copy the private and public tokens. (Data Streams need a Pro plan or the free trial.)
- In ScoreSight, select HTTP API in the Outputs list (Outbound HTTP API) and set URL
https://datastream.singular.live/datastreams/<PRIVATE TOKEN>, method PUT, Encode JSON (Simple key-value), and tick Only changes. Tick Send out API requests to external services. -
In Composer, give each value a text control node, and add a composition script along these lines:
// init const sc = comp.find("<Sub-composition name>")[0]; ds = context.utils.createDataStream("<PUBLIC TOKEN>", (status, msg) => { if (status !== "message") return; console.log(msg); // check the shape first const data = (msg && msg.payload) || msg; // the values, wrapped or not const update = {}; if (data["Home Score"] !== undefined) update["HomeScore"] = data["Home Score"]; if (data["Time"] !== undefined) update["Clock"] = data["Time"]; sc.updateContent(update); // control node IDs on the left }); // close ds.close(); - Check the stream’s status in the Data Stream Manager, and watch the Composer preview.
Notes
The requests carry only fields with a good reading, so update only the keys that are present.
