Skip to content

Commit c97d146

Browse files
committed
kwh3 custom format
1 parent 2e7b730 commit c97d146

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
{
22
"version": "1.0",
3-
"customFormats": []
3+
"customFormats": [
4+
{
5+
"formatTag": "kwh0",
6+
"formatCode": "#,##0\" kWh\"",
7+
"valueType": "number"
8+
},
9+
{
10+
"formatTag": "kwh3",
11+
"formatCode": "#,##0.000\" kWh\"",
12+
"valueType": "number"
13+
}
14+
]
415
}

pages/capacity-tariff.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22

33
```mrt_capacity_tariff
44
select
5-
month_peak_value,
5+
month_peak_value as month_peak_value_kwh3,
66
pct_change as pct_change_pct1,
77
month_name,
88
month_name_short,
9-
month_peak_12month_avg,
9+
month_peak_12month_avg as month_peak_12month_avg_kwh3,
1010
month_start_date
1111
from mrt_capacity_tariff
1212
```
1313

1414
The capacity tariff is based on the 12-month rolling average of your monthly peak consumption. The higher your peak consumption, the higher your capacity tariff.
1515

16-
<Chart data={mrt_capacity_tariff} x=month_start_date title="Month peak value evolution" yAxisTitle="kWh" xAxisTitle="month">
17-
<Bar y=month_peak_value />
18-
<Line y=month_peak_12month_avg name="Rolling average" />
16+
<Chart data={mrt_capacity_tariff} x=month_start_date title="Month peak value evolution" yAxisTitle="peak" xAxisTitle="month">
17+
<Bar y=month_peak_value_kwh3 />
18+
<Line y=month_peak_12month_avg_kwh3 name="Rolling average" />
1919
</Chart>
2020

2121
```mrt_capacity_tariff_last_months
@@ -26,15 +26,15 @@ order by month_start_date desc
2626
limit 4
2727
```
2828

29-
The current (<Value data={mrt_capacity_tariff_last_months} column=month_name_short/>) monthly peak is **<Value data={mrt_capacity_tariff_last_months} column=month_peak_value/> kWh**. The change over last month (<Value data={mrt_capacity_tariff_last_months} column=month_name_short row=1/>) is **<Value data={mrt_capacity_tariff_last_months} column=pct_change_pct1/>** as we then had <Value data={mrt_capacity_tariff_last_months} column=month_peak_value row=1/> kWh.
29+
The current (<Value data={mrt_capacity_tariff_last_months} column=month_name_short/>) monthly peak is **<Value data={mrt_capacity_tariff_last_months} column=month_peak_value_kwh3/>**. The change over last month (<Value data={mrt_capacity_tariff_last_months} column=month_name_short row=1/>) is **<Value data={mrt_capacity_tariff_last_months} column=pct_change_pct1/>** as we then had <Value data={mrt_capacity_tariff_last_months} column=month_peak_value_kwh3 row=1/>.
3030

31-
The average monthly peak for the last 12 months is **<Value data={mrt_capacity_tariff_last_months} column=month_peak_12month_avg/> kWh**.
31+
The average monthly peak for the last 12 months is **<Value data={mrt_capacity_tariff_last_months} column=month_peak_12month_avg_kwh3/>**.
3232

3333
Here are the monthly peaks for the last 4 months:
3434

3535
{#each mrt_capacity_tariff_last_months as month_row}
3636

37-
* {month_row.month_name}: {month_row.month_peak_value} kWh, <Value data={month_row} column=pct_change_pct1 />
37+
* {month_row.month_name}: <Value data={month_row} column=month_peak_value_kwh3 />, <Value data={month_row} column=pct_change_pct1 />
3838
{#if month_row.pct_change_pct1 > 0}
3939
↗️ more
4040
{:else}

pages/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ Navigate through the menu on the left to analyze your electricity data.
88

99
```mrt_capacity_tariff_current
1010
select
11-
month_peak_12month_avg,
11+
month_peak_12month_avg as month_peak_12month_avg_kwh3,
1212
pct_change as pct_change_pct2,
1313
from mrt_capacity_tariff
1414
order by month_start_date desc
1515
limit 1
1616
```
1717

18-
<BigValue data={mrt_capacity_tariff_current} value=month_peak_12month_avg comparison=pct_change_pct2 downIsGood=true comparisonTitle="Evolution" title="Average monthly peak (kWh)" />
18+
<BigValue data={mrt_capacity_tariff_current} value=month_peak_12month_avg_kwh3 comparison=pct_change_pct2 downIsGood=true comparisonTitle="current peak vs. last month" title="Average monthly peak" />

0 commit comments

Comments
 (0)