shinobi-cctv-api
v0.0.1
Published
A js client for Shinobi CCTV api
Downloads
3
Readme
Shinobi Api
Example Usage
var ShinobiApi = require('shinobi-api');
var s = new ShinobiApi('[Shinobi URL]')
s.login('[EMAIL]', '[PASSWD]'); // or s.setApikey("[APIKEY]", "[GROUP ID]");
// Example: set All monitors to record for 10 minutes
s.monitor.getAll().then(mons => {
mons.forEach(mon => {
s.monitor.setModeTime(mon.mid, 'record', 10);
})
})