From 54ad9f7aa9ebbc277b352fe10f7388c8a5053c32 Mon Sep 17 00:00:00 2001 From: Frank Delporte Date: Mon, 15 Apr 2024 17:29:09 +0200 Subject: [PATCH] Extra board info --- .../com/pi4j/boardinfoservice/views/SystemInfoView.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/pi4j/boardinfoservice/views/SystemInfoView.java b/src/main/java/com/pi4j/boardinfoservice/views/SystemInfoView.java index bec5537..8dfed4c 100644 --- a/src/main/java/com/pi4j/boardinfoservice/views/SystemInfoView.java +++ b/src/main/java/com/pi4j/boardinfoservice/views/SystemInfoView.java @@ -12,6 +12,7 @@ import java.util.ArrayList; import java.util.List; +import java.util.stream.Collectors; @PageTitle("System Information") @Route(value = "system-information", layout = BaseLayout.class) @@ -49,8 +50,11 @@ public void onAttach(AttachEvent event) { UI.getCurrent().access(() -> { var board = systemInfoService.getDetectedBoard(); infoList.add(new InfoLine("Board", "Name", board.getBoardModel().getName())); - infoList.add(new InfoLine("Board", "Type", board.getBoardModel().getBoardType())); + infoList.add(new InfoLine("Board", "Description", board.getBoardModel().getLabel())); infoList.add(new InfoLine("Board", "Model", board.getBoardModel().getModel().getLabel())); + infoList.add(new InfoLine("Board", "SOC", board.getBoardModel().getSoc())); + infoList.add(new InfoLine("Board", "CPU", board.getBoardModel().getCpu())); + infoList.add(new InfoLine("Board", "Codes", board.getBoardModel().getBoardCodes().stream().collect(Collectors.joining(", ")))); infoList.add(new InfoLine("Operating System", "Name", board.getOperatingSystem().getName())); infoList.add(new InfoLine("Operating System", "Architecture", board.getOperatingSystem().getArchitecture())); infoList.add(new InfoLine("Operating System", "Version", board.getOperatingSystem().getVersion()));