$message = "Meldung in Anzeige";
//Alle Parameter müssen als Zeichenfolge übergeben werden. Deshalb Zahlen mit strval() in Text konvertieren.
$listValues[] = array("Caption" => "angelegte Variable","Value" => strval(ZuÜbermittelnterWert));
$listValues[] = array("Caption" => "[statustext]","Value" => $message);
$listValues[] = array("Caption" => "[status]","Value" => $status);
$listValues[] = array("Caption" => "[progress]","Value" => strval($progress));
$listValues[] = array("Caption" => "[offlinetimer]","Value" => "2");
//$listValues[] = array("Caption" => "[reset]","Value" => "true");
//\$listValues\[\] = array("Caption" =\> "\[`endalljobs`\]","Value" =\>`"true")`;
//\$listValues\[\] = array("Caption" =\> "\[`startjob`\]","Value" =\>`"AA12345")`;
//... weitere Parameter hier anfügen.
$data = array("Key" => "API-Key hier eintragen","Values" => $listValues);
$url = "https://wwsodata.styletronix.net/wwsmaxmobile/HMISetMachineValues";
// Ab hier keine Änderung notwendig.
$headers[] = 'Content-Type: application/json';
//$headers[] = 'Content-type: application/x-www-form-urlencoded';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
$output = curl_exec($ch);
echo 'Error:' . curl_error($ch);