Search the Community
Showing results for tags 'node.js'.
-
Hello all, A developer recently created a node.js project to control the MSI Steelseries Keyboards with javascript. Since it uses node.js it should be cross OS (windows, mac, linux). The github repo is here: https://github.com/wearefractal/msi-keyboard I installed and am successfully controlling my keyboard in Linux Mint 15 64bit Requirements: Node.js npm Here are the instructions: (Linux or mac, windows is similar) Make a folder called msi-klm (or similar) now use a text editor to create two files inside the folder. package.json and server.js in package.json put this minimal code: { "name": "led-manager", "dependencies": { "msi-keyboard":"*" } } Save the file. Open the folder in a terminal and run this command: npm install That will install the needed module. Edit server.js Put this (minimal) code: var keyboard = require('msi-keyboard'); keyboard.color('left',{color: 'red', intensity: 'med'}); keyboard.color('middle',{color: 'blue', intensity: 'med'}); keyboard.color('right',{color: 'green', intensity: 'med'}); Save the file. Refer to https://github.com/wearefractal/msi-keyboard for the many other options. Use the same terminal to run: sudo node server.js (on linux or *nix. Open the terminal as Admin in windows) Your keyboard should be now lit up! Cheers
- 15 replies
-
- 2
-
-
- javascript
- linux
-
(and 2 more)
Tagged with: