This code:
<?php
include_once 'dbh.inc.php';
include_once 'variables.inc.php';
$sql = "INSERT INTO status (temp, weather, precipitation, vindtype, WindSpeed, WindDirection) VALUES ('$temp*C', '$weather', '$precipitation mm', '$Windtype', '$Windspeed m/s', '$Winddirection');";
mysqli_query($conn, $sql);
?>
sends the current weather report to the database. MS Task scheduler does this process automatically every 10 minutes.
I want to only send the data only if any variable has changed. So basically: Check every 10 min if something has changed, if yes then send to the database, if not don't send.
Any help is greatly appreciated!