Skip to main content
After your system has generated, consumed, or exported energy, you can calculate the corresponding import cost or export value. The simplest way is to submit meter records from your devices to Flatpeak and let it calculate the cost automatically. Flatpeak also keeps historical values up to date if past energy prices change — for example, after market settlements or provider changes. You can view instant cost results for each record or fetch aggregated totals for any period (e.g. day, week, month, or year). To implement, choose one of the two main options:
  • Submit device meter records and let Flatpeak calculate the cost or value (recommended)
  • Retrieve energy prices from Flatpeak and calculate the cost or value within your own system
Realtime
Follow the guide below that matches your use case — you may want to implement both:

Instant cost calculation

Ingests a meter record and instantly returns energy cost (or export value).

Historic cost reporting

Calculates energy cost (or export value) from previously submitted meter records.