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
{{:informatica:linux:2022-06-09_18-17.png|}}
Lo buscamos e instalamos:
{{:informatica:linux:2022-06-09_18-19.png|}}
Reiniciamos la raspi. Ahora al entrar nos aparece en ouput el nodo de google:
{{:informatica:linux:2022-06-09_18-26.png|}}
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