node-ddcci is currently only supported on Windows.
npm install @hensm/ddcciconstddcci=require("@hensm/ddcci");for(constmonitorofddcci.getMonitorList()){console.log(`${monitor} current brightness: ${ddcci.getBrightness(monitor)}`);ddcci.setBrightness(monitor,25);}Gets a list of the current connected monitors.
-
An array of
Stringcontaining the monitor IDs.
-
An array of
Queries a monitor's brightness level.
monitorIdString. ID of monitor for which to query the brightness.
-
An
integer, typically between 0-100, representing the current brightness.
Queries a monitor's maximum brightness level.
monitorIdString. ID of monitor for which to query the brightness.
-
An
integer, typically between 0-100, representing the maximum brightness.
Sets a monitor's brightness level.
monitorIdString. ID of monitor for which to set the brightness.levelinteger. Between 0-100 representing the new brightness level.
Queries a monitor's contrast level.
monitorIdString. ID of monitor for which to query the contrast.
-
An
integer, typically between 0-100, representing the current contrast.
Queries a monitor's maximum contrast level.
monitorIdString. ID of monitor for which to query the contrast.
-
An
integer, typically between 0-100, representing the maximum contrast.
Sets a monitor's contrast level.
monitorIdString. ID of monitor for which to set the contrast.levelinteger. Between 0-100 representing the new contrast level.
Queries a monitor for a VCP code value.
monitorIdString. ID of monitor for which to query the VCP feature.vcpCodeinteger. VCP code to query
-
An
arrayof twointegervalues in the format of[currentValue, maxValue].
Sets the value of a VCP code for a monitor.
monitorIdString. ID of monitor for which to set the VCP feature.vcpCodeinteger. VCP code to set.valueinteger. Value of the VCP code.
Refreshes the monitor list.