GithubHelp home page GithubHelp logo

clach04 / sbc_temperature_monitor Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 53 KB

collection of temperature monitoring and stress notes/tools for SBCs like (Linux) ARM based Raspberry Pi and Rock64. Log and graph/plot temperatures over time

License: Apache License 2.0

Shell 17.38% Python 82.62%
cpu graph plot plotter raspberrypi sbc temperature

sbc_temperature_monitor's Introduction

sbc_temperature_monitor

collection of temperature monitoring and stress notes/tools for SBCs like (Linux) ARM based Raspberry Pi and Rock64

Tools

  • speedtemp.sh - (bash) shell script for monitoring CPU speed and temperature (on Raspberry Pi also includes throttling information). Relies on; vcgencmd, perl, awk, sed
  • stressmon.py - Python 2 or 3 with no external module dependecies to run stress and monitor temperature usage - essentially a portable/light weight version of stressberry-plot. Requires stress, and will use vcgencmd if available. Generates json log files suitable for stress_plot.py (below). Runs for 10 mins by default (configurable)
    • TODO log throttling information is available
    • TODO allow monitor only mode without stress
    • TODO alow alternative stress tools
    • TODO Update output with more status information (e.g. currently idling/testing, along with time-progress (to help determine finish time) to avoid scrolling back
  • stress_plot.py - python (2 or 3) script for plotting multiple json files that contain temperature readings. Generates an interactive SVG (using https://github.com/Kozea/pygal/)

Running

stress_plot.py needs pygal:

pip install pygal


./stressmon.py pi3_py2.json  # needs vcgencmd (i.e. Raspbian for Raspberry Pi)

python stressmon.py  -t /sys/class/thermal/thermal_zone0/temp -f /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq --cooldown 0 -n 'rock64_armbian_pi_box_lid_fan_on' rock64_armbian_pi_box_lid_fan_on.json  # should work for more devices/processors under Linux with default CPU info, e.g. armbian, DietPi, x86 Ubuntu

env PYTHONIOENCODING=utf-8 python stressmon.py  -t /sys/class/thermal/thermal_zone0/temp -f /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq --cooldown 0 -n 'rock64_armbian_pi_box_lid_fan_on' rock64_armbian_pi_box_lid_fan_on.json


./stress_plot.py | gzip > demo.svgz

Useful resources

sbc_temperature_monitor's People

Contributors

clach04 avatar

Watchers

 avatar James Cloos avatar  avatar Rupert Schöttler avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.