Node-red: verschil tussen versies

Uit Installatie Rocky 9 Webserver
Naar navigatie springen Naar zoeken springen
Geen bewerkingssamenvatting
Geen bewerkingssamenvatting
Regel 1: Regel 1:
[[Hoofdpagina|Menu]]  [[PhpMyAdmin]] [[Mariadb]]
Node-Red
Node-Red



Versie van 22 feb 2024 07:57

Menu PhpMyAdmin Mariadb

Node-Red

Installatie Node-red.

  1. Installatie

bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)


2. aanpassen pasword.


Once logged in,  a password hash needs to be generated by the Node-RED admin tool. A password hash is an encrypted representation of the chosen password. This prevents the storage of passwords as readable text.

This admin tool is already installed on the Moduline controllers. The commands below can be used directly.

Generate new pasword hash:

node-red admin hash-pw

At this point, a new password can be chosen. After –enter– the hash is generated and is shown. Select the hash and copy it to the clipboard or local file on your computer.

Now we’re going to open the Node-RED settings file where the password hash needs to be stored. The settingsfile is a .js file that can be opened and editted by nano (Linux CLI editor)

Open the file:

nano ~/.node-red/settings.js

Scroll down (arrow down when using Putty) to adminAuth: {  (see picture)

Replace both hashes for password: and pass: with the hash created during former steps. Ensure that the hash is between the quotes!

Note: If another username is required, username: and user: can also be changed here.

Once the hashes are replaces with the new one, the file can be saved with:


Na installatie voeg ik de volgende modules toe:

node-red-contrib-config

node-red-contrib-modbus

node-red-contrib-knx-ultimate

node-red-contrib-buffer-parser

node-red-dashboard

node-red-node-mysql

node-red-node-pushover

Deze kun je toevoegen via de manage-pallets in node-red.