Skip to content

Device Status #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Apr 25, 2025
Merged

Device Status #74

merged 9 commits into from
Apr 25, 2025

Conversation

larsll
Copy link
Contributor

@larsll larsll commented Apr 20, 2025

This pull request introduces support for a new "Device Status" feature, enhancing the application's ability to monitor system metrics and display alerts. Key changes include updates to the useSupportedApis hook, the addition of a new DeviceStatusPanel component, and integration of the panel into the HomePage layout.

Enhancements to API support:

  • Added isDeviceStatusSupported to the SupportedApisState interface and the useSupportedApisProvider hook, enabling the application to check if the "Device Status" API is supported. (website/src/common/hooks/use-supported-apis.ts) [1] [2] [3] [4] [5]

New Device Status feature:

  • Implemented DeviceStatusPanel component to display system metrics (CPU, memory, disk usage, etc.) with real-time updates and alerts for critical thresholds. (website/src/components/device-status-panel.tsx)

Integration into HomePage:

  • Updated HomePage to include the DeviceStatusPanel in a split panel layout, conditionally rendered based on isDeviceStatusSupported. Added local notification handling for alerts from the panel. (website/src/pages/home.tsx) [1] [2] [3] [4] [5]

Example:
image

@larsll larsll requested a review from MarkitectRoss April 20, 2025 14:42
@larsll
Copy link
Contributor Author

larsll commented Apr 20, 2025

To test one also needs the experimental version 2.1.7.6 of the aws-deepracer-core; get it by uncommenting the second line in /etc/apt/sources.list.d/aws_deepracer-community.list and do apt update && apt upgrade.

@larsll larsll mentioned this pull request Apr 22, 2025
@MarkitectRoss MarkitectRoss merged commit 7c7ff29 into main Apr 25, 2025
2 checks passed
@MarkitectRoss MarkitectRoss deleted the feature/device-status branch April 25, 2025 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants