Skip to content
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

Consider adding diagnostics like RPi cpu monitors to the gateway code #75

Open
thclark opened this issue Jun 28, 2022 · 0 comments
Open

Comments

@thclark
Copy link
Contributor

thclark commented Jun 28, 2022

Feature request

There are some CPU frequency and monitoring scripts on the raspberry pi:

cpu_freq.sh

#!/bin/bash
temp=`head -n 1 /sys/class/thermal/thermal_zone0/temp | xargs -I{} awk "BEGIN {printf \"%.2f\n\", {}/1000}"`
echo $((`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq`/1000)) MHz, $temp degrees

cpu_monitor.sh

while : ; do date; sh cpu_freq.sh; sleep 600; done

Use Case

This will get scrubbed with reinstalls, consider whether that's useful information to have, and if so, add a subprocess to periodically determine (e.g. hourly) and add to results.

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

No branches or pull requests

1 participant