Skip to main content

Wattklok

Live2026

Is solar or a home battery worth it for you?

Free, private calculator that shows whether solar panels, a home battery, or both pay off for your home

Simulates every hour of up to five years of your own history in a Web Worker – nothing is stored on a server

Imports Tibber via OAuth2 PKCE, or grid-operator CSV/Excel files from Sweden, Norway, Finland and Denmark

Compares battery strategies and system sizes against real spot prices, grid fees, VAT and subsidies

The problem

The solar and battery calculators I tried wanted my contact details, and then answered with averages. I wanted an answer based on my own electricity use.

Averages are exactly where these decisions go wrong. Whether a battery pays off depends on when you use electricity, how prices move within each day and how much sun you get in the hours that matter. A typical year smooths all of that away.

How it works

Connect a Tibber account or import the export file from your grid operator, and Wattklok combines your measured consumption with historical sunlight and day-ahead spot prices for your price area. Then it simulates every hour of up to five years of history: what the panels would have produced, what the battery would have charged and discharged, and what you would have paid – including grid fees, energy tax, VAT and subsidies.

The results are summed into real 12-month windows rather than one averaged "typical year", because the solar and battery models are non-linear. Payback is then replayed over the equipment's life, and the verdict – likely, borderline or unlikely – has to hold in your worst year, not just the average one.

Sources
Tibber account
OAuth2 PKCE, tokens in HTTP-only cookies
Provider export
Nordic CSV/Excel formats, parsed in a worker
Weather & prices
Open-Meteo sunlight, ENTSO-E spot prices
Import · normalise
Your browser
IndexedDB
Hourly records stored as typed-array columns
Local time
Every hour keyed to the home's timezone, DST included
Web Worker
Engine
Solar & battery models
Hour by hour, with fees and VAT per hour
Strategies & sizes
Six ways to run the battery, a grid of sizes
Payback
25-year replay with worst and best year

Key features

  • An honest answer – payback, yearly savings and a verdict for the panels and the battery separately, so a good solar case can't hide a bad battery.
  • Battery strategies – from storing your own solar to buying cheap and selling at peaks, each compared on the same history.
  • Size finder – the same history replayed with smaller and larger systems to show where the sweet spot is.
  • Explorer – drill from year to month to day, and play back any day hour by hour with an animated energy flow.
  • Your data, your way – Tibber, CSV/Excel files from Nordic grid operators, or a generated profile to explore before you have data.
  • Swedish and English – with country defaults for Sweden, Norway, Finland and Denmark.

Engineering notes

  • Private by construction. There are no accounts and no energy data on the server. The only server routes handle the Tibber login and proxy prices; OAuth tokens stay in HTTP-only cookies, and everything else runs and is stored in the browser.
  • Time is the hard part. Consumption, weather and prices only line up if every hour is keyed to the home's local time – including the hour that happens twice when summer time ends.
  • Never invent data. Missing hours show as missing, not zero, and imported consumption is treated as grid import, so existing panels are never counted twice.
  • Heavy work stays off the main thread. Imports and simulations run in Web Workers, and hourly records are stored as typed-array columns to keep large histories fast to load.

Status

Wattklok has just been redesigned and translated.

Screenshots

Wattklok overview with an isometric house and a verdict on whether the system pays off
The overview: what the system would have produced, and an honest verdict.
Hour-by-hour view of a June day with solar, home use, battery level and price
Replay any day hour by hour – solar, home use, battery level and price.
Comparison of six battery strategies with yearly savings and net result
Six ways to run the battery, compared on the same history.
Grid of solar and battery sizes coloured by net result over 25 years
Which size makes sense? Every combination replayed on your data.
Payback chart and verdicts for solar panels and adding a battery
Payback over the equipment's life, judged separately for panels and battery.
June month view with daily energy bars and a month total table
Drill down from year to month to day.