node-libcec 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +22 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -88,13 +88,19 @@ new CECAdapter({
88
88
  - `open(port?, timeout?)` - Connect to adapter (auto-detects if no port)
89
89
  - `close()` - Disconnect
90
90
  - `pingAdapter()` - Check if adapter is responsive
91
+ - `getAdapterVendorId()` - Get USB vendor ID
92
+ - `getAdapterProductId()` - Get USB product ID
93
+ - `getLibInfo()` - Get libcec version info
91
94
 
92
95
  #### Device Discovery
93
96
 
94
97
  - `getActiveDevices()` - Get array of active logical addresses
95
98
  - `pollDevice(address)` - Check if device exists
96
99
  - `isActiveDevice(address)` - Check if device is active
100
+ - `isActiveDeviceType(type)` - Check if device type is active
97
101
  - `getActiveSource()` - Get current active source address
102
+ - `isActiveSource(address)` - Check if device is active source
103
+ - `isLibCECActiveSource()` - Check if this adapter is active source
98
104
 
99
105
  #### Device Information
100
106
 
@@ -130,6 +136,20 @@ new CECAdapter({
130
136
  - `sendKeyRelease(destination, wait?)` - Send key release
131
137
  - `setOSDString(address, duration, message)` - Display message on device
132
138
 
139
+ #### Address Configuration
140
+
141
+ - `setLogicalAddress(address?)` - Set logical address
142
+ - `setPhysicalAddress(address)` - Set physical address
143
+ - `setHDMIPort(baseDevice, port)` - Set HDMI port
144
+ - `getLogicalAddresses()` - Get controlled logical addresses
145
+
146
+ #### Configuration
147
+
148
+ - `getCurrentConfiguration()` - Get current config object
149
+ - `setConfiguration(config)` - Update configuration
150
+ - `rescanActiveDevices()` - Rescan CEC bus for devices
151
+ - `disableCallbacks()` - Disable event callbacks
152
+
133
153
  ### Events
134
154
 
135
155
  ```javascript
@@ -151,6 +171,8 @@ const {
151
171
  Opcode, // STANDBY, ACTIVE_SOURCE, USER_CONTROL_PRESSED, etc.
152
172
  UserControlCode, // SELECT, UP, DOWN, PLAY, PAUSE, etc.
153
173
  LogLevel, // ERROR, WARNING, NOTICE, TRAFFIC, DEBUG
174
+ DisplayControl, // DISPLAY_FOR_DEFAULT_TIME, DISPLAY_UNTIL_CLEARED, etc.
175
+ Version, // V1_2, V1_3, V1_4, V2_0, etc.
154
176
  AlertType // SERVICE_DEVICE, CONNECTION_LOST, etc.
155
177
  } = require('node-libcec');
156
178
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-libcec",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Node.js bindings for libcec - control CEC devices over HDMI",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {