1
0

some adjustments

This commit is contained in:
2022-08-27 00:02:24 +02:00
parent df94a6becf
commit f42df97c5c
10 changed files with 122 additions and 67 deletions

View File

@ -27,7 +27,7 @@ function checkTopicsAvailability()
logger(DEBUG, "time is " . time() . " lastSeen is " . $topic->lastSeen, __FILE__ . ":" . __LINE__ );
if ((time() - $topic->lastSeen > $topic->timeOut*60) and ($topic->notificationSent == false))
{
{
if (logger(ALERT, $topicName . _(" is not available"), __FILE__ . ":" . __LINE__) == false);
{
$topic->notificationSent = true;
@ -37,7 +37,7 @@ function checkTopicsAvailability()
}
}
function testActionneurs(array $actionneurs)
function testActionneurs(array $actionneurs) //return 0 for no actionneurs and 1 if one actionneur is on
{
global $indexDevices;
$r = 0;
@ -59,7 +59,7 @@ function testActionneurs(array $actionneurs)
logger(ERROR, _("no device : ") . $device[0] . bool2string($r), __FILE__ . ":" . __LINE__ );
}
}
return !$r;
return $r;
}
function htmlGetFriendlyNames($ieeeAddress = '')