1
4

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 5 years have passed since last update.

Raspberry Pi での Node-RED 利用

Last updated at Posted at 2018-02-04

Raspberry Pi での Node-Red 利用

Raspberry Pi で Node-RED の管理画面へ接続する方法を記載します。

Node-RED の起動

Node-RED を起動します。
Raspberry Pi での Node-RED 起動

接続先の確認

ブラウザからアクセスする管理画面の情報を確認します。
Node-RED 起動に表示されている「[info] Server now running at」のURL末尾「:」以降を控えます。
下記の場合「1880」です。

$ node-red-pi --max-old-space-size=256
4 Feb 20:47:46 - [info]

Welcome to Node-RED
===================

4 Feb 20:47:46 - [info] Node-RED version: v0.18.1
4 Feb 20:47:46 - [info] Node.js  version: v6.12.3
4 Feb 20:47:46 - [info] Linux 4.9.79-v7+ arm LE
4 Feb 20:47:48 - [info] Loading palette nodes
4 Feb 20:47:54 - [info] Settings file  : /home/pi/.node-red/settings.js
4 Feb 20:47:54 - [info] User directory : /home/pi/.node-red
4 Feb 20:47:54 - [warn] Projects disabled : set editorTheme.projects.enabled=true to enable
4 Feb 20:47:54 - [info] Flows file     : /home/pi/.node-red/flows_raspberrypi.json
4 Feb 20:47:54 - [info] Starting flows
4 Feb 20:47:54 - [info] Started flows
4 Feb 20:47:54 - [info] Server now running at http://127.0.0.1:1880/

管理画面の表示

Raspberry Pi のデスクトップ上から直接アクセスする場合、ブラウザから「 http://127.0.0.1:1880/ 」にアクセスします。
他の端末からアクセスする場合、Raspberry Pi のIPアドレスと上記で控えた番号を組み合わせたURLにアクセスします。
Raspberry Pi のIPアドレスが 192.1668.1.1 で上記の表示内容場合、「 http://192.1668.1.1:1880/ 」となります。

その他

Node-RED アップデート
Node-RED 認証有効化
Node-RED の表示言語

1
4
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
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?