{"id":13688074,"url":"https://github.com/zopieux/qnapctl","last_synced_at":"2025-10-09T06:15:01.842Z","repository":{"id":146498135,"uuid":"210969241","full_name":"zopieux/qnapctl","owner":"zopieux","description":"Control QNAP TS-453 Pro hardware LEDs, LCD and react to button pushes.","archived":false,"fork":false,"pushed_at":"2020-01-11T18:28:18.000Z","size":44,"stargazers_count":14,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T10:09:53.071Z","etag":null,"topics":["cpp","cpp17","dbus","qnap","qnap-nas","qt","qt5","systemd"],"latest_commit_sha":null,"homepage":"","language":"C++","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/zopieux.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}},"created_at":"2019-09-26T01:01:52.000Z","updated_at":"2024-12-28T02:22:58.000Z","dependencies_parsed_at":"2024-01-14T15:24:06.944Z","dependency_job_id":"508f68bd-8b12-40c3-80ae-26db0c9002c4","html_url":"https://github.com/zopieux/qnapctl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zopieux/qnapctl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zopieux%2Fqnapctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zopieux%2Fqnapctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zopieux%2Fqnapctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zopieux%2Fqnapctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zopieux","download_url":"https://codeload.github.com/zopieux/qnapctl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zopieux%2Fqnapctl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261528619,"owners_count":23172748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cpp","cpp17","dbus","qnap","qnap-nas","qt","qt5","systemd"],"created_at":"2024-08-02T15:01:06.150Z","updated_at":"2025-10-09T06:14:56.801Z","avatar_url":"https://github.com/zopieux.png","language":"C++","funding_links":[],"categories":["cpp"],"sub_categories":[],"readme":"# qnapctl\n\nA tiny system daemon to control and react to QNAP hardware, including:\n\n* the panel LCD screen (toggle backlight and change displayed text)\n* the panel LCD buttons, usually for navigating the LCD display\n* the *STATUS* and *USB* LEDs\n* the *USB COPY* button\n* the disk *ERROR* LEDs\n\nAlso includes a demo program that makes use of the API exposed by the daemon.\n\n## Overview\n\nBeware: this was developped and tested exclusively on the QNAP device I own, model TS-453 Pro. This code most likely won't work on different hardware.\n\nTS-453 Pro features:\n\n* an A125 LCD panel with a 2×16 char display, backlight and two control buttons\n* a 4-disk bay, with activity and error LEDs for each of the 4 bays\n* some extra LEDs: dual-color status (green \u0026 red), USB activity and network activity (this one sadly cannot be controlled)\n\n### qnapd\n\n`qnapd` is a C++ (Qt) daemon that:\n\n* reads from internal serial device `/dev/ttyS1` to intercept LCD button presses (*ENTER* and *SELECT*)\n* writes to internal serial device `/dev/ttyS1` to toggle LCD backlight and change LCD text\n* polls a raw I/O port to intercept *USB COPY* button presses\n* writes to a few raw I/O ports to toggle the various front panel LEDs\n\nThe daemon receives orders and broadcasts events using the system DBus. The DBus API is self-documented in the [XML interface](dbus_interface.xml.in).\n\n### qnapctl\n\n`qnapctl` is a C++ (Qt) program that communicates with `qnapd` to provide a few basic features:\n\n* blinks the green status LED faster or slower depending on load average\n* blinks the red status LED when there are failed systemd services\n* displays a few basic info on the LCD display eg. NIC IP addresses, using LCD buttons to navigate the various info\n\n## License\n\nMIT, see `LICENSE`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzopieux%2Fqnapctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzopieux%2Fqnapctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzopieux%2Fqnapctl/lists"}