{"id":16648707,"url":"https://github.com/clach04/sbc_temperature_monitor","last_synced_at":"2026-04-19T23:34:59.601Z","repository":{"id":138515160,"uuid":"239175091","full_name":"clach04/sbc_temperature_monitor","owner":"clach04","description":"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","archived":false,"fork":false,"pushed_at":"2024-10-26T17:09:43.000Z","size":54,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-28T13:27:43.406Z","etag":null,"topics":["cpu","graph","plot","plotter","raspberrypi","sbc","temperature"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clach04.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-08T17:38:44.000Z","updated_at":"2024-10-26T17:09:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"1e52eaa3-4e54-4679-95c9-c7e7551c6fb0","html_url":"https://github.com/clach04/sbc_temperature_monitor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/clach04/sbc_temperature_monitor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clach04%2Fsbc_temperature_monitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clach04%2Fsbc_temperature_monitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clach04%2Fsbc_temperature_monitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clach04%2Fsbc_temperature_monitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clach04","download_url":"https://codeload.github.com/clach04/sbc_temperature_monitor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clach04%2Fsbc_temperature_monitor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32026780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpu","graph","plot","plotter","raspberrypi","sbc","temperature"],"created_at":"2024-10-12T09:05:18.244Z","updated_at":"2026-04-19T23:34:59.581Z","avatar_url":"https://github.com/clach04.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sbc_temperature_monitor\n\ncollection of temperature monitoring and stress notes/tools for SBCs like (Linux) ARM based Raspberry Pi and Rock64\n\n## Tools\n\n  * speedtemp.sh - (bash) shell script for monitoring CPU speed and temperature (on Raspberry Pi also includes throttling information). Relies on; vcgencmd, perl, awk, sed\n  * 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)\n      * TODO log throttling information is available\n      * TODO allow monitor only mode without stress\n      * TODO alow alternative stress tools\n      * 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\n  * 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/)\n      * convert_stressberry.py - can be used to convert to/from https://github.com/nschloe/stressberry format data files - also see https://github.com/clach04/stressberry/tree/rock64 and https://github.com/clach04/rock64_vcgencmd\n\n\n## Running\n\nInstalling, stress_plot.py needs pygal. Known to work with Python 3.12.5 and pygal-3.0.5:\n\n    pip install pygal\n\nRunning:\n\n    ./stressmon.py pi3_py2.json  # needs vcgencmd (i.e. Raspbian for Raspberry Pi)\n\n    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\n\n    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\n\n\n    ./stress_plot.py | gzip \u003e demo.svgz\n\n## Useful resources\n\n  * https://github.com/ThomasKaiser/sbc-bench\n  * ThomasKaiser raspimon https://github.com/bamarni/pi64/issues/4#issuecomment-315829737 (his repo with this script is no longer available)\n      * https://forum.openmediavault.org/index.php/Thread/18991-New-approach-for-Raspberry-Pi-OMV-images/?postID=190184#post190184\n  * https://core-electronics.com.au/tutorials/stress-testing-your-raspberry-pi.html\n  * https://www.raspberrypi.org/blog/thermal-testing-raspberry-pi-4/\n  * https://raspberrypi.stackexchange.com/questions/3371/how-can-i-stress-test-my-raspberry-pi\n  * https://www.reddit.com/r/RASPBERRY_PI_PROJECTS/comments/8eo6om/cpu_stress_testing_on_a_rpi_temperature_data/\n  * Raspberry Pi 1 http://www.roylongbottom.org.uk/Raspberry%20Pi%20Stress%20Tests.htm\n      * Roy Longbottom's Raspberry Pi 2 and 3 Stress Tests http://www.roylongbottom.org.uk/Raspberry%20Pi%202%20Stress%20Tests.htm\n  * https://harlemsquirrel.github.io/shell/2019/01/05/monitoring-raspberry-pi-power-and-thermal-issues.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclach04%2Fsbc_temperature_monitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclach04%2Fsbc_temperature_monitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclach04%2Fsbc_temperature_monitor/lists"}