{"id":19027454,"url":"https://github.com/hensm/node-ddcci","last_synced_at":"2025-04-23T14:46:09.667Z","repository":{"id":56042281,"uuid":"136662379","full_name":"hensm/node-ddcci","owner":"hensm","description":"NodeJS DDC/CI library","archived":false,"fork":false,"pushed_at":"2020-11-29T11:28:57.000Z","size":29,"stargazers_count":64,"open_issues_count":3,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T00:56:59.784Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hensm.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}},"created_at":"2018-06-08T20:17:37.000Z","updated_at":"2025-03-04T03:35:51.000Z","dependencies_parsed_at":"2022-08-15T12:00:59.957Z","dependency_job_id":null,"html_url":"https://github.com/hensm/node-ddcci","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hensm%2Fnode-ddcci","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hensm%2Fnode-ddcci/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hensm%2Fnode-ddcci/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hensm%2Fnode-ddcci/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hensm","download_url":"https://codeload.github.com/hensm/node-ddcci/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250456605,"owners_count":21433721,"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-08T21:08:16.925Z","updated_at":"2025-04-23T14:46:09.642Z","avatar_url":"https://github.com/hensm.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-ddcci\n\n## Installation\n\nnode-ddcci is currently only supported on Windows.\n\n````bash\nnpm install @hensm/ddcci\n````\n\n## Usage\n\n````js\nconst ddcci = require(\"@hensm/ddcci\");\n\nfor (const monitor of ddcci.getMonitorList()) {\n    console.log(`${monitor} current brightness: ${ddcci.getBrightness(monitor)}`);\n    ddcci.setBrightness(monitor, 25);\n}\n````\n\n## Docs\n\n* ### `getMonitorList()`\n  Gets a list of the current connected monitors.\n  * #### Return value\n    An array of `String` containing the monitor IDs.\n\n* ### `getBrightness(monitorId)`\n  Queries a monitor's brightness level.\n  * #### Parameters\n    * **`monitorId`**  \n      `String`. ID of monitor for which to query the brightness.\n  * #### Return value\n    An `integer`, typically between 0-100, representing the current brightness.\n    \n* ### `getMaxBrightness(monitorId)`\n  Queries a monitor's maximum brightness level.\n  * #### Parameters\n    * **`monitorId`**  \n      `String`. ID of monitor for which to query the brightness.\n  * #### Return value\n    An `integer`, typically between 0-100, representing the maximum brightness.\n\n* ### `setBrightness(monitorId, level)`\n  Sets a monitor's brightness level.\n  * #### Parameters\n    * **`monitorId`**  \n      `String`. ID of monitor for which to set the brightness.\n    * **`level`**  \n      `integer`. Between 0-100 representing the new brightness level.\n\n* ### `getContrast(monitorId)`\n  Queries a monitor's contrast level.\n  * #### Parameters\n    * **`monitorId`**  \n      `String`. ID of monitor for which to query the contrast.\n  * #### Return value\n    An `integer`, typically between 0-100, representing the current contrast.\n    \n* ### `getMaxContrast(monitorId)`\n  Queries a monitor's maximum contrast level.\n  * #### Parameters\n    * **`monitorId`**  \n      `String`. ID of monitor for which to query the contrast.\n  * #### Return value\n    An `integer`, typically between 0-100, representing the maximum contrast.\n\n* ### `setContrast(monitorId, level)`\n  Sets a monitor's contrast level.\n  * #### Parameters\n    * **`monitorId`**  \n      `String`. ID of monitor for which to set the contrast.\n    * **`level`**  \n      `integer`. Between 0-100 representing the new contrast level.\n\n* ### `_getVCP(monitorId, vcpCode)`\n  Queries a monitor for a VCP code value.\n  * #### Parameters\n    * **`monitorId`**  \n      `String`. ID of monitor for which to query the VCP feature.\n    * **`vcpCode`**  \n      `integer`. VCP code to query\n  * #### Return value\n    An `array` of two `integer` values in the format of `[currentValue, maxValue]`.\n\n* ### `_setVCP(monitorId, vcpCode, value)`\n  Sets the value of a VCP code for a monitor.\n  * #### Parameters\n    * **`monitorId`**  \n      `String`. ID of monitor for which to set the VCP feature.\n    * **`vcpCode`**  \n      `integer`. VCP code to set.\n    * **`value`**  \n      `integer`. Value of the VCP code.\n\n* ### `_refresh()`\n  Refreshes the monitor list.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhensm%2Fnode-ddcci","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhensm%2Fnode-ddcci","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhensm%2Fnode-ddcci/lists"}