mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-14 01:25:38 -05:00
Add power display widget
This commit is contained in:
25
Display/src/app/components/power/power.component.html
Normal file
25
Display/src/app/components/power/power.component.html
Normal file
@@ -0,0 +1,25 @@
|
||||
<div class="power-current">
|
||||
<div *ngIf="latestStatus === null">
|
||||
Loading...
|
||||
</div>
|
||||
<div *ngIf="latestStatus !== null">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="power-current-header">
|
||||
Generation
|
||||
</td>
|
||||
<td>
|
||||
{{ latestStatus.Generation < 0 ? 0 : latestStatus.Generation }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="power-current-header">
|
||||
Consumption
|
||||
</td>
|
||||
<td>
|
||||
{{ latestStatus.Consumption < 0 ? 0 : latestStatus.Consumption }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user