Prelude:
Rasperry Pi is a very powerful and popular ARM board, and can be installed with Raspian (Debian 8 ) Jessie very easily with NOOBS. However the node.js version included is version 0.10.x, which is rather old, and I think the main reason is be compatible with node-red. This will cause trouble if you want to install johnny-five in it.
based on excellent tutorial on pubnub , npmjs and jwaldron github, I list out the workflow on how to do it.
on Arduino:
install ConfigurableFirmata ( see PubNub tutorial ) is pretty straightforward
on Raspberry Pi:
install node.js from nodejs.org
npm (node package manager ) is already installed
check version of npm:
Install johnny-five on raspberry pi:
referring to npmjs
git clone the source code and install:
To be continues....
Rasperry Pi is a very powerful and popular ARM board, and can be installed with Raspian (Debian 8 ) Jessie very easily with NOOBS. However the node.js version included is version 0.10.x, which is rather old, and I think the main reason is be compatible with node-red. This will cause trouble if you want to install johnny-five in it.
based on excellent tutorial on pubnub , npmjs and jwaldron github, I list out the workflow on how to do it.
on Arduino:
install ConfigurableFirmata ( see PubNub tutorial ) is pretty straightforward
on Raspberry Pi:
install node.js from nodejs.org
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
npm (node package manager ) is already installed
check version of npm:
Ubuntu and Debian
Install Node.js >= 0.10.x
sudo apt-get install nodejs
Install the nodejs-legacy package
sudo apt-get install nodejs-legacy ( eg for node-red)
Install build-essential or a suitable alternative
sudo apt-get install build-essential
Install johnny-five on raspberry pi:
referring to npmjs
git clone the source code and install:
try to run the blink.js ( list in PubNub):git clone git://github.com/rwaldron/johnny-five.git && cd johnny-fivenpm installinstall johnny-five:cd ..npm install johnny-five
To be continues....
留言
張貼留言