Bonjour,
Voici comment avoir un terminal dans vos flux pour tester, deboguer bref faire plein de truc sans avoir besoin de lancer un terminal ssh !
Allez dans « Gérer la palette »
Installez le node « node-red-contrib-xterm »
Importez le flux suivant
Flux Terminal
[{"id":"fc2b30d0e318a12d","type":"tab","label":"Terminal","disabled":false,"info":"","env":[]},{"id":"800e772a.b109c8","type":"xterm_in","z":"fc2b30d0e318a12d","command":"ls -ltr","addEnter":true,"confirmation":false,"name":"Affiche le listing des répertoires","x":240,"y":130,"wires":[]},{"id":"5a5f258.ad842dc","type":"xterm_in","z":"fc2b30d0e318a12d","command":"df -h","addEnter":true,"confirmation":false,"name":"Affiche l'utilisation du disque","x":230,"y":190,"wires":[]},{"id":"8ae725e0.57d5a8","type":"xterm_in","z":"fc2b30d0e318a12d","command":"ifconfig","addEnter":true,"confirmation":false,"name":"Affiche la configuration réseau","x":230,"y":250,"wires":[]},{"id":"598184d3.be34ec","type":"xterm_in","z":"fc2b30d0e318a12d","command":"Iwlist wlan0 scan","addEnter":true,"confirmation":false,"name":"Affiche les reseaux wifi","x":210,"y":310,"wires":[]},{"id":"236fb7f7.0affc8","type":"xterm_in","z":"fc2b30d0e318a12d","command":"reboot","addEnter":true,"confirmation":true,"name":"Reboot","x":170,"y":370,"wires":[]},{"id":"9dba7376.805f1","type":"xterm_in","z":"fc2b30d0e318a12d","command":"shutdown -h now","addEnter":true,"confirmation":true,"name":"Shutdown","x":180,"y":430,"wires":[]},{"id":"5a5741.492658c","type":"xterm_in","z":"fc2b30d0e318a12d","command":"pwd","addEnter":true,"confirmation":false,"name":"Affiche le répertoire courant","x":230,"y":70,"wires":[]},{"id":"ee8feb7c.0cf0d8","type":"xterm_in","z":"fc2b30d0e318a12d","command":"pwd\npwd\npwd","addEnter":false,"confirmation":false,"name":"Example de script","x":200,"y":490,"wires":[]}]
Dans la barre à droite
Cliquez sur l’icone à droite
puis sur l’icone
Voila le terminal est démarré
Vous pouvez tester les commandes déjà ecrites
ou en créer d’autres
ou taper directement les commandes dans le terminal !
Voila ça peut-être sympa plutôt que de devoir lancer un ssh non ?