Files
Lucas/check_missing_json.sh
Debian 24dbc7cd6a Initial commit — Serveur Lucas SmartEye
API réception alertes chute (SmartEye/YOLO), analyse IA (Gemini 2.5 Flash),
gestion alertes avec escalade (watchdog), notifications Firebase,
dashboard web, documentation MkDocs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 21:26:06 +01:00

40 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
# Script pour identifier les images sans fichier JSON sidecar
cd /var/www/lucas/clients/Demo_01
echo "==================================================================="
echo "VÉRIFICATION DES IMAGES SANS ANALYSE JSON"
echo "==================================================================="
echo ""
missing_count=0
total_count=0
for img in $(ls -t *.jpg | head -30); do
total_count=$((total_count + 1))
if [ ! -f "${img}.json" ]; then
missing_count=$((missing_count + 1))
timestamp=$(stat -c %y "$img" 2>/dev/null | cut -d'.' -f1)
echo "$img"
echo " Date: $timestamp"
echo ""
fi
done
echo "==================================================================="
echo "RÉSUMÉ (30 dernières images)"
echo "==================================================================="
echo "Total: $total_count images"
echo "Avec JSON: $((total_count - missing_count)) images"
echo "Sans JSON: $missing_count images"
if [ $missing_count -gt 0 ]; then
echo ""
echo "⚠️ Il y a des images récentes sans analyse sauvegardée"
echo " Cela peut indiquer des erreurs pendant l'analyse IA"
else
echo ""
echo "✓ Toutes les images récentes ont une analyse"
fi