7390
Free Tires Claimed

Learn More!

Dispatch Cams


SE Cam Server Push










Linn Cam Server Push










Amcrest Cam Server Push









NW Cam Server Push













var e = { pan: 2000, tilt: -1800, zoom: 5000 };
var urlBase = “http://12.124.208.166:1025/cgi-bin/camctrl/camctrl.cgi?”;
function left() {
var leftUrl = “http://12.124.208.166:1025/cgi-bin/camctrl/camctrl.cgi?move=left”;
document.getElementById(“himage”).src = leftUrl;
}
function right() {
var rightUrl = “http://12.124.208.166:1025/cgi-bin/camctrl/camctrl.cgi?move=right”;
document.getElementById(“himage”).src = rightUrl;
}
function up() {
var upUrl = “http://12.124.208.166:1025/cgi-bin/camctrl/camctrl.cgi?move=up”;
document.getElementById(“himage”).src = upUrl;
}
function down() {
var downUrl = “http://12.124.208.166:1025/cgi-bin/camctrl/camctrl.cgi?move=down”;
document.getElementById(“himage”).src = downUrl;
}
function zoomin() {
var leftUrl = “http://12.124.208.166:1025/cgi-bin/camctrl/camctrl.cgi?zoom=tele”;
document.getElementById(“himage”).src = leftUrl;
}
function zoomout() {
var leftUrl = “http://12.124.208.166:1025/cgi-bin/camctrl/camctrl.cgi?zoom=wide”;
document.getElementById(“himage”).src = leftUrl;
}
function focus1() {
var focusUrl = “http://12.124.208.166:1025/cgi-bin/camctrl/camctrl.cgi?focus=auto”;
document.getElementById(“himage”).src = focusUrl;
}
function home() {
var homeUrl = “http://12.124.208.166:1025/cgi-bin/camctrl/camctrl.cgi?move=home”;
document.getElementById(“himage”).src = homeUrl;
}
function left2() {
var leftUrl = “http://12.124.208.166:1026/cgi-bin/camctrl/camctrl.cgi?move=left”;
document.getElementById(“himage”).src = leftUrl;
}
function right2() {
var rightUrl = “http://12.124.208.166:1026/cgi-bin/camctrl/camctrl.cgi?move=right”;
document.getElementById(“himage”).src = rightUrl;
}
function up2() {
var upUrl = “http://12.124.208.166:1026/cgi-bin/camctrl/camctrl.cgi?move=up”;
document.getElementById(“himage”).src = upUrl;
}
function down2() {
var downUrl = “http://12.124.208.166:1026/cgi-bin/camctrl/camctrl.cgi?move=down”;
document.getElementById(“himage”).src = downUrl;
}
function zoomin2() {
var leftUrl = “http://12.124.208.166:1026/cgi-bin/camctrl/camctrl.cgi?zoom=tele”;
document.getElementById(“himage”).src = leftUrl;
}
function zoomout2() {
var leftUrl = “http://12.124.208.166:1026/cgi-bin/camctrl/camctrl.cgi?zoom=wide”;
document.getElementById(“himage”).src = leftUrl;
}
function focus2() {
var focusUrl = “http://12.124.208.166:1026/cgi-bin/camctrl/camctrl.cgi?focus=auto”;
document.getElementById(“himage”).src = focusUrl;
}
function home2() {
var homeUrl = “http://12.124.208.166:1026/cgi-bin/camctrl/camctrl.cgi?move=home”;
document.getElementById(“himage”).src = homeUrl;
}
function left3() {
var leftUrl = “http://12.247.69.238:1027/cgi-bin/camctrl/camctrl.cgi?move=left”;
document.getElementById(“himage”).src = leftUrl;
}
function right3() {
var rightUrl = “http://12.247.69.238:1027/cgi-bin/camctrl/camctrl.cgi?move=right”;
document.getElementById(“himage”).src = rightUrl;
}
function up3() {
var upUrl = “http://12.247.69.238:1027/cgi-bin/camctrl/camctrl.cgi?move=up”;
document.getElementById(“himage”).src = upUrl;
}
function down3() {
var downUrl = “http://12.247.69.238:1027/cgi-bin/camctrl/camctrl.cgi?move=down”;
document.getElementById(“himage”).src = downUrl;
}
function zoomin3() {
var leftUrl = “http://12.247.69.238:1027/cgi-bin/camctrl/camctrl.cgi?zoom=tele”;
document.getElementById(“himage”).src = leftUrl;
}
function zoomout3() {
var leftUrl = “http://12.247.69.238:1027/cgi-bin/camctrl/camctrl.cgi?zoom=wide”;
document.getElementById(“himage”).src = leftUrl;
}
function focus3() {
var focusUrl = “http://12.247.69.238:1027/cgi-bin/camctrl/camctrl.cgi?focus=auto”;
document.getElementById(“himage”).src = focusUrl;
}
function home3() {
var homeUrl = “http://12.247.69.238:1027/cgi-bin/camctrl/camctrl.cgi?move=home”;
document.getElementById(“himage”).src = homeUrl;
}
//AMCREST FUNCTIONS
/* This camera’s API only has start stop commands for PTZ functions.
* When you send “left” via http, it will pan left until told to stop
* Sleep function provides method for stalling a script
*/
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
//async required for sleep to work properly
async function left4() {
var leftStartUrl = “http://69.41.92.21:2002/cgi-bin/ptz.cgi?action=start&channel=0&code=Left&arg1=0&arg2=2&arg3=0”;
var leftStopUrl = “http://69.41.92.21:2002/cgi-bin/ptz.cgi?action=stop&channel=0&code=Left&arg1=0&arg2=2&arg3=0”;
document.getElementById(“himage”).src = leftStartUrl; //starts movement
await sleep(500); //script “sleeps” while camera pans
document.getElementById(“himage”).src = leftStopUrl; //stops movement
}
async function right4() {
var RightStartUrl = “http://69.41.92.21:2002/cgi-bin/ptz.cgi?action=start&channel=0&code=Right&arg1=0&arg2=2&arg3=0”;
var RightStopUrl = “http://69.41.92.21:2002/cgi-bin/ptz.cgi?action=stop&channel=0&code=Right&arg1=0&arg2=2&arg3=0”;
document.getElementById(“himage”).src = RightStartUrl;
await sleep(500);
document.getElementById(“himage”).src = RightStopUrl;
}
async function up4() {
var UpStartUrl = “http://69.41.92.21:2002/cgi-bin/ptz.cgi?action=start&channel=0&code=Up&arg1=0&arg2=2&arg3=0”;
var UpStopUrl = “http://69.41.92.21:2002/cgi-bin/ptz.cgi?action=stop&channel=0&code=Up&arg1=0&arg2=2&arg3=0”;
document.getElementById(“himage”).src = UpStartUrl;
await sleep(500);
document.getElementById(“himage”).src = UpStopUrl;
}
async function down4() {
var DownStartUrl = “http://69.41.92.21:2002/cgi-bin/ptz.cgi?action=start&channel=0&code=Down&arg1=0&arg2=2&arg3=0”;
var DownStopUrl = “http://69.41.92.21:2002/cgi-bin/ptz.cgi?action=stop&channel=0&code=Down&arg1=0&arg2=2&arg3=0”;
document.getElementById(“himage”).src = DownStartUrl;
await sleep(500);
document.getElementById(“himage”).src = DownStopUrl;
}
async function zoomin4() {
var InStartUrl = “http://69.41.92.21:2002/cgi-bin/ptz.cgi?action=start&channel=0&code=ZoomTele&arg1=0&arg2=1&arg3=0”;
var InStopUrl = “http://69.41.92.21:2002/cgi-bin/ptz.cgi?action=stop&channel=0&code=ZoomTele&arg1=0&arg2=2&arg3=0”;
document.getElementById(“himage”).src = InStartUrl;
await sleep(500);
document.getElementById(“himage”).src = InStopUrl;
}
async function zoomout4() {
var OutStartUrl = “http://69.41.92.21:2002/cgi-bin/ptz.cgi?action=start&channel=0&code=ZoomWide&arg1=0&arg2=1&arg3=0”;
var OutStopUrl = “http://69.41.92.21:2002/cgi-bin/ptz.cgi?action=stop&channel=0&code=ZoomWide&arg1=0&arg2=2&arg3=0”;
document.getElementById(“himage”).src = OutStartUrl;
await sleep(500);
document.getElementById(“himage”).src = OutStopUrl;
}
async function home4() {
var homeUrl = “http://69.41.92.21:2002/cgi-bin/ptz.cgi?action=start&channel=0&code=GotoPreset&arg1=0&arg2=1&arg3=0”;
document.getElementById(“himage”).src = homeUrl;
}