{"id":15172768,"url":"https://github.com/wkmyws/fan-rs","last_synced_at":"2026-01-25T12:31:36.074Z","repository":{"id":214299857,"uuid":"732299531","full_name":"wkmyws/fan-rs","owner":"wkmyws","description":"An I2C Fan Speed Control Program for Raspberry Pi","archived":false,"fork":false,"pushed_at":"2024-01-01T09:10:14.000Z","size":385,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-21T04:39:10.641Z","etag":null,"topics":["fan","i2c","musl","raspberry","raspberry-pi-4","raspiberry"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wkmyws.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}},"created_at":"2023-12-16T07:58:37.000Z","updated_at":"2023-12-16T09:10:38.000Z","dependencies_parsed_at":"2024-01-01T10:24:55.760Z","dependency_job_id":"41123dd2-26d2-4c07-bb74-36e6b53cc579","html_url":"https://github.com/wkmyws/fan-rs","commit_stats":null,"previous_names":["wkmyws/fan-rs"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/wkmyws/fan-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wkmyws%2Ffan-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wkmyws%2Ffan-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wkmyws%2Ffan-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wkmyws%2Ffan-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wkmyws","download_url":"https://codeload.github.com/wkmyws/fan-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wkmyws%2Ffan-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28752971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T10:25:12.305Z","status":"ssl_error","status_checked_at":"2026-01-25T10:25:11.933Z","response_time":113,"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":["fan","i2c","musl","raspberry","raspberry-pi-4","raspiberry"],"created_at":"2024-09-27T10:04:18.015Z","updated_at":"2026-01-25T12:31:36.059Z","avatar_url":"https://github.com/wkmyws.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fan-rs\n\n## An I2C Fan Speed Control Program for Raspberry Pi\n\n### Usage\n\n#### One-time Execution\n```bash\n# Set the Fan Speed to 0 (min/stop)\n./fan-rs -s 0\n# Set the Fan Speed to 9 (max)\n./fan-rs -s 9\n# Set the Fan Speed automatically\n./fan-rs -a true\n# Show CPU Temperature\n./fan-rs -t\n# Show Help\n./fan-rs -h\n```\n\n![](README/cmd.png)\n\n#### Persistent Execution\n```bash\n# Enable HTTP service and bind the port to 0.0.0.0:8567\n./fan-rs -l --addr=\"0.0.0.0:8567\"\n# Set the refresh interval for terminal information (unit: milliseconds).\n./fan-rs -l --addr=\"0.0.0.0:8567\" --interval=2000\n```\n\n\u003e This mode allows controlling the fan speed through both terminal keystrokes and HTTP requests.\n\u003e \n\u003e `auto mode` is enabled by default, which automatically adjusts the fan speed based on CPU utilization and temperature until the service is stopped.\n\n![](README/server.png)\n\n### Build\n\n```bash\ncargo build --release --target=aarch64-unknown-linux-musl\n```\n\n### Overall Architecture\n![](README/whole.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwkmyws%2Ffan-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwkmyws%2Ffan-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwkmyws%2Ffan-rs/lists"}