こんな声が聞こえてきたので(笑)、Node-REDの続きで、IBM Cloudで動かしてみたのと、3環境でパレットにあるノードにどんな違いが有るのかを表にしてみました。
では、続いてNode-RED on IBM Cloudも是非!
目次
IBM CloudでNode-RED
アプリの取得、環境作成
ライトアカウント(無料)を持っていれば、以下のページを開いて、アプリ名のところに任意の名前を入力して「作成」ボタンをクリックするだけでNode-RED用の環境を作成してIBM Cloudで動かすまでをやってくれます。
作成が始まると以下の画面が表示されます。 環境が作成されると画面上部に「このアプリは稼働中です」と表示されたら、準備ができているので「アプリのURLにアクセス」というリンクをクリックしてNode-REDのセットアップを始めます。
Node-REDのセットアップ
[Next] ボタンで次の画面へ進みます。
認証をするためのIDとパスワードを入力します。
(認証なしで使えるようにもできますが、認証するようにセットアップすることを推奨)
入力が終わったら [Next] ボタンで次の画面に進みます。
IBM Cloudで使えるノードについての説明を読みたい場合は、各項目のリンクをクリックして確認してください。
確認が終わったら [Next] ボタンで次の画面に進みます。
インストールの最終確認です。
確認が終わったら [Finish] ボタンでセットアップを完了します。
セットアップが終わるまでそのまま待ちます。
Node-REDの起動
セットアップが終わったら以下のような画面が表示されるので、[Go to your Node-RED flow editor] ボタンをクリックして Node-REDのエディタ画面を表示します。
見慣れた Node-REDの画面が表示されます。
パレットにあるノードの差異
折角なので、3環境のパレットにある初期状態のノードを比較してみました。 もちろん、あとから追加も可能なので、良い悪いを比較するのはナンセンスですが、それぞれのNode-REDを「どう使いたいか/使わせたいか」についての考え方が垣間見れて、面白いな、と思います。
入力
基本的には大きな違いはない。enebularとIBM Cloudには追加されたノードが幾つかある。
Node-RED | enebular | IBM Cloud |
---|---|---|
inject | inject | inject |
catch | catch | catch |
status | status | status |
link in | link in | link in |
mqtt in | mqtt in | mqtt in |
http | http | http |
websocket in | websocket in | websocket in |
tcp in | tcp in | tcp in |
udp in | udp in | - |
- | pubnub in | - |
- | aws lambda request | - |
- | milkcocoa in | - |
- | - | mqlight in |
- | - | ibmiot in |
出力
基本的には大きな違いはない。enebularとIBM Cloudには追加されたノードが幾つかある。
Node-RED | enebular | IBM Cloud |
---|---|---|
debug | debug | debug |
link out | link out | link out |
mqtt out | mqtt out | mqtt out |
http response | http response | http response |
websocket out | websocket out | websocket out |
tcp out | tcp out | tcp out |
udp out | udp out | udp out |
- | pubnub out | - |
- | aws lambda response | - |
- | metrics | - |
- | milkcocoa out | - |
- | - | mqlight out |
- | - | twilio |
- | - | ibmiot out |
- | - | OpenWhisk |
機能
基本的には大きな違いはない。enebularとIBM Cloudには追加されたノードが幾つかある。
Node-RED | enebular | IBM Cloud |
---|---|---|
function | function | function |
template | template | template |
delay | delay | delay |
trigger | trigger | trigger |
comment | comment | comment |
http request | http request | http request |
tcp request | tcp request | tcp request |
switch | switch | switch |
change | change | change |
range | range | range |
split | split | split |
join | join | join |
sort | sort | sort |
batch | batch | batch |
csv | csv | csv |
html | html | html |
json | json | json |
xml | xml | xml |
yaml | yaml | yaml |
rbe | rbe | rbe |
- | node red contrib mb iot rest | - |
- | - | OpenWhisk |
ソーシャル
基本的には大きな違いはない。enebularには追加されたslack関連のノードが幾つかある。
Node-RED | enebular | IBM Cloud |
---|---|---|
email in | email in | email in |
twitter in | twitter in | twitter in |
email out | email out | email out |
twitter out | twitter out | twitter out |
- | slack | - |
- | slack bot in | - |
- | slack bot out | - |
ストレージ
基本的には大きな違いはない。enebularとIBM Cloudには追加されたノードが幾つかある。
Node-RED | enebular | IBM Cloud |
---|---|---|
tail | tail | - |
file in | file in | - |
- | mongodb2 | - |
- | sqlite | - |
file out | file out | - |
- | td | - |
- | process env | - |
- | - | mongodb in |
- | - | cloudant in |
- | - | dashDB in |
- | - | mongodb out |
- | - | cloudant out |
- | - | dashDB out |
分析
基本的には大きな違いはない。IBM Cloudには追加されたノードがある。
Node-RED | enebular | IBM Cloud |
---|---|---|
sentiment | sentiment | sentiment |
- | - | oredictive analytics |
その他
基本的には大きな違いはない。IBM Cloudからは削除されたノードが2つかある。
Node-RED | enebular | IBM Cloud |
---|---|---|
watch | watch | - |
feedparse | feedparse | feedparse |
exec | exec | - |
Raspberry Pi
素のNode-REDにのみ存在。
Node-RED | enebular | IBM Cloud |
---|---|---|
rpi-gpio in out | - | - |
rpi-gpio | - | - |
rpi-mouse in | - | - |
rpi-mouse out | - | - |
EEA
enebularのみに存在。
Node-RED | enebular | IBM Cloud |
---|---|---|
- | TLS2561 | - |
- | BME280 | - |
- | digitalout | - |
- | analogin | - |
- | interruptin | - |
firebase
enebularのみに存在。
Node-RED | enebular | IBM Cloud |
---|---|---|
- | firebase modify | - |
- | firebase.once() | - |
- | firebase.on() | - |
- | firebase.onDisk | - |
- | firebase auth | - |
weather
IBM Cloudのみに存在。
Node-RED | enebular | IBM Cloud |
---|---|---|
- | - | weather insights |
Smart Process
IBM Cloudのみに存在。
Node-RED | enebular | IBM Cloud |
---|---|---|
- | - | buisiness rules |
IBM Watson
IBM Cloudのみに存在。
Node-RED | enebular | IBM Cloud |
---|---|---|
- | - | assistant |
- | - | assistant workspace manager |
- | - | discovery |
- | - | discovery document loader |
- | - | discovery query builder |
- | - | language translator |
- | - | language identify |
- | - | language translator util |
- | - | natural language classifier |
- | - | Natural Language Understanding |
- | - | personality insights |
- | - | speech to text |
- | - | speech to text custom builder |
- | - | text to speech |
- | - | text to speech custom builder |
- | - | tone analyzer v3 |
- | - | visual recognition |
- | - | visual recognition util |
まとめ?
いろいろな環境で Node-REDが動かせることはわかりました。 自前で環境を作らなくてもクラウド上で完結できるということは、環境さえ作ってしまえば何処ででも使えるということですね。 スマフォでポチポチすることも(作業がしやすいかどうかは別にして)できるはずです。 PC持って無くてもスマフォを持っている人は多いですし、部品を置いて線で結ぶという直感的に分かりやすいやり方で何かを作っていける。 プログラムを作る楽しさの敷居を下げられると、良いなと思います。