DEV Community

ahmad rabbani
ahmad rabbani

Posted on

🌍 GreenLens β€” AI That Tells You Exactly Where to Plant Trees

DEV Weekend Challenge: Earth Day

What I Built

I built GreenLens, an AI-powered platform that turns any location into actionable environmental intelligence.

Most tools show:

AQI
climate data
reports

πŸ‘‰ But they don’t answer:

β€œWhere exactly should we plant trees?”

🌳 The Breakthrough

GreenLens doesn’t just analyze β€” it decides.

It tells you:

πŸ“ where to plant trees
🌱 how many trees are needed
🌳 where dense forests are possible
🧠 what strategy to follow
🌿 Miyawaki Forest Detection (Core Feature)

Using the Miyawaki method, the system identifies:

high-impact plantation zones
small-area dense forests
fast-growing urban greening opportunities
πŸ–ΌοΈ How It Looks (ADD YOUR SCREENSHOTS HERE)

πŸ‘‰ (IMPORTANT: Add these images in your Dev.to post manually)

πŸ“Έ Screenshot 1: Map selection
πŸ“Έ Screenshot 2: Results dashboard
πŸ“Έ Screenshot 3: AI recommendations
⚑ How It Works
User selects location
↓
Fetch environmental data
↓
Calculate tree opportunity
↓
AI generates recommendations
↓
Dashboard displays results
🧠 AI Layer (What Makes It Special)

Instead of a chatbot, Google Gemini acts as a decision engine:

interprets environmental signals
generates human-readable insights
suggests real-world actions
πŸ’‘ Core Idea

Data provides facts. AI provides direction.

πŸš€ From Analysis β†’ Real Impact

This is not just a tool β€” it’s a platform vision.

🌍 Community Tree Tracking
tag planted trees
upload images
track growth
build local communities

πŸ‘‰ β€œGitHub for trees”

πŸ’° Crowdfunding Environmental Action
launch plantation campaigns
raise funds
track execution

πŸ‘‰ β€œThis area needs 500 trees β†’ fund β†’ plant β†’ track”

πŸ—οΈ How I Built It
Tech Stack
Laravel + Blade
Bootstrap
Google Maps API
Google Air Quality API
Google Gemini
SQLite
Nginx
⚑ Real Engineering Challenge

The app runs under:

/earth-health/

This required:

fixing Laravel routing
handling base paths
configuring nginx
🌍 Why This Matters

Environmental tools usually fail because they:

show data
but don’t guide action

GreenLens bridges:

πŸ‘‰ data β†’ decisions β†’ action

Demo Links
🌐 Live App: http://104.207.64.25/earth-health/
πŸ§ͺ Assessment: http://104.207.64.25/earth-health/assess
πŸ’» Code: https://github.com/ahmadrabbani/earth-health
πŸ’° Call for Collaboration

I’m looking to take this further:

🌍 environmental partners
πŸ’» developers
πŸ’° early supporters
Prize Categories
πŸ₯‡ Best Use of Google Gemini
How it works ?
User selects location
↓
Fetch environmental data
↓
Calculate tree opportunity
↓
AI generates recommendations
↓
Dashboard displays results

Gemini is deeply integrated as:

interpretation layer
recommendation engine
decision support
Final Thoughts

AI shouldn’t just inform.
It should help us act.

Prize Categories
πŸ₯‡ Best Use of Google Gemini

Gemini is deeply integrated as:

interpretation layer
recommendation engine
decision support

πŸ’¬ Feedback welcome
⭐ Star the repo if you like it

Top comments (0)