File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import {
36
36
UpdateNotification ,
37
37
ProgressNotification ,
38
38
LocatorNotification ,
39
+ OverTemperatureNotification ,
39
40
} from "./TacComponents" ;
40
41
41
42
function Navigation ( ) {
@@ -156,6 +157,7 @@ function Notifications() {
156
157
< >
157
158
< ConnectionNotification />
158
159
< RebootNotification />
160
+ < OverTemperatureNotification />
159
161
< ProgressNotification />
160
162
< UpdateNotification />
161
163
< LocatorNotification />
Original file line number Diff line number Diff line change @@ -503,3 +503,20 @@ export function IOBusFaultNotification() {
503
503
</ Alert >
504
504
) ;
505
505
}
506
+
507
+ export function OverTemperatureNotification ( ) {
508
+ const warning = useMqttSubscription < string > ( "/v1/tac/temperatures/warning" ) ;
509
+
510
+ return (
511
+ < Alert
512
+ statusIconAriaLabel = "Warning"
513
+ type = "warning"
514
+ visible = { warning !== null && warning !== "Okay" }
515
+ header = "Your LXA TAC is overheating"
516
+ >
517
+ The LXA TAC's temperature is{ " " }
518
+ { warning === "SocCritical" ? "critical" : "high" } . Provide better airflow
519
+ and check for overloads!
520
+ </ Alert >
521
+ ) ;
522
+ }
You can’t perform that action at this time.
0 commit comments