Skip to content
Meritorious CodeCrafters logo

AI & ML

A Control Room for the Sun: Monitoring Hundreds of Solar Sites

  • CodeCrafters
  • 7 min read
Solar Energy Monitoring Software with Predictive Analytics | Meritorious CodeCrafters

In short

Domain:
Renewable energy, solar installation and maintenance
Core challenge
Unify fragmented data across multiple inverter brands into one dashboard with predictive analytics to catch underperformance early and avoid reactive maintenance
Approach
IoT data pipeline (MQTT/REST + TimescaleDB) paired with a weather-adjusted "expected vs. actual" digital twin model, AI anomaly detection (Python, Scikit-learn, PyTorch), and React web/mobile views
Key result
Proactive fault detection across hundreds of sites with evidence-backed technician dispatch, reduced unnecessary visits, and automated monthly customer reports

Executive Summary

A solar installation and maintenance company looked after hundreds of rooftop and ground-mounted systems for homes, farms, and small businesses. Each site had an inverter that reported data, but the company viewed it through a patchwork of manufacturer portals, one per brand. Faults were often discovered when a customer noticed a high electricity bill. Meritorious CodeCrafters built a unified solar monitoring platform with an IoT data pipeline, predictive analytics, and AI anomaly detection, along with customer-facing reports and a service dispatch view. Underperforming systems are now flagged early, and maintenance visits are planned with evidence. This case study is a guided tour of the main dashboard, panel by panel.

The dashboard tour

Panel 1: The fleet map

The first thing a technician or manager sees is a map of every site, coloured by health: green for normal, amber for "watch," red for "needs attention." Click a site and you see its latest output, today's expected output, and any open alerts.

Industry: renewable energy, specifically solar installation and maintenance.

What we built: an IoT data platform that collects readings from inverters of several brands, a monitoring and analytics web dashboard, an anomaly detection service, automated alerts, customer reports, and a work-order view for technicians.

Panel 2: Expected versus actual

For each site, a chart compares actual energy production against what we would expect given the weather, the season, and the site's own history. This "expected" line is the heart of the system. A cloudy day lowers both lines, so it does not trigger a false alarm. If output stays below expectation on a sunny day, something is wrong.

We built the expectation using each site's design, orientation, and past performance, plus weather data. In some industries this idea is called a digital twin: a simple virtual model of the real system, used to tell whether reality is behaving.

Panel 3: The anomaly feed

A scrolling list shows what the AI has noticed, in plain language: "Site 214: output has been noticeably lower than expected for four days, mostly in the afternoon. Possible shading or a failing string." Each item carries a likely cause, a confidence level, and a suggested next step.

The anomaly detection service looks for patterns such as sudden drops, slow degradation, afternoon-only losses, an inverter that keeps restarting, or a string that stops producing. It does not claim certainty; it ranks possibilities and lets a technician confirm.

Panel 4: The alert rules

Not every anomaly deserves a phone call. A rules panel lets the operations team decide who is notified, how, and when. A major outage raises an urgent alert. A small drift becomes a line in a weekly summary. This prevents alert fatigue, which can ruin any monitoring system.

Panel 5: The service planner

When an alert is serious enough, the planner creates a work order, groups nearby jobs to save driving time, and attaches the evidence: charts, likely cause, and the site's equipment details. Technicians see this on their phones before they set out, so they arrive with the right parts and the right questions.

Panel 6: The customer report

Each customer receives a clean monthly report: how much energy their system produced, how that compares with expectation, estimated savings, and a note if something was fixed. Customers see the company is looking after the system even when nothing goes wrong.

Panel 7: The management view

For leadership, a summary shows fleet-wide performance, the most common fault types, response times, and the cost of maintenance visits. Over time, this data shows which equipment brands or installation practices lead to more problems, which informs purchasing.

What the company asked for

  • One dashboard across many inverter brands
  • Early detection of underperformance
  • Fewer unnecessary site visits
  • Clear alerts that don't overwhelm the team
  • Customer-friendly monthly reports
  • Technician tools with the right information at the right time
  • A platform that could scale as the company grew

The challenges

Many brands, many formats. Each inverter maker used a different interface and data format. We built adapters for each, converting everything into a common structure.

Data gaps. Sites lose internet connection regularly. The platform stores gaps clearly and does not misread missing data as zero production.

False alarms. Weather, snow, shading from new trees, and seasonal sun angles all fool simple rules. We used the expected-versus-actual approach and tuned thresholds against historical cases.

Explaining AI findings. Technicians trusted the system once they could see the evidence behind each alert, not just a score.

Scale and cost. Hundreds of sites sending frequent readings generate a lot of data. We used time-series storage and summarised older data to keep costs sensible.

The tools

  • Python for data pipelines and anomaly detection models
  • A time-series database such as TimescaleDB on PostgreSQL
  • MQTT and REST integrations for collecting inverter data
  • Scikit-learn and PyTorch for forecasting and anomaly models
  • Weather data services for the expected-output model
  • React.js for the dashboard, with charts and maps
  • React Native for the technician mobile view
  • AWS for hosting and scheduled processing

Ourdata scientistsandPython developers led the analytics, and the dashboard drew on ourweb development practice.

The roadmap

Weeks 1 to 3: Discovery, inventory of inverter brands, and data auditWeeks 4 to 8: Data pipelines and common data modelWeeks 9 to 12: Dashboard, fleet map, and expected-versus-actual modelWeeks 13 to 16: Anomaly detection and alert rulesWeeks 17 to 19: Service planner, technician mobile view, and customer reportsWeeks 20 to 22: Pilot on a subset of sites, then fleet-wide rollout

A typical alert, followed through

Consider an ordinary case. The platform notices that a farm's ground-mounted system is producing less than expected, but only in the late afternoon, and only on clear days. The anomaly feed suggests partial shading, and shows the loss starts at nearly the same time each day, which fits a shadow moving across part of the array. The customer has not noticed.

A work order is created and bundled with two other jobs nearby. The technician sees the charts on her phone, drives out, and finds that a new row of trees planted last season is casting an afternoon shadow. She advises on trimming, and the customer arranges it. Production recovers, and the next monthly report mentions the fix and the energy recovered.

Without the platform, this loss could have continued for months. With it, a modest problem became a short, well-documented visit.

Lessons from the field

Start by getting data from every site into one consistent format, because analytics without clean data is guesswork. Explain every alert in plain words. Keep alerts rare enough to be taken seriously. And share the value with customers, since a monthly report turns invisible maintenance into visible care.

How long it took

About twenty-two weeks from kickoff to full rollout. IoT and analytics platforms typically take four to seven months, with data integration being the biggest variable.

Conclusion

Energy monitoring is a perfect case for predictive analytics, because the sun follows patterns and deviations are meaningful. By gathering data from every site into one place and comparing it with expectation, the company shifted from reacting to customer complaints to finding problems first.

What the company said

"We used to learn about problems from customers. Now our team often knows before they do, and technicians arrive with a good idea of the cause. The monthly reports have also given our customers more confidence."

Operations Director, solar installation and maintenance company

If you manage assets spread across many locations and want to see them clearly,Meritorious CodeCrafters would be glad to talk. You can book a call or explore our AI solutions.

Share

Next Step

Let’s talk about your project

Tell us what you are building. We will tell you what it takes - scope, stack, timeline and cost, without the sales theatre.