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
+4-11Lines changed: 4 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,8 @@ layout: default
3
3
title: Running on Raspberry Pi
4
4
---
5
5
6
-
Node-RED comes preinstalled on the full Raspbian SD card image that can be downloaded from [RaspberryPi.org](https://www.raspberrypi.org/downloads/raspbian/).
7
-
8
-
While usable, this uses an older version of Node.js and it is recommended to upgrade to the latest using the bash command below.
6
+
From June 2018 Node-RED can be installed from the Pi Menu - Preferences - 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 can be upgraded either by using `sudo apt-get upgrade` or using the script below.
7
+
Once the script below has been run then you upgrade by re-running the script.
9
8
10
9
### Install / Upgrade
11
10
@@ -50,14 +49,6 @@ The script will perform the following steps
50
49
- add menu shortcut and icon
51
50
- add systemd script and set user
52
51
- if on a Pi add a CPU temperature -> IoT example
53
-
- update the local update script
54
-
55
-
As of Node-RED version 0.14.x a version of the upgrade script is pre-installed and will do a full upgrade to the latest Node.js LTS and latest release version of Node-RED. However it will be out of date and may need to be run twice.
56
-
To use this method, run the following command as your normal user (typically `pi`):
57
-
58
-
update-nodejs-and-nodered
59
-
60
-
**Note** - If the serialport nodes do not appear when you restart, please re-run the update command. If the update command does not run or is not found then use the bash command from above.
61
52
62
53
**Caveat emptor** - The script has only been tested on installs with a small variety
63
54
of the possible extra nodes. The script tries to rebuild any nodes with native
@@ -73,10 +64,12 @@ To see the list of nodes you had installed:
73
64
cd ~/.node-red
74
65
npm ls --depth=0
75
66
67
+
76
68
#### Swapping SD Cards
77
69
78
70
Different versions of Raspberry Pi use different Arm processors. The Node.js binary is different for Arm6 and Arm7. Swapping SD cards from Arm6 to Arm7, for example Pi Zero to Pi 3, is OK. Swapping the other way will not work, unless you uninstall Node.js and then re-run the upgrade script to install the appropriate version of Node.js.
0 commit comments