|
| 1 | +--- |
| 2 | +title: Greenify | Localized community-driven greenification/plantation solution with AI |
| 3 | +description: A mobile application that analyzes photos and location data to suggest suitable plants and build sustainable communities using Perplexity Sonar API |
| 4 | +sidebar_position: 19 |
| 5 | +keywords: [greenify, plant recommendation, community, expo, react native, flask, perplexity, sonar, image analysis, sustainability] |
| 6 | +--- |
| 7 | + |
| 8 | + |
| 9 | +**Greenify** is a mobile application designed to encourage sustainable practices by analyzing live images and building communities. Users capture photos of their space (balcony, roadside, basement, etc.) and Greenify automatically analyzes the image using Perplexity's Sonar API to suggest suitable plants for that location. The app also connects like-minded people in the locality to create communities for sustainable, economic, and social growth. |
| 10 | + |
| 11 | +<iframe |
| 12 | + className="w-full aspect-video rounded-xl" |
| 13 | + src="https://www.youtube.com/embed/IFP0EiHqd7Y" |
| 14 | + title="YouTube video player" |
| 15 | + frameBorder="0" |
| 16 | + allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
| 17 | + allowFullScreen |
| 18 | +></iframe> |
| 19 | + |
| 20 | +## Features |
| 21 | + |
| 22 | +* **AI-Powered Plant Analysis** using image recognition and location data to suggest suitable plants |
| 23 | +* **Location-Based Recommendations** considering weather, sunlight, and environmental conditions |
| 24 | +* **Community Building** connecting users with similar plant interests and sustainable goals |
| 25 | +* **Cross-Platform Mobile App** built with Expo for iOS, Android, and web |
| 26 | +* **Real-time Weather Integration** for accurate plant suitability assessment |
| 27 | +* **Structured JSON Output** using Pydantic models for consistent data handling |
| 28 | +* **AR Model Support** for enhanced plant visualization |
| 29 | + |
| 30 | +## Abstract Data Flow Diagram |
| 31 | + |
| 32 | + |
| 33 | +## Prerequisites |
| 34 | + |
| 35 | +* Node.js 20.19.4+ and npm |
| 36 | +* Python 3.10.0+ and pip |
| 37 | +* Expo CLI and SDK 51+ |
| 38 | +* Perplexity API key (Sonar Pro and Sonar Deep Research) |
| 39 | +* Android SDK/Studio or Xcode (for local builds) |
| 40 | +* Mobile device with camera for image capture |
| 41 | + |
| 42 | +## Installation |
| 43 | + |
| 44 | +```bash |
| 45 | +# Clone the repository |
| 46 | +git clone https://github.com/deepjyotipaulhere/greenify.git |
| 47 | +cd greenify |
| 48 | + |
| 49 | +# Install frontend dependencies |
| 50 | +npm install |
| 51 | + |
| 52 | +# Install backend dependencies |
| 53 | +cd service |
| 54 | +pip install -r requirements.txt |
| 55 | +``` |
| 56 | + |
| 57 | +## Configuration |
| 58 | + |
| 59 | +Create `.env` file in the `service` directory: |
| 60 | +```ini |
| 61 | +PPLX_API_KEY=your_perplexity_api_key_here |
| 62 | +``` |
| 63 | + |
| 64 | +## Usage |
| 65 | + |
| 66 | +1. **Start Backend Service**: |
| 67 | + ```bash |
| 68 | + cd service |
| 69 | + python app.py |
| 70 | + ``` |
| 71 | + |
| 72 | +2. **Start Frontend App**: |
| 73 | + ```bash |
| 74 | + npx expo start |
| 75 | + ``` |
| 76 | + |
| 77 | +3. **Access the App**: |
| 78 | + - Install Expo Go app and scan QR code, or |
| 79 | + - Open web browser on mobile and navigate to the URL shown |
| 80 | + |
| 81 | +4. **Use the App**: |
| 82 | + - Grant camera and location permissions |
| 83 | + - Take a photo of your space (balcony, garden, etc.) |
| 84 | + - Receive AI-powered plant recommendations |
| 85 | + - Connect with nearby users for community building |
| 86 | + |
| 87 | + | |
| 88 | + |
| 89 | +## Code Explanation |
| 90 | + |
| 91 | +* **Frontend**: React Native with Expo for cross-platform mobile development |
| 92 | +* **Backend**: Python Flask API handling image processing and Perplexity API integration |
| 93 | +* **AI Integration**: Perplexity Sonar Pro for image analysis and Sonar Deep Research for plant recommendations |
| 94 | +* **Data Models**: Pydantic models for structured JSON output and data validation |
| 95 | +* **Image Processing**: Real-time image analysis with location-based context |
| 96 | +* **Community Features**: User matching based on plant suggestions and sustainable interests |
| 97 | +* **Weather Integration**: Real-time weather data for accurate plant suitability assessment |
| 98 | + |
| 99 | +## Links |
| 100 | + |
| 101 | +- [GitHub Repository](https://github.com/deepjyotipaulhere/greenify) |
| 102 | +- [Live Demo](https://greenify.expo.app) |
0 commit comments