1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Raspberry Pi OSにはNode-REDがインストールされていない?

Posted at

Raspberry Pi OSにはNode-REDがインストールされていないようなので、インストール方法についてメモしておくことにした。

インストール

※参考:Raspberry Piで実行する : Node-RED日本ユーザ会

  1. Node-REDのインストーラをダウンロードし、実行する。

    bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
    
    Running Node-RED install for user pi at /home/pi on raspbian
    
    This can take 20-30 minutes on the slower Pi versions - please wait.
    
      Stop Node-RED                       ✔
      Remove old version of Node-RED      ✔
      Remove old version of Node.js       ✔
      Install Node.js LTS                 ✔   Node v12.18.2   Npm 6.14.7
      Clean npm cache                     ✔
      Install Node-RED core               ✔   1.1.2
      Move global nodes to local          ✔
      Install extra Pi nodes              ✔
      Npm rebuild existing nodes          ✔
      Add shortcut commands               ✔
      Update systemd script               ✔
    
    
    Any errors will be logged to   /var/log/nodered-install.log
    
    All done.
      You can now start Node-RED with the command  node-red-start
      or using the icon under   Menu / Programming / Node-RED
      Then point your browser to localhost:1880 or http://{your_pi_ip-address}:1880
    
    Started  Thu Jun 21 12:34:44 UTC 2018  -  Finished  Thu Jun 21 12:48:37 UTC 2018
    
  2. X Windowの場合、デスクトップから[Menu]-[Programming]-[Node-RED]を開く。

    1. 自ユーザのみの場合、次のコマンドで起動/停止する。

      $ node-red-start
      $ node-red-stop
      
    2. デーモンとして扱う場合、次のコマンドで起動/停止する。

      $ sudo systemctl start nodered.service
      $ sudo systemctl stop nodered.service
      
  3. ブラウザでNode-REDにアクセスする。

    http://example.com:1880/

設定

  1. システム起動時に自動起動する場合、次のコマンドで設定/解除する。

    $ sudo systemctl enable nodered.service
    $ sudo systemctl disable nodered.service
    
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?