Wie kann die node-red-admin Konsole auf den Raspberry Pi installiert werden?

Die node-red Admin Konsole kann im Terminal wie folgt installiert werden:
node-red-admin

sudo npm install -g node-red-admin

Ergebnis nach ein paar Minuten:

> [email protected] install /usr/local/lib/node_modules/node-red-admin/node_modules/bcrypt
> node-gyp rebuild

 user "root" does not have permission to access the dev dir "/root/.node-gyp/0.12.6"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/node-red-admin/node_modules/bcrypt/.node-gyp"

make: Entering directory '/usr/local/lib/node_modules/node-red-admin/node_modules/bcrypt/build'
  CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
  SOLINK_MODULE(target) Release/obj.target/bcrypt_lib.node
  COPY Release/bcrypt_lib.node
make: Leaving directory '/usr/local/lib/node_modules/node-red-admin/node_modules/bcrypt/build'
/usr/local/bin/node-red-admin -> /usr/local/lib/node_modules/node-red-admin/node-red-admin.js
[email protected] /usr/local/lib/node_modules/node-red-admin
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected])

Nun lassen wir uns mal alle Befehle der Konsole ausgeben mit:

sudo node-red-admin

Die Hilfedatei wird geliefert:

Usage:
   node-red-admin <command> [args] [--help]

Description:
   Node-RED command-line client

Commands:
   target
   login
   list
   info
   enable
   disable
   search
   install
   remove
   hash-pw

Dann wollen wir uns mal alle Nodes die installiert sind anzeigen lassen mit:

sudo node-red-admin list

Bei mir sind die Folgenden Nodes installiert:

Nodes                                          Types                 State
node-red-contrib-admin/admin                   admin                 enabled
node-red-contrib-ads-b/ads-b                   ads-b                 enabled
node-red-contrib-advanced-ping/file-function   adv ping              enabled
node-red-contrib-bigtimer/bigtimer             bigtimer              enabled
node-red-contrib-esplogin/esplogin             esplogin              enabled
node-red-contrib-fritz/fritz                   fritzbox-config       enabled
                                               fritzbox-in
                                               fritzbox-calllist
node-red-contrib-gpio/gpio                     gpio in               enabled
                                               gpio out
                                               nodebot
                                               johnny5
node-red-contrib-graphs/datasource             iot-datasource        error
node-red-contrib-grove/grove                   grove                 enabled
node-red-contrib-ivona/boxcar                  ivona-credentials     enabled
                                               ivona-tts
node-red-contrib-json/contrib-json             contrib-json          enabled
node-red-contrib-moment/moment                 moment                enabled
node-red-contrib-npm/npm                       npm                   enabled
node-red-contrib-particle/particle             particle-cloud        enabled
                                               ParticleSSE in
                                               ParticleFunc out
                                               ParticleVar
node-red-contrib-ui/ui_button                  ui_button             enabled
node-red-contrib-ui/ui_button_row              ui_button_row         enabled
node-red-contrib-ui/ui_chart                   ui_chart              enabled
node-red-contrib-ui/ui_gauge                   ui_gauge              enabled
node-red-contrib-ui/ui_link                    ui_link               enabled
node-red-contrib-ui/ui_numeric                 ui_numeric            enabled
node-red-contrib-ui/ui_radio_button            ui_radio_button       enabled
node-red-contrib-ui/ui_slider                  ui_slider             enabled
node-red-contrib-ui/ui_switch                  ui_switch             enabled
node-red-contrib-ui/ui_tab                     ui_tab                enabled
node-red-contrib-ui/ui_template                ui_template           enabled
node-red-contrib-ui/ui_text                    ui_text               enabled
node-red-contrib-ui/ui_text_input              ui_text_input         enabled
node-red-contrib-ui/ui_toast                   ui_toast              enabled
node-red-contrib-web-worldmap/worldmap         worldmap              enabled
node-red-node-daemon/daemon                    daemon                enabled
node-red-node-email/email                      e-mail                enabled
                                               e-mail in
node-red-node-emoncms/emoncms                  emoncms               enabled
                                               emoncms in
                                               emoncms-server
node-red-node-feedparser/feedparse             feedparse             enabled
node-red-node-geofence/geofence                geofence              enabled
node-red-node-google/google calendar           google calendar in    enabled
                                               google calendar
                                               google calendar out
node-red-node-google/google directions         google directions     enabled
node-red-node-google/google geocoding          google geocoding      enabled
node-red-node-google/google places             google places         enabled
node-red-node-google/google plus               google plus           enabled
node-red-node-google/google-api-config         google-credentials    enabled
                                               google-api-config
node-red-node-ledborg/ledborg                  ledborg               enabled
node-red-node-openweathermap/openweathermap    openweathermap        enabled
                                               openweathermap in
node-red-node-ping/ping                        ping                  enabled
node-red-node-pushbullet/pushbullet            pushbullet-config     enabled
                                               pushbullet
                                               pushbullet in
node-red-node-random/random                    random                enabled
node-red-node-rbe/rbe                          rbe                   enabled
node-red-node-smooth/smooth                    smooth                enabled
node-red-node-sqlite/sqlite                    sqlitedb              enabled
                                               sqlite
node-red-node-twitter/twitter                  twitter-credentials   enabled
                                               twitter in
                                               twitter out
node-red/catch                                 catch                 enabled
node-red/change                                change                enabled
node-red/comment                               comment               enabled
node-red/CSV                                   csv                   enabled
node-red/debug                                 debug                 enabled
node-red/delay                                 delay                 enabled
node-red/exec                                  exec                  enabled
node-red/file                                  file                  enabled
                                               file in
node-red/function                              function              enabled
node-red/HTML                                  html                  enabled
node-red/httpin                                http in               enabled
                                               http response
node-red/httprequest                           http request          enabled
node-red/inject                                inject                enabled
node-red/JSON                                  json                  enabled
node-red/mqtt                                  mqtt in               enabled
                                               mqtt out
                                               mqtt-broker
node-red/range                                 range                 enabled
node-red/rpi-gpio                              rpi-gpio in           enabled
                                               rpi-gpio out
                                               rpi-mouse
                                               rpi-keyboard
node-red/sentiment                             sentiment             enabled
node-red/status                                status                enabled
node-red/switch                                switch                enabled
node-red/tail                                  tail                  enabled
node-red/tcpin                                 tcp in                enabled
                                               tcp out
                                               tcp request
node-red/template                              template              enabled
node-red/trigger                               trigger               enabled
node-red/udp                                   udp in                enabled
                                               udp out
node-red/unknown                               unknown               enabled
node-red/watch                                 watch                 enabled
node-red/websocket                             websocket in          enabled
                                               websocket out
                                               websocket-listener
                                               websocket-client
node-red/XML                                   xml                   enabled

Jetzt will ich mal mehr Infos zu einem Node. Ich nutze die function, da suche ich erstmal den genauen Namen mit:

node-red-admin list | grep function

und bekomme zwei Zeilen:

node-red-contrib-advanced-ping/file-function   adv ping              enabled
node-red/function                              function              enabled

Jetzt kann ich die Infos zu der function aufrufen mit:

node-red-admin info node-red/function

und bekomme die erweiterten Infos als Ergebnis:

Name:      node-red/function
Module:    node-red
Version:   0.13.4
Types:     function
State:     enabled

Weitere Infos zu der Admin-Konsole gibt es bei node-RED.

Ähnliche Artikel:

  1. Node-RED von IBM für den Raspberry Pi auf Jessie
  2. Raspberry Pi mit node-red: Wie können Flugdaten automatisch alle 5 Minuten abgefragt werden?
  3. Wie kann die aktuellste Node.js v0.10.29 auf einem Raspberry Pi (Version Jessie) installiert werden?

wallpaper-1019588
LUCK LIFE: Band feiert Europapremiere auf der Connichi
wallpaper-1019588
Wind Breaker: Deutscher Simuldub bei Crunchyroll gestartet
wallpaper-1019588
Kizuna no Allele: Erste Staffel erscheint auf Disc
wallpaper-1019588
Acro Trip: Promo-Video verrät Startzeitraum