Skip to content

Latest commit

ย 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒฟ Florae - Plant Care Tracker & AI Diagnosis

Version Python Flask License Docker

Florae Screenshot

Florae is a local-first web application for tracking and caring for your plants, integrated with an AI-powered photo diagnosis system. Choose your favorite AI provider (OpenAI or Google Gemini) and pick the model that fits your budget โ€” from ultra-cheap mini/flash models up to premium ones.

โœจ Key Features

  1. Activity Dashboard: High-visibility panel (top of the page) showing urgent tasks โ€” sick plants or those needing immediate watering.
  2. Automatic Watering Reminders ๐Ÿ†•: set a watering frequency (in days) for each plant and Florae automatically creates the "๐Ÿ’ง Water" task on your dashboard when it's time โ€” complete it, and the next one schedules itself.
  3. AI Botanist Chat ๐Ÿ†•: chat with a virtual agronomist who knows every plant in your tracker. Uses the provider/model you picked in Settings.
  4. Weather & Frost Alerts ๐Ÿ†•: current conditions + 4-day forecast on your dashboard (Open-Meteo, no API key needed). Frost warnings for outdoor plants and "it rained โ€” skip watering today" hints.
  5. Telegram Notifications ๐Ÿ†•: get pinged when watering tasks are scheduled or an urgent AI diagnosis lands.
  6. Seasonal Care Tracking: Dynamic care tips based on the current month for each plant in your database.
  7. Personal Botanical Database: Manage and browse detailed plant cards (light exposure, watering needs, general care, seasonal calendar).
  8. AI Photo Diagnosis: Upload a photo of struggling leaves or stems. The AI identifies the plant, diagnoses the disease/problem, and suggests a detailed treatment. Click "Apply & Save to Database" to automatically add the task to your urgent dashboard!
  9. AI Model Selection ๐Ÿ†•: From the Settings page, choose exactly which AI model to use โ€” cheap options like GPT-4o mini or Gemini Flash are recommended and cost only a fraction of premium models.
  10. Smart Simulation Mode: No API key yet? The app simulates incredibly realistic botanical diagnoses so you can test the full workflow. Add your real key anytime from the Settings page.

๐Ÿš€ Getting Started (Local Setup)

Built with Python and Flask โ€” ready to run locally.

1. Prerequisites

Ensure Python 3 is installed:

python3 --version

2. Set Up Environment & Install Dependencies

Open Terminal and navigate to the project folder:

cd ~/Desktop/plant-tracker

Create a virtual environment (recommended to avoid conflicts):

python3 -m venv venv
source venv/bin/activate

Install required packages:

pip install -r requirements.txt

3. Run the Application

python3 app.py

4. Open in Browser

The app runs on port 5001 (avoids AirPlay conflict on macOS): ๐Ÿ‘‰ http://127.0.0.1:5001


๐Ÿณ Deploy con Docker / ZimaOS

L'app รจ disponibile come immagine Docker pronta su GitHub Container Registry.

Su ZimaOS:

  1. Apri il pannello App/Docker di ZimaOS e crea (o modifica) l'app usando questa immagine:
    ghcr.io/chiavedj/plant-tracker:latest
    
  2. Mappa la porta 5001 (es. 5001:5001).
  3. Aggiungi un volume per il database: /app/instance โ†’ cosรฌ i tuoi dati sopravvivono agli aggiornamenti.
  4. Quando esce una nuova versione, aggiorna l'immagine da ZimaOS e ricrea il container: le impostazioni e i dati restano al loro posto.

Con docker-compose (su qualunque server):

docker compose up -d

Il file docker-compose.yml nel repo รจ giร  configurato con volumi persistenti per database (florae-data) e foto caricate (florae-uploads).

โš ๏ธ Dopo un aggiornamento dell'immagine, fai sempre un hard refresh del browser (Cmd/Ctrl+Shift+R) per non vedere pagine vecchie dalla cache.


๐Ÿ› ๏ธ AI Provider & Model Setup (Optional)

To enable real AI-powered photo analysis:

  1. Launch the app and go to Settings from the sidebar.
  2. Pick your provider: OpenAI or Google Gemini.
  3. Paste your API key:
  4. Choose the AI model from the list โ€” budget models (mini / flash / nano) work great for plant diagnosis at a fraction of the cost.
  5. Click Save Configuration. Done! ๐ŸŒฑ

๐Ÿ’ก Keys are updated only when you type something in the field โ€” leaving it blank keeps the previously saved key.

About

๐ŸŒฟ Florae - Plant Care Tracker & AI Diagnosis. Track watering, diagnose plant diseases from photos, manage your botanical database. Local-first Flask web app.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages