added some danger messages for out of bound values on the home screen

This commit is contained in:
Ben 2023-11-14 22:06:13 -05:00
parent fc0e49e5d5
commit 2985db4dd0
2 changed files with 10 additions and 3 deletions

View File

@ -68,11 +68,12 @@
<table *ngIf="info$ | async as info; else loading">
<tr>
<td>Power Consumption:</td>
<td>{{info.power | number: '1.2-2'}} <small>W</small></td>
<td>{{info.power | number: '1.2-2'}} <small>W</small> </td>
</tr>
<tr>
<td>Input Voltage:</td>
<td>{{info.voltage | number: '0.0-0'}} <small>mV</small></td>
<td>{{info.voltage | number: '0.0-0'}} <small>mV</small> <span class="danger"
*ngIf="info.voltage < 4950">&nbsp; Danger: Low voltage</span></td>
</tr>
<tr>
<td>Input Current:</td>
@ -96,7 +97,8 @@
</tr>
<tr>
<td>Chip Temperature:</td>
<td>{{info.temp}} <small>C</small></td>
<td>{{info.temp}} <small>C</small> <span class="danger" *ngIf="info.temp >= 70">&nbsp; Danger:
High Temperature</span></td>
</tr>
</table>

View File

@ -48,4 +48,9 @@ table>tr>td {
line-break: anywhere;
}
}
.danger {
color: red;
font-weight: bold;
}