Appreacite your help in helping me to know if it is possible. As you know from surveillance cameras, you can pull a snapshot from urls provided by manufacturers, in my case I have the following camera reachable at
function saveCameraSnapshot() {
var url = '
http://root:ad...@10.10.1.11/axis-cgi/jpg/image.cgi';
var folderId = '19_9THIoHlyW5XJHH3XhQHdLyHXu30sO5';
var response = UrlFetchApp.fetch(url);
var blob = response.getBlob();
var timestamp = new Date().toISOString().replace(/[:\-T]/g, '').slice(0, 15);
var fileName = 'snapshot_' + timestamp + '.jpg';
var folder = DriveApp.getFolderById(folderId);
folder.createFile(blob).setName(fileName);
}
I also tried changing the url to my public ip doing some nat, but still getting the same error: