Pridani popisku onhover soc a fve v grafu planovani
This commit is contained in:
@@ -387,6 +387,9 @@ function PlanTooltip({
|
|||||||
const buy = i.effective_buy_price
|
const buy = i.effective_buy_price
|
||||||
const sell = i.effective_sell_price
|
const sell = i.effective_sell_price
|
||||||
const pred = isPredictedPriceSlot(i, nowMs)
|
const pred = isPredictedPriceSlot(i, nowMs)
|
||||||
|
const fveStr = formatPlanPowerW(p.pv_a_w)
|
||||||
|
const fveDisplay = fveStr === '—' ? '—' : fveStr.includes('kW') ? fveStr : `${fveStr} W`
|
||||||
|
const soc = p.battery_soc_target_pct
|
||||||
return (
|
return (
|
||||||
<div className="rounded-lg border border-slate-600 bg-slate-950 px-3 py-2 text-xs text-slate-200 shadow-xl">
|
<div className="rounded-lg border border-slate-600 bg-slate-950 px-3 py-2 text-xs text-slate-200 shadow-xl">
|
||||||
<div className="mb-1 font-medium text-slate-100">{formatLocal(i.interval_start)}</div>
|
<div className="mb-1 font-medium text-slate-100">{formatLocal(i.interval_start)}</div>
|
||||||
@@ -398,6 +401,8 @@ function PlanTooltip({
|
|||||||
Cena nákup: {buy != null ? `${buy.toFixed(3)} Kč/kWh` : '—'} · prodej:{' '}
|
Cena nákup: {buy != null ? `${buy.toFixed(3)} Kč/kWh` : '—'} · prodej:{' '}
|
||||||
{sell != null ? `${sell.toFixed(3)} Kč/kWh` : '—'}
|
{sell != null ? `${sell.toFixed(3)} Kč/kWh` : '—'}
|
||||||
</div>
|
</div>
|
||||||
|
<div>FVE (A / předpověď): {fveDisplay}</div>
|
||||||
|
<div>SoC cíl: {soc != null && !Number.isNaN(Number(soc)) ? `${Number(soc).toFixed(1)} %` : '—'}</div>
|
||||||
<div>Baterie: {i.battery_setpoint_w ?? '—'} W</div>
|
<div>Baterie: {i.battery_setpoint_w ?? '—'} W</div>
|
||||||
<div>Síť: {i.grid_setpoint_w ?? '—'} W</div>
|
<div>Síť: {i.grid_setpoint_w ?? '—'} W</div>
|
||||||
<div>TČ: {i.heat_pump_enabled ? 'zapnuto' : 'vypnuto'}</div>
|
<div>TČ: {i.heat_pump_enabled ? 'zapnuto' : 'vypnuto'}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user