You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/hardware/raspberrypi.md
+19-17Lines changed: 19 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -5,27 +5,27 @@ title: Running on Raspberry Pi
5
5
6
6
The recommended way to install Node-RED on Pi is to use our script below, however Node-RED can be installed from the Recommended Software application installed on the Raspbian SD card image that can be downloaded from [RaspberryPi.org](https://www.raspberrypi.org/downloads/raspbian/). If installed in this manner it is recommended to upgrade by using the script below.
7
7
8
-
If you decide not to use the script, and stick with apt to install Node-RED, then you **must** manually install npm and then upgrade it to the latest level by `sudo apt-get install npm && sudo npm i -g npm` before installing any extra nodes.
9
-
10
8
You can upgrade Node-RED by re-running the script.
11
9
12
10
### Install / Upgrade
13
11
14
-
If you have a version of Raspbian, or other **Debian** based install, such as **Ubuntu**, or **Diet-Pi**, that doesn't have Node-RED
15
-
already installed, you can install or upgrade using the Node-RED upgrade script command
12
+
If you have a version of Raspbian, or other **Debian** based install, such as **Ubuntu**, or **Diet-Pi**,
13
+
that doesn't have Node-RED already installed, you can install or upgrade using the Node-RED upgrade script command
On really minimal Debian installs you may want to `sudo apt-get install build-essential` before running the script so that the serialport builds and installs OK. This is optional.
17
+
On really minimal Debian installs you may need to run `sudo apt-get install build-essential` before running the script
18
+
so that the serialport builds and installs OK. This is optional.
20
19
21
20
#### Script Description
22
21
23
22
Nodes can be now be managed via the built in palette manager. However the default Pi install pre-loads some
24
23
nodes globally and these cannot then be easily managed and updated. The intention of the script is to...
25
24
26
-
- upgrade an existing user to LTS 8.x Node.js and latest Node-RED
25
+
- upgrade an existing user to LTS 8.x or 10.x Node.js and latest Node-RED
27
26
- migrate any existing globally installed nodes into the users ~/.node-red space so they can be managed via the palette manager
28
27
- optionally (re)install the extra nodes that are pre-installed on a full Raspbian Pi image
28
+
- Note: it DOES NOT update any user installed existing nodes. This must be done manually by the user (see below).
29
29
30
30
While aimed at the Pi user the script will also run on any Debian based operating system, such as Ubuntu, and so can
31
31
be used on other hardware platforms, although it has not been widely tested.
@@ -40,7 +40,7 @@ The script will perform the following steps
40
40
- remove any node-red binaries from /usr/bin and /usr/local/bin
41
41
- remove any node-red modules from /usr/lib/node_modules and /usr/local/lib/node_modules
42
42
- detect if Node.js was installed from Node.js package or Debian
43
-
- if not v8 or newer - remove as appropriate and install latest v8 LTS (not using apt).
43
+
- if not v8 or newer - remove as appropriate and install latest v8 or v10 LTS (not using apt).
44
44
- clean out npm cache and .node-gyp cache to remove any previous versions of code
45
45
- install Node-RED latest version
46
46
- re-install under the user account any nodes that had previously been installed globally
@@ -100,13 +100,13 @@ If you want Node-RED to run when the Pi boots up you can use
100
100
and likewise `sudo systemctl disable nodered.service` to disable autostart on boot.
101
101
102
102
103
-
#### Adding nodes to preloaded version
103
+
#### Adding nodes to preloaded Raspbian version
104
104
105
-
To add additional nodes you must first install the `npm` tool, as it is not included
106
-
in the default Raspbian installation. This is not necessary if you have upgraded to Node.js 8.x.
105
+
If you **have not upgraded** the pre-installed version to the latest version using the script above, then in
106
+
order o add additional nodes you must first install the `npm` tool, as it is not included
107
+
in the default Raspbian installation. This is not necessary if you have upgraded using the script above.
107
108
108
-
The following commands install `npm` and then upgrade
109
-
it to the latest version.
109
+
The following commands install `npm` and then upgrade it to the latest version.
110
110
111
111
sudo apt-get install npm
112
112
sudo npm install -g npm
@@ -124,7 +124,8 @@ You can then start [using the editor](#using-the-editor).
124
124
125
125
## Notes
126
126
127
-
Debian/Raspbian Wheezy is now beyond "End of Life", and is no longer support, and this documentation is now aimed at Jessie as a minimum.
127
+
Debian/Raspbian Wheezy is now beyond "End of Life", and is no longer support, and this documentation is now aimed
128
+
at Jessie as a minimum.
128
129
129
130
### Accessing GPIO
130
131
@@ -256,13 +257,13 @@ One way to find the IP address of the Pi is to use the command
256
257
Then browse to `http://{the-ip-address-returned}:1880/`
257
258
258
259
<divclass="doc-callout">
259
-
<em>Note:</em> the default browser included in Raspbian, Epiphany,
260
-
has some quirks that mean certain keyboard short-cuts do not work within the
261
-
Node-RED editor. We <b>strongly</b> recommend installing the Firefox-ESR browser instead:
260
+
<em>Note:</em> the default browser included in Raspbian, used to be Epiphany, and
261
+
has some quirks that meant certain keyboard short-cuts do not work within the
262
+
Node-RED editor. We <b>strongly</b> recommend installing the Firefox-ESR or Chromium browser instead:
262
263
<pre>
263
264
sudo apt-get install firefox-esr
264
265
</pre>
265
-
More recent build include Chromium - which also works fine but can be rather slow on a Pi1 or Zero.
266
+
More recent build include Chromium y default - which also works fine but can be rather slow on a Pi1 or Zero.
266
267
</div>
267
268
268
269
You can then start creating your [first flow](../getting-started/first-flow).
@@ -286,6 +287,7 @@ You then need to stop and restart Node-RED to load the new nodes, and then refre
286
287
node-red-stop
287
288
node-red-start
288
289
290
+
289
291
## Interacting with the Pi hardware
290
292
291
293
There are several ways of interacting with a Raspberry Pi using Node-RED.
0 commit comments