Spaces:
Paused
Paused
File size: 4,838 Bytes
dac3297 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 | # β
HVAC Blueprint Analyzer - Setup Checklist
**Your demo is ready!** Follow these steps to get it running.
---
## π STEP 1: Run the Server (Pick One)
### Option A: Double-Click (Easiest) β
- [ ] Find `RUN.bat` in project folder
- [ ] Double-click it
- [ ] Wait for browser to open
- [ ] **DONE!**
### Option B: PowerShell
- [ ] Find `RUN.ps1` in project folder
- [ ] Right-click β "Run with PowerShell"
- [ ] Wait for browser to open
- [ ] **DONE!**
### Option C: Manual
```bash
cd C:\Users\ruchy\OneDrive\Documents\hvac_project
venv\Scripts\activate
pip install -r requirements.txt
python server.py
```
Then open: http://127.0.0.1:8000
---
## β¨ STEP 2: Test the Demo
Once server is running, you should see:
- [ ] Browser opened to http://127.0.0.1:8000
- [ ] Upload area visible (drag & drop box)
- [ ] "Analyze Blueprint" button
- [ ] Model selection (Gemini/OpenAI)
- [ ] Schedule mode toggle
### Try It:
- [ ] Drag any PDF into upload area (or click to browse)
- [ ] Click "Analyze Blueprint"
- [ ] Wait for results (~2 seconds)
- [ ] See 4 tabs appear: Summary, Floors & Units, Floor Plan, Downloads
---
## π STEP 3: Check Results
### Summary Tab
- [ ] Shows: Total Floors (3), Total Units (8), Total Capacity, Time
- [ ] Shows: Model Used, Filename, Cost
### Floors & Units Tab
- [ ] Shows table with Floor, Unit ID, Type, Quantity, Capacity
- [ ] Data looks like:
```
Floor | Unit_ID | Unit_Type | Qty | Capacity_BTU
1 | AC-A | Ceiling | 1 | 36000
```
### Floor Plan Tab
- [ ] Shows canvas drawing with floors and units
### Downloads Tab
- [ ] Can download: Floors & Units CSV
- [ ] Can download: Equipment Schedule CSV
- [ ] Can download: Reconciliation CSV
- [ ] Can download: All as ZIP
---
## π STEP 4: Verify CSV Files
After downloading, check files contain:
### hvac_floors_units.csv
```
Floor,Unit_ID,Unit_Type,Quantity,Capacity_BTU,Capacity_kW,Status,Location,Notes
1,AC-A,Ceiling Concealed Ducted,1,36000,10.5,Detected,Living area,
```
### hvac_equipment_schedule.csv
```
id,manufacturer,model,type,capacity_btu,voltage,phase,frequency_hz,quantity,floor,unit_tag
1,Carrier,25HNE024A03,Ceiling Cassette,24000,208-230V,1,60,1,1,AC-A
```
### hvac_reconciliation.csv
```
Issue_Type,Severity,Floor,Unit_ID,Details,Recommendation
(Empty or shows issues if any)
```
β
All files populated correctly? **Demo is working!**
---
## π STEP 5: Next Phase (Optional)
### Connect Your Real Code
- [ ] Open `server.py`
- [ ] Find: `async def analyze_blueprint_async(...)`
- [ ] Replace mock return with your real analysis
- [ ] Restart server (`Ctrl+C` then `python server.py`)
### Test With Real PDF
- [ ] Upload actual blueprint PDF
- [ ] Verify results are correct
- [ ] Check CSV output
### Deploy to Cloud (5 minutes)
- [ ] See `RAILWAY_DEPLOYMENT_GUIDE.md`
- [ ] Get live URL
- [ ] Share with team
---
## π STEP 6: Stop the Server
When done testing:
- [ ] Press `Ctrl+C` in the terminal/PowerShell window
- [ ] Wait for "Shutdown complete" message
- [ ] Terminal closes (or you can close it)
---
## β Troubleshooting
### Issue: Port 8000 already in use
**Fix**:
```bash
# Find process
netstat -ano | findstr :8000
# Kill it
taskkill /PID <number> /F
# Or change port in .env
PORT=8001
```
### Issue: "Module not found"
**Fix**:
```bash
pip install -r requirements.txt --upgrade
```
### Issue: Virtual environment not activated
**Fix**:
```bash
venv\Scripts\activate
```
### Issue: Browser doesn't open automatically
**Fix**: Manually go to http://127.0.0.1:8000
### Issue: RUN.bat doesn't work
**Fix**: Use RUN.ps1 instead or follow manual steps
---
## π File Guide
| File | Purpose |
|------|---------|
| `RUN.bat` | Double-click to run (Windows) |
| `RUN.ps1` | Right-click β Run with PowerShell |
| `server.py` | Main app (edit to add your code) |
| `HOW_TO_RUN.md` | Detailed setup instructions |
| `QUICK_START.md` | 5-minute quick guide |
| `START_HERE.md` | Quick reference guide |
---
## β
Final Checklist
- [ ] Server running (no errors)
- [ ] Browser opened to http://127.0.0.1:8000
- [ ] Upload form visible
- [ ] Can upload PDF
- [ ] Results display
- [ ] CSVs download
- [ ] All 3 CSV files contain data
**ALL CHECKED? YOUR DEMO IS LIVE!** π
---
## π― Success = All 3 Tabs Work
1. β
**Summary Tab** - Shows stats
2. β
**Floors & Units Tab** - Shows table
3. β
**Download Tab** - Can save CSVs
If all 3 work β You're ready for production!
---
## π Need Help?
1. Check `HOW_TO_RUN.md` (Troubleshooting section)
2. Check `QUICK_START.md` (More details)
3. Check `START_HERE.md` (Complete guide)
4. Check `FASTAPI_HTML_CANVAS_1DAY_GUIDE.md` (Deep dive)
---
**You've got this! π**
*Once working locally, you can deploy to Railway in 5 minutes.*
*See `RAILWAY_DEPLOYMENT_GUIDE.md` when ready.*
|