- lots of debugging
- beginning to add graphical stats - beginning to add device by type - added a dashboard "etage" - begining to add notification to multiple recipients in freemobile hook
This commit is contained in:
@ -63,6 +63,7 @@ function mkDevicesDB($topic, $json, $group=false)
|
||||
{
|
||||
//print_r($device);
|
||||
$device["device"]->groupID = $jsonDevice->id;
|
||||
$device["device"]->ieeeAddress = $jsonDevice->id;
|
||||
//$indexDevices[$device["device"]->groupID] = & $device["device"];
|
||||
//$indexFriendlyNames[$topic][$fn] = & $device["device"];
|
||||
}else
|
||||
@ -267,7 +268,14 @@ function changeValue(&$property, $value, &$parentDevice, $propertyTree, $key)
|
||||
logger(DEBUG,_("executing notifications functions"), __FILE__ . ":" . __LINE__);
|
||||
foreach($property["functions"] as $function)
|
||||
{
|
||||
$function($parentDevice, $key, $value);
|
||||
try
|
||||
{
|
||||
$function($parentDevice, $key, $value);
|
||||
}catch (Exception $e)
|
||||
{
|
||||
$s = 'Exception reçue : ' . $e->getMessage();
|
||||
logger(ERROR, $parentDevice->friendlyName . "/" . $property .": " . $s);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user