I recently installed Node-Red and got the Bean Nodes extension for my Mac. Although it was a straightforward process, it was a bit time consuming. For this reason I have created a bash script that you can run in the terminal! If you feel anyway uncomfortable about using a script from a website or just want to know what each command in the bash script does, there is also the 8 step method in this same article. In this short blog, I will list all the steps needed to get started with Node-Red and Bean Nodes that will be used in future projects on this blog!
Installing Node.js via package manager. Note: The packages on this page are maintained and supported by their respective packagers, not the Node.js core team. Please report any issues you encounter to the package maintainer. If it turns out your issue is a bug in Node.js itself. New: vertical view option; new: open a new window in the app with ctrl+click(mac: command+click) #3 add: Listen Port property in settings; update: Node-RED 1.0.0 - 1.0.2. Alternatives to Node-RED for Windows, Mac, Linux, Web, Self-Hosted and more. Filter by license to discover only free or Open Source alternatives. This list contains a total of 10 apps similar to Node-RED. List updated: 10/7/2019 11:39:00 PM.
Note: All commands below are meant to be typed into the terminal, after each line click enter to execute the command.
Three Step Method
1. Download the script from my Github account here. Be aware! This script will install HomeBrew, an amazing tool for getting libraries, applications, etc.
2. Press Command + Spacebar and type 'terminal', then open the terminal. Once in terminal, navigate to where you placed the file called 'node_red_bean_install.sh' (if you do not know how to navigate through the terminal take a second to read this).
3. Once in that directory type
./node_red_bean_install.sh into the terminal and execute the command (hit enter). **NOTE: if this command gives you an error like this '-bash: ./node_red_bean_install.sh: Permission denied', type command chmod +x node_red_bean_install.sh into terminal and then retry this ./node_red_bean_install.sh again. It should now be installing and working hard! Just follow the prompts for admin passwords; when you are done, restart your computer.
That's it! When your computer opens, start up a terminal window and type
node-red . Now go to your favourite browser and go to http://localhost:1880. You should see the Bean Nodes in the left side menu (as shown in picture below).
8 Step Method
1. If you have not already done so, install HomeBrew. It is like
sudo apt-get but for Mac. It allows you to install apps and packages fairly easily, and the best part is it will also install all of the dependencies as well! I have used to it many times for my schooling as well as my own projects. To install HomeBrew open up a terminal window (hit Command + Spacebar and type terminal) and copy and paste this:
Once you have pasted it into the terminal click enter. Rufus download for mac os.
2. Now that you have HomeBrew, type
brew install npm into the terminal and hit enter. This will install the Node Package Manager that we will use for downloading the next components.
3. Type:
sudo npm install -g --unsafe-perm node-red into the terminal, this will install Node-Red. You can now run Node-Red on your computer by typing node-red into the terminal (to kill the process afterward press Ctrl + C).
4. The Bean Nodes depends on a library called Noble, type
npm install noble into the terminal to download this library.
5. Finally, type
mkdir -p ~/.node-red/node_modules into the terminal, followed by typing npm install --prefix ~/.node-red node-red-contrib-bean into the terminal.
6. Now restart your computer.
7. Once your computer has opened, go to the terminal and type in node-red. Go to your favourite browser and go to http://localhost:1880
8. Now you should be able to see the Node-Red user interface; on the left side panel you should be able to see the LightBlue Bean elements such as acceleration, read/write scratch, etc. You have completed this tutorial!
I hope you enjoyed this quick tutorial on installing Node-Red with Bean Nodes. If you would like a tutorial on using Node-Red components I suggest Node-Red's first flow tutorial or watching this video on learning Node-Red in under 5 mins. and of course Punch Through's documentation on Bean Nodes. If you have any questions, comments or future suggestions please leave them in the comment section below!
Read more
CodeMac Node VersionBean Node-Red Quick Installer
Run this in the terminal to download Node-Red with Light Blue Bean Nodes on Mac OSX
'>
Nicholas D'Aquila
I am a Mechatronics Engineer. I enjoy learning new software/hardware platforms and then blogging about my experience.
![]()
Greetings readers, today we thought to share the Node-RED installation steps which can help you in setting it up in 10 minutes. It’s one of the most trending tools for Internet of Things applications and is being widely used to monitor the communication between the IoT devices. Software developers or the IT enthusiasts can easily download it and follow the Node-RED installation steps given here.
Built with node js support, Node-RED is a leading GUI application and platform independent interface engineered by IBM for linking the Internet of Things. Though, IBM has already contributed it to the Open Source community. IBM presented an open invitation to the developers of the world to add their customization into Node-RED.
What is Node-RED?
Node-RED as its name reflects was developed using Node.js framework to bring out a light-weight and browser oriented user interface. It comes with a highly interoperable design which allows it to link both physical and digital type of things together.
For using Node-RED one doesn’t need to be a seasoned programmer. Software engineers with less coding expertise can also contribute to the growth of this field. Most of the programming tasks in Node-RED, you can do visually using the pre-defined function nodes. You can perform drag and drop operation on these nodes and place them on canvas to create the desired workflow. Also, it supports new functionality with the help of JavaScript files.
Node-RED doesn’t entirely replace the need for writing the code but significantly helps in reducing the development efforts. It enables the developers to focus on creating earth-shattering applications rather than duplicating efforts by writing the same code over and over again.
Node-RED supports event-based mechanism which makes it very easy to control the interconnection between multiple hardware. It is portable with all leading web browsers to allow easy formation of the functional workflows related to Internet of Things. The light-weight nature of this application enables it to run on smaller devices like the BeagleBone and Raspberry Pi.
Let’s start the Node-RED installation.
Now we’ll demonstrate the steps to get started with Node-RED. We’ll be using the Ubuntu 14.04 server for Node-RED installation. There are a few main configuration steps which you need to perform before it ‘s ready to run on your setup.
1- Setup Node.js before Node-RED installation.1.1- Installing Node.js.
The very first item to install is <Node.js>. It’s a JavaScript based ultra light-weight development platform which is getting popular day-by-day.
Node-RED works with Node.js version 0.10.x and 0.12.x. Hence, we’ll download and install the latest <Node.js> version. So, open up a terminal window. Press CTRL+T to launch the terminal or select the terminal option from the desktop menu.
Note: Make sure you should log in as a root user, or you will use <sudo> if running as a standard user.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |