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

Erstellt am 21. Mai 2016 von It_berater

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

sudo npm install -g node-red-admin

Ergebnis nach ein paar Minuten:

> bcrypt@0.8.5 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
node-red-admin@0.1.2 /usr/local/lib/node_modules/node-red-admin
├── colors@1.1.2
├── minimist@1.2.0
├── read@1.0.7 (mute-stream@0.0.6)
├── bcryptjs@2.3.0
├── cli-table@0.3.1 (colors@1.0.3)
├── when@3.7.5
├── request@2.67.0 (is-typedarray@1.0.0, aws-sign2@0.6.0, forever-agent@0.6.1, caseless@0.11.0, stringstream@0.0.5, oauth-sign@0.8.2, tunnel-agent@0.4.3, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.0, node-uuid@1.4.7, combined-stream@1.0.5, qs@5.2.0, tough-cookie@2.2.2, mime-types@2.1.11, form-data@1.0.0-rc4, bl@1.0.3, har-validator@2.0.6, http-signature@1.1.1, hawk@3.1.3)
└── bcrypt@0.8.5 (bindings@1.2.1, nan@2.0.5)

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?