{"id":31165373,"url":"https://github.com/deseven/ugreen_leds_ethutild","last_synced_at":"2026-05-14T23:10:30.336Z","repository":{"id":313218958,"uuid":"1050502575","full_name":"deseven/ugreen_leds_ethutild","owner":"deseven","description":"Service to display ethernet utilization on your UGREEN DXP2800 NAS","archived":false,"fork":false,"pushed_at":"2025-09-04T16:59:47.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-13T18:23:00.723Z","etag":null,"topics":["led","linux","nas","ugreen"],"latest_commit_sha":null,"homepage":"","language":"C++","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/deseven.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-04T14:19:06.000Z","updated_at":"2025-09-04T16:59:50.000Z","dependencies_parsed_at":"2025-09-04T17:27:04.801Z","dependency_job_id":"38e2aa24-03f3-4306-bfbb-0b18fc5f4dc1","html_url":"https://github.com/deseven/ugreen_leds_ethutild","commit_stats":null,"previous_names":["deseven/ugreen_leds_ethutild"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deseven/ugreen_leds_ethutild","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deseven%2Fugreen_leds_ethutild","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deseven%2Fugreen_leds_ethutild/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deseven%2Fugreen_leds_ethutild/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deseven%2Fugreen_leds_ethutild/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deseven","download_url":"https://codeload.github.com/deseven/ugreen_leds_ethutild/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deseven%2Fugreen_leds_ethutild/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33046846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["led","linux","nas","ugreen"],"created_at":"2025-09-19T08:49:06.095Z","updated_at":"2026-05-14T23:10:30.330Z","avatar_url":"https://github.com/deseven.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UGREEN LEDs Ethernet Utilization Daemon (ugreen_leds_ethutild)\n\nA C++ service that monitors network bandwidth usage and controls UGREEN DXP2800 NAS LEDs based on ethernet traffic levels. Thanks to [miskcoo/ugreen_leds_controller](https://github.com/miskcoo/ugreen_leds_controller) for showing how it could be done.\n\n\n## LED Behavior\n\nThe service controls LEDs based on bandwidth utilization percentage:\n\n**Power LED**: Always on and white when the service is running (indicates service status)\n\n**Utilization LEDs** (based on bandwidth usage):\n\n| Usage Range | Utilization LEDs Active | Color | Description |\n|-------------|-------------------------|-------|-------------|\n| 0-low_threshold% | None | Off | Low utilization |\n| low_threshold-medium_threshold% | NetDev | Green | Moderate utilization |\n| medium_threshold-high_threshold% | NetDev + Disk1 | Blue | High utilization |\n| high_threshold%+ | NetDev + Disk1 + Disk2 | Red | Very high utilization |\n\n*Default thresholds: 10%, 40%, 80% (configurable via config file)*\n\n\n## Requirements\n\n- Linux system with I2C support\n- Compatible UGREEN NAS hardware\n- Root privileges (for I2C access)\n- Make build system\n- C++17 compatible compiler (g++)\n- i2c-dev kernel module loaded\n\n\n## Installation\n\n```bash\ngit clone https://github.com/deseven/ugreen_leds_ethutild.git\ncd ugreen_leds_ethutild\nmake\nsudo make install\n```\n\nThe `install` target will automatically:\n- Install the binary to `/usr/local/bin/`\n- Install the configuration file to `/etc/ugreen_leds_ethutild.conf` (preserving existing config)\n- Install the systemd service file\n- Enable and start the service\n\n\n## Configuration\n\nThe service looks for configuration files in this order:\n1. `./ugreen_leds_ethutild.conf` (current directory)\n2. `/etc/ugreen_leds_ethutild.conf` (system-wide)\n\nCurrent config options:\n\n**Network settings:**\n- **interface**: Network interface to monitor (e.g., `eth0`, `enp2s0`)\n- **capacity_mbps**: Total link capacity in Mbps (full duplex)\n  - 1Gbps full duplex = 2000 Mbps\n  - 10Gbps full duplex = 20000 Mbps\n  - you can also define total bandwidth as max throughput of your disks\n\n**LED settings:**\n- **brightness**: LED brightness (0-255)\n- **low_threshold**: Percentage threshold for low utilization (default: 10)\n- **medium_threshold**: Percentage threshold for medium utilization (default: 40)\n- **high_threshold**: Percentage threshold for high utilization (default: 80)\n\n**Logging settings:**\n- **level**: Log level (`debug`, `info`, `warning`, `error`)\n\n\n## Usage\n\n```bash\n# Testing mode (cycles through all LED states)\nsudo ugreen_leds_ethutild --test\n\n# Service control\nsudo systemctl start/stop/status ugreen_leds_ethutild\n\n# View logs\nsudo journalctl -fu ugreen_leds_ethutild\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeseven%2Fugreen_leds_ethutild","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeseven%2Fugreen_leds_ethutild","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeseven%2Fugreen_leds_ethutild/lists"}