{"id":15917533,"url":"https://github.com/takuya/php-lmsensors-wrapper","last_synced_at":"2025-08-02T11:06:26.284Z","repository":{"id":57064689,"uuid":"458440840","full_name":"takuya/php-lmsensors-wrapper","owner":"takuya","description":"lmsensors cpu temperature to json ","archived":false,"fork":false,"pushed_at":"2022-02-12T08:58:03.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-02T17:37:11.298Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/takuya.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}},"created_at":"2022-02-12T06:28:25.000Z","updated_at":"2022-02-12T06:31:47.000Z","dependencies_parsed_at":"2022-08-24T07:50:27.553Z","dependency_job_id":null,"html_url":"https://github.com/takuya/php-lmsensors-wrapper","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/takuya/php-lmsensors-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-lmsensors-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-lmsensors-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-lmsensors-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-lmsensors-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takuya","download_url":"https://codeload.github.com/takuya/php-lmsensors-wrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-lmsensors-wrapper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268378749,"owners_count":24240896,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"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":[],"created_at":"2024-10-06T18:11:17.355Z","updated_at":"2025-08-02T11:06:26.238Z","avatar_url":"https://github.com/takuya.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-lmsensors-wrapper\nlm-sensors cpu temperature to json \n\ncommand result \n```text\nacpitz-acpi-0\nAdapter: ACPI interface\ntemp1:        +33.0°C  (crit = +100.0°C)\n\ncoretemp-isa-0000\nAdapter: ISA adapter\nPackage id 0:  +34.0°C  (high = +105.0°C, crit = +105.0°C)\nCore 0:        +33.0°C  (high = +105.0°C, crit = +105.0°C)\nCore 2:        +34.0°C  (high = +105.0°C, crit = +105.0°C)\n```\nthis package will convert result to json \n```json\n[\n    {\n        \"Name\": \"acpitz-acpi-0\",\n        \"Adapter\": \" ACPI interface\",\n        \"Temperature\": {\n            \"temp1\": \"+33.0°C  (crit = +100.0°C)\"\n        }\n    },\n    {\n        \"Name\": \"coretemp-isa-0000\",\n        \"Adapter\": \" ISA adapter\",\n        \"Temperature\": {\n            \"Package id 0\": \"+34.0°C  (high = +105.0°C, crit = +105.0°C)\",\n            \"Core 0\": \"+33.0°C  (high = +105.0°C, crit = +105.0°C)\",\n            \"Core 2\": \"+34.0°C  (high = +105.0°C, crit = +105.0°C)\"\n        }\n    }\n]\n```\n\n## Install\nvia packagist\n```\ncomposre require takuya/php-lmsensors-wrapper\n```\nvia git\n```\nrepo=git@github.com:takuya/php-lmsensors-wrapper.git\ncomposer config repositories.takuya/php-lmsensors-wrapper vcs $repo\ncomposer require takuya/php-lmsensors-wrapper\n```\n## Example 01\n```php\n$obj = new Sensors();\n$obj-\u003eexecute('ssh 192.168.1.1 -- sensors');\n$json = $obj-\u003etoJson();\n```\n## Example 02\n```php\n$obj = new Sensors();\n$ret = `ssh 192.168.1.1 -- sensors`\n$obj-\u003esetResult($ret);\n$json = $obj-\u003etoJson();\n```\n\n## requirements\n```\nsudo apt install lm-sensors\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya%2Fphp-lmsensors-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakuya%2Fphp-lmsensors-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya%2Fphp-lmsensors-wrapper/lists"}