Skip to content
firepick1 (localhost) edited this page Oct 24, 2015 · 17 revisions

Prerequisites

You must have:

  • git
  • A Linux operating system

Installation

Open up a console window (your home directory is fine).

cd ~
git clone https://github.com/firepick1/firenodejs
cd firenodejs
scripts/install.sh

Play

Launch the nodejs web server:

node js/server.js

Open up a browser to see the firenodejs web page. Here we assume that you have installed on a Raspberry Pi:

The firenodejs server automatically maintains a model of the FireStep controller state that you can view quickly:

See Also

FAQ

  • Why port 8080? The standard HTTP port 80 is below 1024 and normally off-limits to normal users. There are many solutions to this problem. The ugliest solution (because root should never run a web server) is to do this:
sudo node js/server.js

Clone this wiki locally