Example #1
0
function RestartSensor()
{
    $age = GetSensorAge();
    if ($age > 300) {
        $command = "/etc/init.d/telldusd restart";
        exec($command, $exec);
    }
}
Example #2
0
<?php

include 'Includes/includes.php';
$age = GetSensorAge();
echo $age;