Installing Pi-Cubes Node-RED SDK on the Raspbian/Raspberry Pi

Installing Pi-Cubes Node-RED SDK on the Raspbian/Raspberry Pi

0 Share

Installing Pi-Cubes Node-RED SDK on the Raspbian/Raspberry Pi

To install Node-Red on clean Raspbian installation follow next steps.1. Enable I2C on your Raspberry Pi following instructions on our blog : https://www.cube-controls.com/ ...

To install Pi-Cubes Node-Red  SDK on clean Raspbian installation follow next steps:

1. Enable I2C on your Raspberry Pi following our blog instructions :

https://www.cube-controls.com/blog/how-to-enable-i2c-on-raspberry-pi

2. If Raspberry Pi were  connected to the Internet it would sync time on startup. Only time zone has to be setup correctly using raspi-config tool.

If you would like to use integral Real Time Clock on the Main Pi-Cubes Board follow our blog instructions:

https://www.cube-controls.com/blog/enable-the-pi-cube-main-board-integrated-rtc-on-raspberry-piraspbian

3. If you would  like to use power backup and safe shutdown function of Pi-Cubes Main board follow these instructions:

https://github.com/Cube-Controls/picubes-shutdown

4. Follow instructions to disable shell on the serial port:

https://www.cube-controls.com/blog/2015/11/2/disable-serial-port-terminal-output-on-raspbian

5. Install Node.js :

curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash –
sudo apt-get install -y build-essential python-dev python-rpi.gpio nodejs

Check Node.js version :

node -v

It should be at least v.0.12.7

6. Install Node-RED:

sudo npm install -g –unsafe-perm node-red

Start Node-RED to test it:

node-red-pi –max-old-space-size=128

Press Ctrl+C to cancel Node-RED.

Check Node-RED web documentations for more detailed instructions:

http://nodered.org/docs/hardware/raspberrypi.html

7. Install Pi-Cubes Node-RED SDK

Go to node-red local folder,  under /home/pi folder:

cd ~/.node-red

Use npm to install Pi-Cubes SDK.

npm install node-red-picubes

You may start Node-RED to confirm that Pi-Cubes Nodes actually show up.

nr

 

Press Ctrl+C to cancel Node-RED.

8. Follow up instructions how to enable Node-RED to start automatically on the boot up:

http://nodered.org/docs/getting-started/running.html#starting-node-red-on-boot

9. Reboot Raspberry Pi

sudo reboot

Node-RED should be running and accessible on http://{the-raspberry-ip-address}:1880/

Leave a reply

Your email address will not be published.

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>