Skip to content

Commit ba8a5c2

Browse files
committed
web: setup: add wizard step to turn update polling on/off
Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
1 parent acd9080 commit ba8a5c2

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

web/src/Setup.tsx

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import Spinner from "@cloudscape-design/components/spinner";
2727
import Wizard from "@cloudscape-design/components/wizard";
2828

2929
import { LabgridService, LabgridConfig } from "./SettingsLabgrid";
30+
import { MqttToggle } from "./MqttComponents";
3031
import { ConfigEditor } from "./ConfigEditor";
3132
import { useMqttState } from "./mqtt";
3233

@@ -130,6 +131,38 @@ export default function Setup() {
130131
</Container>
131132
),
132133
},
134+
{
135+
title: "Configure Software Updates",
136+
description:
137+
"Choose when and how to check for new software releases",
138+
content: (
139+
<Container>
140+
<Box variant="p">
141+
The LXA TAC uses <Link href="https://rauc.io/">RAUC</Link>{" "}
142+
to manage and install software updates. A RAUC software
143+
update updates all of the installed software components at
144+
once and falls back to the previous version if something
145+
went wrong.
146+
</Box>
147+
<Box variant="p">
148+
We continually improve the software experience on the TAC
149+
and ship new features, so make sure to stay up to date
150+
with new releases.
151+
</Box>
152+
<Box variant="p">
153+
Would you like the TAC to periodically connect to the
154+
update server and check for software updates? You will be
155+
notified about updates via the LXA TACs display and the
156+
web interface and can start the update process from there.
157+
</Box>
158+
<Box variant="p" padding="s">
159+
<MqttToggle topic="/v1/tac/update/enable_polling">
160+
Periodically check for updates
161+
</MqttToggle>
162+
</Box>
163+
</Container>
164+
),
165+
},
133166
{
134167
title: "Add SSH keys",
135168
description:

0 commit comments

Comments
 (0)