Skip to content

Latest commit

 

History

History
104 lines (67 loc) · 3.3 KB

README.md

File metadata and controls

104 lines (67 loc) · 3.3 KB

BINGO Telescope datalogger

weather, vibration and tilt angle data logger for telescopic bingo antenna

dashboard

Node-RED flows

  • MQTT_in flow

mqtt in

  • MQTT_out flow

mqtt out

  • Database flow

database

  • Console flow

console

Installing Node-RED v2.x with Node.js v14.x on ubuntu

Instaling dependecies

First of all, you need to install Node.js. A simple way to do that is to get an installer script using cURL.

If you don't have cURL yet, install it with:

sudo snap install curl

Then, download the script with:

curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -

and install Node.js:

sudo apt-get install -y nodejs

Instaling Node-red

Install the Node-red with npm:

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

Running

To start up the Node-red, just open a new terminal and run:

node-red

get the IP shown in the prompt and open up with a web browser.

New Node-RED project

Instead of all Node-red flows using the same directory, you can stores flows and new modules in a separate folder by using user directories.

This could be done by editing the settings file, but a easier way is running the command bellow on the folder that you want to create a new project:

node-red -u project1

This causes node-red to create a folder called project1 and copy a settings.js file into it. In addition any nodes we install are placed into this folder under a node_modules folder.

In addiction, you can have access to multiple projects at the same time using a different port:

node-red -u project1 -p 1881

Reopen a project

When you create a new Node-red project anywhere else the default location, you have to go back to the project folder and start Node-red from there using the same command used to create the project.

Reference