NodeCG-LiveSplit is a NodeCG bundle allows you to connect, send and recieve data using LiveSplit.Server.
- Node.js 8 or greater (8 recommended, newer versions not tested)
- NodeCG v1.x
- LiveSplit Server on LiveSplit
- Clone (or download & extract) to
nodecg/bundles/nodecg-livesplit
. - Install
bower
if you have not already (npm install -g bower
) cd nodecg/bundles/nodecg-livesplit
and runnpm install
, thenbower install
- Run the nodecg server:
node index.js
(ornodecg start
if you havenodecg-cli
installed) from thenodecg
root directory.
There are two commands.
livesplit:sendAction
This is for commands that do not return datalivesplit:sendData
This is for commands that respond with data.
The actual commands to send to LiveSplit are documented here.
Send Action
nodecg.sendMessageToBundle('livesplit:sendAction', 'nodecg-livesplit', 'starttimer');
Send Data
nodecg.sendMessageToBundle('livesplit:sendData', 'nodecg-livesplit', 'getsplitindex', (result) => {
console.log(result);
});
Coming soon :)