{"id":18606645,"url":"https://github.com/brendanashworth/libsmc","last_synced_at":"2025-11-02T14:30:31.784Z","repository":{"id":66204229,"uuid":"94148623","full_name":"brendanashworth/libsmc","owner":"brendanashworth","description":"libsmc is a node.js package that retrieves info from the Apple System Management Controller API","archived":false,"fork":false,"pushed_at":"2018-01-21T05:13:45.000Z","size":26,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T22:37:11.644Z","etag":null,"topics":["apple","fan","libsmc","smc","temperature"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brendanashworth.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":"2017-06-12T23:12:17.000Z","updated_at":"2017-06-12T23:19:00.000Z","dependencies_parsed_at":"2023-02-21T03:16:23.233Z","dependency_job_id":null,"html_url":"https://github.com/brendanashworth/libsmc","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"777131126a8b043efb3a0d167788840292d5fd65"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brendanashworth%2Flibsmc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brendanashworth%2Flibsmc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brendanashworth%2Flibsmc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brendanashworth%2Flibsmc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brendanashworth","download_url":"https://codeload.github.com/brendanashworth/libsmc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239394891,"owners_count":19631177,"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":["apple","fan","libsmc","smc","temperature"],"created_at":"2024-11-07T02:26:32.733Z","updated_at":"2025-11-02T14:30:31.748Z","avatar_url":"https://github.com/brendanashworth.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libsmc\n\n[![Build Status](https://travis-ci.org/brendanashworth/libsmc.svg?branch=master)](https://travis-ci.org/brendanashworth/libsmc)\n[![NPM version](https://badge.fury.io/js/libsmc.svg)](http://badge.fury.io/js/libsmc)\n\n\u003e libsmc is a node.js binding to [libsmc](https://github.com/beltex/libsmc).\nIt retrieves info from the Apple System Management Controller API. The SMC\nmanages temperature and power within the machine.\n\n## API\n\n### `smc.isBatteryPowered()`\nChecks whether or not the machine is running on battery power. Returns a\n`bool` value.\n\n```javascript\nvar smc = require('libsmc');\n\nvar usingBattery = smc.isBatteryPowered();\n// =\u003e false\n```\n\n### `smc.isOpticalDiskDriveFull()`\nChecks whether or not the optical disk drive (ODD) of the machine has a disk\nin it. Returns a `bool` value.\n\n```javascript\nvar smc = require('libsmc');\n\nvar hasDisk = smc.isOpticalDiskDriveFull();\n// =\u003e true\n```\n\n### `smc.getNumberOfFans()`\nGets the number of fans a machine has. Returns an `int` value.\n\n```javascript\nvar smc = require('libsmc');\n\nvar number = smc.getNumberOfFans();\n// =\u003e 2\n```\n\n### `smc.getFan(number)`\nGets the information related to a specific fan. `number` is a positive integer\nunique to that fan, starting at 0. Returns an object of format\n`{ name, speed }`, where `name` is the given name from the machine, and `speed`\nis the RPM (rotations per minute) of the fan at that point in time.\n\n```javascript\nvar smc = require('libsmc');\n\nvar fan = smc.getFan(0);\n// =\u003e { name: 'ExhaustZ', speed: 2176 }\n```\n\n## License\nMIT license. beltex's libsmc is [licensed separately](./deps/libsmc/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrendanashworth%2Flibsmc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrendanashworth%2Flibsmc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrendanashworth%2Flibsmc/lists"}