diff --git a/client.js b/client.js index ae637ede..ef59cc74 100644 --- a/client.js +++ b/client.js @@ -107,6 +107,22 @@ setInterval(function() { } }, 3000) // COMBINATOR SIGNALS --------------------------------------------------------- +// get inventory from Master and RCON it to our slave +setInterval(function() { + needle.get(config.masterIP + ":" + config.masterPort + '/inventory', function(err, response, body){ + if(response && response.body) { + // Take the inventory we (hopefully) got and turn it into the format LUA accepts + // console.log(response.body) + var inventory = response.body; + var inventoryFrame = {}; + for(i = 0;i