Nothing found about how to get Pimatic variable values to your php website on the forum yet. This will probably be interesting for someone.
CODE
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<meta name="description" content="Pimatic Temperature">
<meta name="keywords" content="HTML,CSS,XML,JavaScript">
<meta name="author" content="Pimagical">
</head>
<body>
<b>All values from weather.temperature:</b></br>
<?php
$curl = curl_init();
curl_setopt ($curl, CURLOPT_URL, "http://demo:demo@demo.pimatic.org/api/variables/variable-set.temperature");
curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec ($curl);// curl to a variable
curl_close ($curl);
print $result;
?>
</br></br>
<b>Single value from weather.temperature:</b></br>
<?php
$curl = curl_init();
curl_setopt ($curl, CURLOPT_URL, "http://demo:demo@demo.pimatic.org/api/variables/variable-set.temperature");
curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec ($curl);// curl to a variable
curl_close ($curl);
$result = json_decode($result, true);// decode to associative array
$result = $result['variable']['value'];//pick desired value
print "Temperature: ".$result;
?>
</body>
</html>
PAGE OUTPUT