You can learn more about node.js (the platform) here: http://nodejs.org" onclick="window.open(this.href);return false; Go through the framework installation process and validate it is working properly.
Once you've got node.js running, gaining access to your drone is as simple as installing the nodecopter.js contributed libraries -- documented here: http://nodecopter.com/hack" onclick="window.open(this.href);return false;
Let's say you want to take over LED animation (a recent topic du jour here), it's literally as simple as:
Code: Select all
client.animateLeds(animation, hz, duration) Performs a pre-programmed led sequence at given hz frequency and duration (in sec!). animation can be one of the following: ['blinkGreenRed', 'blinkGreen', 'blinkRed', 'blinkOrange', 'snakeGreenRed', 'fire', 'standard', 'red', 'green', 'redSnake', 'blank', 'rightMissile', 'leftMissile', 'doubleMissile', 'frontLeftGreenOthersRed', 'frontRightGreenOthersRed', 'rearRightGreenOthersRed', 'rearLeftGreenOthersRed', 'leftGreenRightRed', 'leftRedRightGreen', 'blinkStandard'] Example: client.animateLeds('blinkRed', 5, 2)
Feel free to start your own thread with questions, or add to this one. While I don't use node.js or nodecopter.js as my daily driver, I've spent enough time with it to answer most questions.