How safejakie/appli_whataplant works
BotanIA is a plant-identification and information app: users authenticate, submit a plant image for analysis, review a report, and can save scans to their history; a chat assistant supports follow-up questions. The dashboard also exposes scan history, profile management, and analytics data. The PHP endpoints use a shared MySQL connection. The README is empty, and the excerpts do not show the Python service internals or all dashboard requests, so uncertain connections are omitted or marked unverified.
Main entry points: config.php Database connection · tableau.php Dashboard · historique.php Scan history · traitement_image.php Save scan
Components 21
User interface
- Dashboard
php/tableau.php - Scan history
php/historique.php
Plant analysis
- Chat agent
agent.py - Save scan
php/traitement_image.php
Accounts and chat
- Sign-in
php/connexion.php - Registration
php/inscription.php - Profile view
php/profil.php - Profile update
php/update_profil.php - Password reset
php/update_mdp.php - Firebase config
js/firebase_config.js
Persistence and analytics
- Scan details
php/get_scan_details.php - Delete scan
php/delete_scan.php - Session summary
php/get_sesssion.php - Save chat
php/save_chat.php - List chats
php/get_chat.php - Load conversation
php/get_conversation.php - Delete conversation
php/delete_conversation.php - Analytics export
php/powerbi.php - Database connection
php/config.php
Other components
- User
- MySQL
Connections 29
- User → Dashboard: uses
php/tableau.php - Dashboard → Chat agent: requests chat
- Dashboard → Save chat: saves reply
php/tableau.php - Dashboard → List chats: loads chats
php/tableau.php - Dashboard → Delete conversation: deletes chat
php/tableau.php - User → Registration: registers
php/inscription.php - User → Sign-in: signs in
php/connexion.php - User → Profile view: views profile
php/profil.php - User → Profile update: updates profile
php/update_profil.php - Firebase config → Password reset: validates reset
php/update_mdp.php - Dashboard → Save scan: stores scan
- Dashboard → Scan history: opens history
- Scan history → Delete scan: deletes scan
php/historique.php - Sign-in → Database connection: uses connection
php/connexion.php - Registration → Database connection: uses connection
php/inscription.php - Profile view → Database connection: queries user
php/profil.php - Profile update → Database connection: updates user
php/update_profil.php - Password reset → Database connection: updates password
php/update_mdp.php - Save scan → Database connection: inserts scan
php/traitement_image.php - Scan history → Database connection: reads scans
php/historique.php - Scan details → Database connection: reads scan
php/get_scan_details.php - Delete scan → Database connection: deletes scan
php/delete_scan.php - Session summary → Database connection: queries stats
php/get_sesssion.php - Save chat → Database connection: stores messages
php/save_chat.php - List chats → Database connection: reads chats
php/get_chat.php - Load conversation → Database connection: reads conversation
php/get_conversation.php - Delete conversation → Database connection: deletes conversation
php/delete_conversation.php - Analytics export → Database connection: queries scans
php/powerbi.php - Database connection → MySQL: connects
php/config.php