Sorry war etwas im Stress
Anbei für Zoom
<?
$ch = curl_init();
$Action = $_IPS["VALUE"];
// Token + Login
curl_setopt($ch, CURLOPT_URL, "http://10.0.1.157/cgi-bin/api.cgi?cmd=PtzCtrl&token=4c2c7f3229ecf87&user=xxxx&password=xxxx");
//Payload
switch ($Action) {
case 1:
//Zoom Stop
curl_setopt($ch, CURLOPT_POSTFIELDS, '[{"cmd":"PtzCtrl","action":0,"param":{"channel":0,"op":"Stop"}}]' );
//curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
break;
case 2:
//Zoom Plus
curl_setopt($ch, CURLOPT_POSTFIELDS, '[{"cmd":"PtzCtrl","action":0,"param":{"channel":0,"op":"ZoomInc","speed":32}}]' );
//curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
break;
case 3:
//Zoom Minus
curl_setopt($ch, CURLOPT_POSTFIELDS, '[{"cmd":"PtzCtrl","action":0,"param":{"channel":0,"op":"ZoomDec","speed":32}}]' );
//curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
break;
}
//Senden
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
//[{cmd: "PtzCtrl", action: 0, param: {channel: 0, op: "Stop"}}]
//[{cmd: "PtzCtrl", action: 0, param: {channel: 0, op: "ZoomDec", speed: 32}}]
//[{cmd: "PtzCtrl", action: 0, param: {channel: 0, op: "ZoomInc", speed: 32}}]
?>
Hier noch der Payload für Steuerung ohne Position
//[{cmd: „PtzCtrl“, action: 0, param: {channel: 0, op: „Right“, speed: 32}}]
//[{cmd: „PtzCtrl“, action: 0, param: {channel: 0, op: „Left“, speed: 32}}]
//[{cmd: „PtzCtrl“, action: 0, param: {channel: 0, op: „Up“, speed: 32}}]
//[{cmd: „PtzCtrl“, action: 0, param: {channel: 0, op: „Down“, speed: 32}}]
//[{cmd: „PtzCtrl“, action: 0, param: {channel: 0, op: „RightUp“, speed: 32}}]
//[{cmd: „PtzCtrl“, action: 0, param: {channel: 0, op: „RightDown“, speed: 32}}]
//[{cmd: „PtzCtrl“, action: 0, param: {channel: 0, op: „LeftUp“, speed: 32}}]
//[{cmd: „PtzCtrl“, action: 0, param: {channel: 0, op: „LeftDown“, speed: 32}}]
noch nicht Getestet !!! 
Gruß Bruno