Foscam Javascript Library for H.264 IP Cameras (FI9821W/P/HD816W/P)
- Package and upload as a node.js module.
- Support more camera models.
xml2js
https://github.com/Leonidas-from-XIV/node-xml2js
iconv
https://github.com/ashtuchkin/iconv-lite
Every function takes a callback function as the last argument. The callback function is the only way to process results.
var Foscam = require('Foscam')
foscam = Foscam.Init('192.168.0.110', 88, 'admin', 'foscam')
foscam.getIPInfo(function (cmd, result) {
ip = result.ip;
mask = result.mask;
console.log('Command: ' + cmd)
console.log('IP: ' + ip);
console.log('Mask: ' + mask);
});