Add power display widget

This commit is contained in:
2019-10-15 18:10:55 -04:00
parent fe1a66a655
commit 2ee6cb2b4a
9 changed files with 132 additions and 8 deletions

View 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>