Nick Pleydell-Pearce

Personal Lab · 7 min read

Would a solar panel actually save us any money?

I’ve been interested in plug-in solar for a while. The idea is fairly simple: instead of installing a conventional solar system, you plug a small panel into your home’s electricity supply and use some of the power it generates.

Illustration: a slate roof with a roof window and chimney, a yellow sun and a beam of light falling on a dashed rectangle where a panel could go

It wasn’t really an option in the UK at the time, although there had been increasing discussion about changing that. Still, it got me wondering whether we could make use of the sunlight we get on our roof terrace.

The first question was fairly obvious. How much electricity could we actually generate? Then I realised I didn’t really know how much electricity we used.

We have our energy supplier’s app, we get bills, and we know roughly what we spend each month. What we don’t get is much information about where that energy goes, or whether we’re using more than we should.

Our electricity consumption had been climbing, and I wasn’t entirely sure why. Was something using more power? Had our habits changed? Was the house particularly inefficient? I thought it would be interesting to find out.

First, I needed to understand the house

Before I could work out whether solar would save us anything, I needed a better picture of our existing energy consumption. I wanted to see how much gas and electricity we were using over time, how much of that could be explained by the weather, and whether there were any unusual patterns.

That meant bringing together information from a few different places. Our energy supplier had our records. I could get historical weather data from Open-Meteo, including temperatures going back several years. Ofgem published the price cap figures, and the European Commission’s PVGIS service could estimate how much solar energy different roof surfaces might generate.

So I started putting it all together. I used Python to process the data and built a dashboard in React to explore it. It eventually grew into six pages covering energy consumption, bills, weather, pricing and potential solar generation.

It runs locally on my Mac, without a database or server. The scripts prepare the data, and the dashboard reads the resulting files. The individual parts weren’t especially complicated. The interesting bit was seeing what happened when I connected them.

The data script at work: it reads each source, fits gas against the weather, flags the electricity rise and writes the files the dashboard reads.

Was the weather responsible?

Heating a house in January obviously takes more energy than heating it in July. What I wanted to know was how closely our actual consumption followed the weather. Simply comparing one month with another isn’t particularly useful if one was much colder.

There’s a measure called heating degree days, which describes how much heating a building is likely to need based on outside temperatures. I used it to compare historical weather with our gas consumption.

The correlation was remarkably strong. The model had an R² value of 0.96, which meant outside temperature explained most of the variation in our gas use. That was reassuring. When it got colder, we used more gas; when it got warmer, we used less. We weren’t seeing particularly strange behaviour.

Electricity was more interesting. Our usage had increased by about 18% compared with the preceding two years, and the weather didn’t explain it in the same way. I had a suspicion about at least some of that.

I’d been playing a game on the PlayStation that also generated things while I wasn’t actively playing. I’d sometimes leave it running for extended periods, including overnight. That meant the PlayStation, a fairly power-hungry device, was on for considerably longer than usual. It seemed a plausible explanation for some of the increase, but I wanted to check rather than assume.

Scatter chart: one dot a month of gas use against heating degree days, close to a straight line, R² 0.96
Bar chart: electricity each month, the latest year about 18% above the two years before
Gas use against heating degree days (R² 0.96), and electricity use up about 18% on the two years before.

The data I needed wasn’t there

This is where things became slightly more involved. Our monthly bills could tell me how much electricity we’d consumed, but not when we’d consumed it.

To work out whether the PlayStation, or anything else, was responsible, I needed readings at much shorter intervals. Ideally every half hour. Our supplier offered half-hourly readings, but they weren’t switched on for us. So the data I wanted for the months I was investigating hadn’t been collected.

The smart meter itself retained some historical information, though, and there were other ways of retrieving it through the national smart-meter network. I looked into a service called n3rgy, but it had stopped accepting new users. Another route was Hildebrand’s Glow service, which could potentially provide the readings. I wrote the code to retrieve that data, but at the time the project was documented, it was still waiting on the necessary device details and API access.

So I had a pretty good explanation for our general energy consumption, and a plausible theory about the increase in electricity use, but not quite the evidence needed to confirm it. That was frustrating, since finding the cause was one of the reasons I’d started.

Back to the solar panels

With a better understanding of our energy use, I could return to the original question. How much electricity could we generate, and would it actually be worth the expense?

I used PVGIS to estimate the output of a small 800-watt system across different parts of the roof. I also built a model of the sun’s movement throughout the year, so I could see how its position changed between summer, winter and the equinoxes. The dashboard includes an animated sun path that you can scrub through at different times of day.

The sun over the house on the longest and shortest days: morning light on the terrace, afternoon light on the rear slope.

One thing that surprised me was how much the actual roof geometry mattered. The first static model suggested that the rear roof slope was the best location, producing around 530 kWh annually. Those figures turned out to be wrong. When I used the real roof directions with PVGIS, the north-east-facing terrace came out ahead of the rear slope, with estimated annual generation of 711 kWh against 586 kWh.

Not necessarily what you’d expect from the usual advice about which direction solar panels should face. It was a reminder that rules of thumb only go so far. If you can model your actual circumstances, you might get a different answer.

Of course, generating electricity isn’t the same as saving money. You need to use the power when it’s being generated. Otherwise, without a suitable export arrangement or battery, some of that energy isn’t particularly useful to you.

So I started looking at the potential savings, the cost of the panels, the number of years needed to recover the investment, and whether a battery or different electricity tariff would change the calculation. For a relatively modest system, the payback period was still several years.

There was another fairly significant practical detail: we don’t own the roof. So even if the financial case had been compelling, actually installing anything would have involved another set of questions.

What I ended up with

I ended up with a six-page dashboard that brings together three years of household energy information, historical weather, electricity pricing and solar estimates. It lets me compare seasons, identify unusual consumption, understand how our bills are made up and explore what a small solar installation might generate throughout the year. It also has a rather elaborate animated model of the sun moving around our house.

All because I wondered whether a solar panel might save us some money. The financial conclusion wasn’t particularly exciting. Given the cost, constraints and likely generation, it probably wasn’t worth pursuing at that point.

The investigation was useful in other ways. I now have a much better understanding of how our house uses energy. I can see that our gas consumption behaves pretty much as expected, and I have a way of investigating unusual electricity usage rather than just noticing that the bill has gone up.

I also learned that the data an energy supplier appears to have isn’t necessarily the data you can actually obtain. That’s something I’d check much earlier next time.

What I’m wondering now

The missing piece is still the half-hourly electricity data. I’d like to find out whether the change in PlayStation usage really did explain the increase, and what happens when we look at consumption throughout a typical day rather than by month.

That would also make the solar calculations more useful. At the moment, they rely on an assumption about how much generated electricity we’d consume ourselves. With actual usage patterns, I could make a much better estimate.

Whether that changes the answer about buying solar panels is another question. I suspect I already know the answer, but I’d quite like to find out.


How it was made

  • Claude Code
  • Python
  • pandas
  • NumPy
  • React
  • Tailwind CSS
  • Vite
  • Lucide
  • 1Password

I planned the project using Claude in Cowork, then worked with Claude Code to build the data pipeline and six-page interface over two days. Subsequent additions, including the animated sun path, began with specifications I wrote.

Technologies: Python, pandas, NumPy, React 19, Recharts, Tailwind CSS, Vite and Lucide.

Data sources: our energy supplier’s records, Open-Meteo, Ofgem and PVGIS, with a Hildebrand Glow integration prepared for half-hourly readings.

Security: Energy account credentials are passed through the 1Password CLI rather than stored in the project.

Code: Private repository.

Project status: 22 March 2026. The dashboard and solar model were working; half-hourly consumption analysis remained incomplete.