Skip to content

Instantly share code, notes, and snippets.

@dceejay
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dceejay/250502b143efcdc57fed to your computer and use it in GitHub Desktop.
Save dceejay/250502b143efcdc57fed to your computer and use it in GitHub Desktop.
Pi Node-RED install (and run) script
#! /bin/bash
### This is for Pi Version 1 ONLY
### Once it completes Node-RED should be ready to run...
### To do this all in one command... copy and paste just the following command
### curl -sL https://gist.githubusercontent.com/dceejay/250502b143efcdc57fed/raw/ | bash -
cd ~
sudo apt-get update && sudo apt-get install -y build-essential python-dev python-rpi.gpio
wget http://node-arm.herokuapp.com/node_0.10.36_armhf.deb
sudo dpkg -i node_0.10.36_armhf.deb
node -v
echo " - previous line should have returned v0.10.36"
echo "The next step may take 3-5 minutes and may produce warnings - don't worry"
npm cache clear
sudo npm install -g --log-level error git+https://github.com/node-red/node-red.git
/usr/lib/node_modules/node-red/nodes/core/hardware/nrgpio ver 0
echo " - previous line should have returned 0.5.11 or better"
echo " "
echo " Node-RED should now be ready to run."
echo " In this window type"
echo " node-red-pi --max-old-space-size=128"
echo " and then also point a browser at this address"
echo " http://"$(echo $(hostname -I))":1880/"
echo " "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment