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
bowerif you have not already (npm install -g bower) cd nodecg/bundles/nodecg-livesplitand runnpm install, thenbower install- Run the nodecg server:
node index.js(ornodecg startif you havenodecg-cliinstalled) from thenodecgroot directory.
There are two commands.
livesplit:sendActionThis is for commands that do not return datalivesplit:sendDataThis 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 :)
