{"id":29070665,"url":"https://github.com/mgmerino/cpu-ruststats","last_synced_at":"2026-01-31T09:32:47.704Z","repository":{"id":298954731,"uuid":"1001661427","full_name":"mgmerino/cpu-ruststats","owner":"mgmerino","description":"A set of Rust tools for monitoring CPU usage and system temperatures","archived":false,"fork":false,"pushed_at":"2025-06-16T20:34:04.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-27T12:43:32.483Z","etag":null,"topics":["cpu-monitoring","i3blocks","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mgmerino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-06-13T19:17:03.000Z","updated_at":"2025-06-15T17:30:16.000Z","dependencies_parsed_at":"2025-06-13T20:41:31.181Z","dependency_job_id":null,"html_url":"https://github.com/mgmerino/cpu-ruststats","commit_stats":null,"previous_names":["mgmerino/cpu-ruststats"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mgmerino/cpu-ruststats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgmerino%2Fcpu-ruststats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgmerino%2Fcpu-ruststats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgmerino%2Fcpu-ruststats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgmerino%2Fcpu-ruststats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgmerino","download_url":"https://codeload.github.com/mgmerino/cpu-ruststats/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgmerino%2Fcpu-ruststats/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28936191,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T08:53:31.997Z","status":"ssl_error","status_checked_at":"2026-01-31T08:51:38.521Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-monitoring","i3blocks","rust"],"created_at":"2025-06-27T12:32:08.102Z","updated_at":"2026-01-31T09:32:47.699Z","avatar_url":"https://github.com/mgmerino.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 CPU Stats Monitor\n![Example of how this little binaries look like](example.png)\n\nA couple of Rust binaries for monitoring CPU usage and system temperatures, designed to be used with i3blocks/i3status.\nDisclaimer: this has been vibe coded. I have zero experience with Rust, don't be surprised by outrageous constructions and ideas.\n\n## ✨ Features\n\n- **CPU Monitor**: Displays real-time CPU usage with an ASCII sparkline 📊\n- **Temperature Monitor**: Shows the average temperature of system sensors with an ASCII sparkline 🌡️\n- Support for warning and critical thresholds ⚠️\n- Data history stored in `/tmp` 📁\n- Integration with i3blocks/i3status 🔄\n\n## 🛠️ Requirements\n\n- Rust (latest stable version)\n- `sensors` (for temperature monitoring)\n- i3blocks or i3status (optional)\n\n## 📦 Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/mgmerino/cpu-ruststats.git\ncd cpu-ruststats\n```\n\n2. Build the project:\n```bash\ncargo build --release\n```\n\n## 🚀 Usage\n\n### CPU Monitor\n\n```bash\n./target/release/cpu [options]\n```\n\nOptions:\n- `-w, --warning \u003cWARN\u003e`: Warning threshold in percentage (default: 70.0) ⚠️\n- `-c, --critical \u003cCRIT\u003e`: Critical threshold in percentage (default: 90.0) 🚨\n- `-n, --count \u003cN\u003e`: Sparkline length (default: 20) 📊\n\n### Temperature Monitor\n\n```bash\n./target/release/temperature [options]\n```\n\nOptions:\n- `-w, --warning \u003cWARN\u003e`: Warning threshold in degrees (default: 70.0) ⚠️\n- `-c, --critical \u003cCRIT\u003e`: Critical threshold in degrees (default: 90.0) 🚨\n- `--chip \u003cCHIP\u003e`: Specify the sensor chip 🔧\n- `-n, --count \u003cN\u003e`: Sparkline length (default: 5) 📊\n\n## 🖥️ i3blocks Configuration\n\nExample configuration for `~/.config/i3blocks/config`:\n\n```ini\n[cpu]\ncommand=/path/to/cpu -n 20\ninterval=1\n\n[temperature]\ncommand=/path/to/temperature --chip coretemp-isa-0000 -n 10\ninterval=10\n```\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the LICENSE file for details. 🎉\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgmerino%2Fcpu-ruststats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgmerino%2Fcpu-ruststats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgmerino%2Fcpu-ruststats/lists"}