Node-RED examples

If you like it, share it

It is possible that some node that are used here is not present in default Node-RED installation.
For install it use MANAGE PALETTE, see below.

È possibile che alcuni nodi utilizzati qui non siano presenti nell’installazione predefinita di Node-RED.
Per installarli, utilizzare MANAGE PALETTE, vedere immagine sotto.

EXAMPLEs


Define Variable and Increment it – Definizione di una Variabile e suo Incremento

Below there are some peculiarity of this example.

Di seguito alcune particolarità di questo esempio.

To download the example click here.

Per scaricare l’esempio clicca qui.

Click here to go on top of the examples – Clicca qui per andare in cima agli esempi


Sunrise/Sunset light control and repeat events cyclically. – Controllo luci Alba/Tramonto e ripetizione degli eventi ciclicamente.

Below there are some peculiarity of this example.

Di seguito alcune particolarità di questo esempio.

For this example we use we eztimer an the configurations are show below.

Per questo esempio utilizziamo eztimer e le configurazioni sono mostrate di seguito.

Note that the:
RESEND INTERVAL is set to 2m (minutes).
Repeating the last state cyclically is convenient when you have ZigBee objects that are at the edge of radio range and that rain, snow, or fog could temporarily take out of service.
By repeating the command cyclically, you ensure that it reaches its destination sooner or later.

Nota che:
RESEND INTERVAL è impostato su 2m (minuti)
La ripetizione ciclica dell’ultimo stato è comoda quando si hanno oggetti ZigBee che sono al limite della portata radio e che pioggia o neve o nebbia potrebbero momentaneamente portare fuori linea.
Ripetendo ciclicamente il comando si ha la certezza che prima o poi il comando arrivi a destinazione.

Here the sunset trigger is started before -30 min and is send out 1.Here the sunrise trigger is started after 30 min and is send out 0.

Qui l’attivazione dell’alba viene avviata dopo 30 minuti ed è mandato in uscita 0.

Here the sunset trigger is started before -30 min and is send out 1.

Qui l’attivazione del tramonto viene fatto -30 min prima (del tramonto) e inviato 1.

Another interest block is switch, see below the configurations.

Un altro blocco di interesse è lo switch, vedere di seguito le configurazioni.

The other blocks are for put ON or OFF the bulbs.
Below there are only the examples for L2 OFF and ON.
The others are similar.

Gli altri blocchi servono per accendere o spegnere le lampadine.
Di seguito sono riportati solo gli esempi per L2 OFF e ON.
Gli altri sono simili.

Click here to go on top of the examples – Clicca qui per andare in cima agli esempi


Risorse – Resources

  • Spiegazioni base di node-RED sono qui.