Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Extend with sensor info readouts #8

Open
FDelporte opened this issue Jun 26, 2023 · 0 comments
Open

Extend with sensor info readouts #8

FDelporte opened this issue Jun 26, 2023 · 0 comments
Assignees

Comments

@FDelporte
Copy link
Member

    boardVersion.put("board", getCommandOutput("cat /proc/device-tree/model"));
    // https://raspberry-projects.com/pi/command-line/detect-rpi-hardware-version
    boardVersion.put("boardVersionCode", getCommandOutput("cat /proc/cpuinfo | grep 'Revision' | awk '{print $3}'"));
    // https://linuxhint.com/commands-for-hardware-information-raspberry-pi/
    boardVersion.put("temp", getCommandOutput("vcgencmd measure_temp"));
    boardVersion.put("uptimeInfo", getCommandOutput("uptime"));
    // https://linuxhint.com/find-hardware-information-raspberry-pi/
    boardVersion.put("volt", getCommandOutput("vcgencmd measure_volts"));
    // https://www.baeldung.com/linux/total-physical-memory
    boardVersion.put("memory", getCommandOutput("cat /proc/meminfo | head -n 1"));
@FDelporte FDelporte self-assigned this Jun 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant