Skip to content

Commit

Permalink
add next day prices
Browse files Browse the repository at this point in the history
  • Loading branch information
terjesannum committed May 5, 2023
1 parent 9323e6c commit ea2d9f0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,22 @@ If you don't have a device for live measurements, only the power price metrics w

![Grafana dashboard without pulse](grafana/dashboard-without-pulse.png)

#### Next day prices

The Tibber API provides power prices for the current and the next day, but storing future data can't be done easily in Prometheus. To be able to show future power prices, this exporter also has a JSON service which can be queried to get this data. In Grafana this can be used with the [JSON API datasource plugin](https://grafana.com/grafana/plugins/marcusolsson-json-datasource/).

| Endpoint | Description |
|-------------------------------------------|------------------------------------------------------------|
| `/homes/<home id>/prices` | Power prices for today and tomorrow (if available) |
| `/homes/<home id>/prices?period=now` | Power prices from current time and tomorrow (if available) |
| `/homes/<home id>/prices?period=today` | Power prices for today |
| `/homes/<home id>/prices?period=tomorrow` | Power prices for tomorrow (if available) |

Tomorrow prices are usually available around 13:00 each day.

See the [prices dashboard](grafana/dashboard-prices.json) for some example panels which use this datasource.

![Grafana prices dashboard](grafana/dashboard-prices.png)

## Running

Expand Down
4 changes: 3 additions & 1 deletion charts/tibber-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: tibber-exporter
version: 2.1.0
version: 3.0.0
description: Tibber prometheus exporter
type: application
keywords:
Expand All @@ -26,3 +26,5 @@ annotations:
url: https://raw.githubusercontent.com/terjesannum/tibber-exporter/master/grafana/dashboard.png
- title: Grafana dashboard without Pulse
url: https://raw.githubusercontent.com/terjesannum/tibber-exporter/master/grafana/dashboard-without-pulse.png
- title: Prices dashboard
url: https://raw.githubusercontent.com/terjesannum/tibber-exporter/master/grafana/dashboard-prices.png
2 changes: 2 additions & 0 deletions charts/tibber-exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ If you don't have Tibber Pulse, you still get price and daily consumption/cost m

![Grafana dashboard](https://raw.githubusercontent.com/terjesannum/tibber-exporter/master/grafana/dashboard-without-pulse.png)

![Grafana dashboard](https://raw.githubusercontent.com/terjesannum/tibber-exporter/master/grafana/dashboard-prices.png)

See [https://github.com/terjesannum/tibber-exporter](https://github.com/terjesannum/tibber-exporter) for more information.

0 comments on commit ea2d9f0

Please sign in to comment.