I am consulting data from an api using PHP, where I want the $ climate variable to be automatically changed, when it no longer has the same value as before, and that the climate variable is shown already updated, all this without updating the whole page, only the climate variable.
$url ="";
$json = file_get_contents($url);
$clima = json_decode($clima,true);
//var_dump($ticker);
echo "Libro";
?><br><?
echo $clima['clima'][0]['grados'];