Inspiration
Many people install solar panels but never know whether the panels are producing what they should. Dust, bird droppings, partial shade and heat quietly reduce output, and raw readings like watts, volts and temperature are hard for a regular homeowner to interpret. We asked: what if anyone could enter three numbers and instantly understand their panel's health in plain English?
What it does
SolarIQ AI is a web app that turns solar readings into simple health insights. Check Panel Health: Enter expected power, actual power and panel temperature. The app calculates the performance loss % and classifies the panel as Healthy, Needs Inspection or Critical, using configurable thresholds. Plain-English diagnosis: It lists possible causes (dust, shade, heat, airflow) and labels them as unconfirmed, never as proven faults. My Solar Plant and Improve Output: It gives a system overview with a daily generation curve, plus practical tips such as cleaning, checking for shade and running heavy appliances during peak sun hours. Ask Solar AI: A Gemini-powered chat assistant that answers questions grounded in the user's current panel readings. Offline fallback: If the Gemini key is missing or a request fails, a rule-based engine still replies, so the app keeps working.
How we built it
Frontend: React 19 and TypeScript, Vite, Tailwind CSS v4, Motion for animations. Backend: An Express server with /api/health, /api/ai/analyze and /api/ai/chat routes. The Gemini API key stays on the server. AI layer: Google Gemini via @google/genai, with live telemetry and recent chat history injected into the system prompt. Hybrid logic: Deterministic rules calculate the loss % and status first (loss = (expected − actual) / expected × 100). The AI only explains and advises, so the numbers never depend on an LLM. Demo presets: Three reproducible scenarios (healthy, dusty or shaded, hot summer panel) let anyone try the app in seconds.
Challenges we ran into
Honest diagnosis: Temperature or power loss alone can't prove a hardware fault. We designed every output around "possible causes" and recommended physical checks. Reliable AI: We added a rule-based fallback and strict prompt guidelines so responses stay short, simple and non-alarming. Plain language: We had to explain technical concepts like thermal derating, bypass diodes and MPPT in terms a first-time user understands. Shared state: One set of readings had to drive all pages (plant, health check, improve, AI) so the app stays consistent.
Accomplishments that we're proud of
A working end-to-end prototype with five pages and a real backend, not just a UI mockup. A hybrid design where calculations are deterministic and AI handles explanation, which makes the output more trustworthy. A fallback path that keeps chat and analysis working even without an API key. An interface that makes solar data understandable for non-technical users.
What we learned
How PV performance works: irradiance, the temperature coefficient (about −0.4% per °C) and how losses are modelled. How to combine rule-based logic with an LLM so the AI adds value without being the source of truth. How to design cautious, explainable output in a domain where wrong advice could matter. Full-stack basics: Express and Vite setup, secure API key handling and graceful failure handling.
What's next for SolarIQ AI
Real sensor or IoT data input, weather-based generation forecasts, and Hindi language support for Indian households.
Built With
- express.js
- gemini
- node.js
- react
- tailwindcss
- typescript
- vite
