User Tools

Site Tools


informatica:linux:node-red

https://programarfacil.com/blog/raspberry-pi/introduccion-node-red-raspberry-pi/

Raspberry:

Como usuario normal:

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

Activamos servicio y reiniciamos:

sudo systemctl enable nodered.service

Ya tiene levantado el servicio:

uth@raspberrypi:~ $ netstat -putan| grep LISTEN
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -                   
tcp        0      0 0.0.0.0:1880            0.0.0.0:*               LISTEN      -                   
tcp6       0      0 :::22                   :::*                    LISTEN      -   

Entramos en la URL, por ejemplo http://192.168.1.201:1880 e instalamos “node-red-contrib-google-home-notify”. Seleccionamos Manage pallette

Lo buscamos e instalamos:

Reiniciamos la raspi. Ahora al entrar nos aparece en ouput el nodo de google:

Buscamos la IP de nuestro Google home

nmap -sP 192.168.1.0/24| grep -B2 "(Google)"

Nmap scan report for Google-Home-Mini.home (192.168.1.63)
Host is up (0.092s latency).
MAC Address: 7C:D9:5C:18:4A:5A (Google)

Editamos el nodo y le ponemos la IP

informatica/linux/node-red.txt · Last modified: 2022/06/09 17:04 by jose