Getting Started - dtex/NodebotUI GitHub Wiki

Before you begin, make sure you have node.js version 0.10.0 or greater. Don't know? Just type node -v from the command line. You should see something like v0.10.12 in response. If you don't see that or you see a version less than 0.10.0 follow the installation or upgrade instructions at the node.js site.

Get the module - Create a directory for your project. In your console, navigate to that directory and type npm install nodebotui. The console will spit out a bunch of stuff and eventually end with something like:

[email protected] node_modules/nodebotui
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

Assemble the Hardware - Plug in your Arduino, wire up an LED (long lead in pin 13, short lead in GND)

Launch the Demo Server - $ node ./node_modules/nodebotui/demoserver

Open the LED Sample - $ open ./node_modules/nodebotui/eg/led.html

After a few moments of wild blinking the board will be initialized. You can now use the checkbox on the web page you just opened to turn the LED on and off. Note: The HTML file can be opened directly from the filesystem, a web server or wherever you want. It really doesn't matter. What's important is that the nodebotui-client.js file is served by the nodebotui.js server.

####Next: Explore the Sample HTML