Bonjour,
J’utilise le plugin Reolink (beta) pour mes 4 Caméras (POE) qui enregistre sur un PC dédié (i7) et donc n’ont pas de carte SD qui me donne donc ces erreurs (enfin je crois) dans la log du Cron (cron_execution)
Toutes les caméras sont a jour de leur « firmware ».
RLC-1240A
Duo 3 POE
RLC-811A
RLC-1212A
J’ai choisi ces caméras car elles sont pilotables avec Jeedom.
J’utilise Jeedom pour activer sirènes, changement de luminosité en cas de pluie etc.…
0000|PHP Warning: Undefined array key 0 in /var/www/html/plugins/reolink/core/class/reolink.class.php on line 527
0001|PHP Warning: Trying to access array offset on value of type null in /var/www/html/plugins/reolink/core/class/reolink.class.php on line 527
0002|PHP Warning: Undefined array key 0 in /var/www/html/plugins/reolink/core/class/reolink.class.php on line 532
0003|PHP Warning: Trying to access array offset on value of type null in /var/www/html/plugins/reolink/core/class/reolink.class.php on line 532
0004|PHP Warning: Undefined array key 0 in /var/www/html/plugins/reolink/core/class/reolink.class.php on line 536
0005|PHP Warning: Trying to access array offset on value of type null in /var/www/html/plugins/reolink/core/class/reolink.class.php on line 536
0006|PHP Warning: Undefined array key 0 in /var/www/html/plugins/reolink/core/class/reolink.class.php on line 538
0
Pour info j’ai corrigé avec l’aide de l’IA le code :
case reolinkAPI::CAM_GET_HDDINFO:
if (isset($json_data['value']['HddInfo'][0])) {
$hdd = $json_data['value']['HddInfo'][0];
if (($hdd['format'] ?? 0) == 1 && ($hdd['mount'] ?? 0) == 1) {
$camcmd->checkAndUpdateCmd('driveAvailable', 1);
} else {
$camcmd->checkAndUpdateCmd('driveAvailable', 0);
}
if (isset($hdd['size'], $hdd['capacity']) && is_numeric($hdd['size']) && is_numeric($hdd['capacity']) && $hdd['capacity'] > 0) {
$percoccupancy = round(($hdd['size'] * 100) / $hdd['capacity'], 0, PHP_ROUND_HALF_DOWN);
$camcmd->checkAndUpdateCmd('driveSpaceAvailable', $percoccupancy);
}
if (($hdd['storageType'] ?? 0) == 1) {
$camcmd->checkAndUpdateCmd('driveType', "HDD");
} elseif (($hdd['storageType'] ?? 0) == 2) {
$camcmd->checkAndUpdateCmd('driveType', "Sdcard");
}
} else {
$camcmd->checkAndUpdateCmd('driveAvailable', 0);
}
break;
Et je n’ai plus d’erreurs.
Merci
