{"id":18583413,"url":"https://github.com/epinter/lhwservice","last_synced_at":"2025-05-16T05:08:40.194Z","repository":{"id":146359863,"uuid":"502743562","full_name":"epinter/lhwservice","owner":"epinter","description":"A C++ client library for LibreHardwareService","archived":false,"fork":false,"pushed_at":"2024-04-26T02:45:48.000Z","size":49,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T16:40:01.795Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/epinter.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":"2022-06-12T22:38:56.000Z","updated_at":"2024-04-26T02:45:52.000Z","dependencies_parsed_at":"2024-04-26T03:45:03.839Z","dependency_job_id":null,"html_url":"https://github.com/epinter/lhwservice","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epinter%2Flhwservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epinter%2Flhwservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epinter%2Flhwservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epinter%2Flhwservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/epinter","download_url":"https://codeload.github.com/epinter/lhwservice/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254471061,"owners_count":22076586,"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":[],"created_at":"2024-11-07T00:22:31.806Z","updated_at":"2025-05-16T05:08:40.141Z","avatar_url":"https://github.com/epinter.png","language":"C++","readme":"# LibHardwareService\n## A C++ client library for [LibreHardwareService](https://github.com/epinter/LibreHardwareService)\n\n[![Latest Release](https://img.shields.io/github/release/epinter/lhwservice.svg)](https://github.com/epinter/lhwservice/releases/latest)\n[![Downloads](https://img.shields.io/github/downloads/epinter/lhwservice/total.svg)](https://github.com/epinter/lhwservice/releases/latest)\n[![Release Date](https://img.shields.io/github/release-date/epinter/lhwservice.svg)](https://github.com/epinter/lhwservice/releases/latest)\n[![License](https://img.shields.io/github/license/epinter/lhwservice.svg)](https://github.com/epinter/lhwservice/blob/main/LICENSE)\n\nThis library is used to retrieve data from LibreHardwareService.\n\n## Runtime Requirements\n\n- [LibreHardwareService](https://github.com/epinter/LibreHardwareService)\n- [Visual C++ Redistributable 2022](https://docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist)\n- [CMake](https://cmake.org/)\n- [vcpkg](https://vcpkg.io/en/)\n- [Visual Studio Community 2022](https://visualstudio.microsoft.com/vs/community/)\n\n\n## Building\n\n```\n./cmake/build.ps1\n```\n\n## Usage\n```\n#include \u003clhwservice/HardwareService.h\u003e\n...\n\nint main() {\n    lhws::HardwareService hwService;\n    for (auto \u0026a: hwService.getSmartAttributes(\"Harddisk Name\", \"Storage\")) {\n        std::cout \u003c\u003c a.getName() \u003c\u003c \": \" \u003c\u003c a.getValue() \u003c\u003c std::endl;\n    }\n\n    try {\n        lhws::Sensor a = hardwareService.getSensorByName(\"Sensor Name\", \"Temperature\", \"Hardware Name\");\n        std::cout \u003c\u003c a.getName() \u003c\u003c \": \" \u003c\u003c a.getValue() \u003c\u003c std::endl;\n    } catch (const SensorNotFoundException \u0026e) {\n        std::cerr \u003c\u003c e.what() \u003c\u003c endl;\n    }\n\n    try {\n        lhws::Sensor a = hardwareService.getSensorById(\"/intelcpu/0/temperature/2\");\n        std::cout \u003c\u003c a.getName() \u003c\u003c \": \" \u003c\u003c a.getValue() \u003c\u003c std::endl;\n    } catch (const SensorNotFoundException \u0026e) {\n        std::cerr \u003c\u003c e.what() \u003c\u003c endl;\n    }\n}\n```\n\nFor sensor types and names, run ShowSensors.exe from LibreHardwareService, or see LibreHardwareMonitor documentation / code.\n\n## License\n\nThis software is licensed under the terms of [Mozilla Public License Version 2.0](https://www.mozilla.org/en-US/MPL/2.0/).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepinter%2Flhwservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepinter%2Flhwservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepinter%2Flhwservice/lists"}