Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Node-REDからAWS IoT Coreを使用してみる
Search
ueponx
August 28, 2022
How-to & DIY
0
1.3k
Node-REDからAWS IoT Coreを使用してみる
ノーコードツールNode-REDからAWS IoT Coreを使用してみましたという内容のスライドになります。
ueponx
August 28, 2022
Tweet
Share
More Decks by ueponx
See All by ueponx
enebular in education 大学講義での実践を通して
ueponx
0
74
Springin‘でみんなもクリエイターに!
ueponx
0
500
相性ピッタリ!reTerminalとNode-REDのステキな関係
ueponx
0
700
Node-REDとレガシーシステムを連携させるなら fileノードがオススメ!
ueponx
0
260
Other Decks in How-to & DIY
See All in How-to & DIY
電気工事士を取ったら一瞬で元が取れた件
bicstone
1
1.4k
JAWS-UG東北[秋田] -東北エンジニアの祭典- AWSとJAWS-UG
awsjcpm
0
1.3k
スターバックスの黒板アートを生成AIで描かせてみたら...
scbc1167
0
220
教習資料PDF_4. 交差点編(優先・非優先)
sawagaku
0
6k
IoTLT vol100 #NT金沢 #iotlt
n0bisuke2
0
240
メタバース研究所のマネジメントプレイヤーが爆速で業務効率化している件 #VRStudioLab
vrstudiolab
1
1.2k
IFTTTやPower Automateを超えた?!ノーコードかつ無料でLINE Botや自動化ができるPipedreamがアツい(かも) #linedc #pipedream #protoout
n0bisuke2
0
330
Building the Perfect Custom Keyboard
takai
0
360
BVEと連動する誤自宅運転台のススメ!
usashirou
0
310
たまごっちUniFlash解析 #分解のススメ
bakueikozo
0
350
SIM型チョコレート、作成の裏側
soracom
PRO
0
400
Fraxinus1k Assembly Instructions (English, v. 0.9)
fukumay
0
840
Featured
See All Featured
Ruby is Unlike a Banana
tanoku
96
10k
GraphQLとの向き合い方2022年版
quramy
32
12k
Build your cross-platform service in a week with App Engine
jlugia
225
17k
What’s in a name? Adding method to the madness
productmarketing
PRO
16
2.6k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
14
1.5k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
34
8.9k
10 Git Anti Patterns You Should be Aware of
lemiorhan
648
58k
Building a Scalable Design System with Sketch
lauravandoore
456
32k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
14
1.6k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
155
14k
Agile that works and the tools we love
rasmusluckow
325
20k
Faster Mobile Websites
deanohume
299
30k
Transcript
JAWS-UG 名古屋 LT未経験者にも登壇して貰いたいLT会 LT資料 2022.08.24 上田茂雄 @ueponx ノーコードツールNode-REDから AWS IoT
Coreを使用してみる
None
LT未経験者にも登壇して貰いたいLT会 • 実はIBMチャンピオンらしい・・・何故か4年目 でもNode-REDぐらいしか知りません IBMは情報がなくて…結構辛い そろそろ別のこともやりたかったりする • 考えたLTのネタ 👉前回がノーコードツールだったのでAWS上にNode-REDを構築する方法 👉IoT関連のこと
AWS環境でもNode-REDやるぜ!
AWS環境でもNode-REDやるぜ! 3以外はわからん…🥲
IoT関連やるしかねえ 数あるサービスの中から AWS IoT Coreを使用することに Node-REDからAWS IoT Coreに 対してMQTTプロトコルと使用して データのinput/outputを行う
AWS Cloud publish subscribe RaspberryPi MQTT Client MQTT Broker
実は・・・ https://dev.classmethod.jp/articles/node-red-aws-iot-core/ クラスメソッドさんの記事に同じ物があった ・・・でも、UIがかなり変わっているので、そのままやると初心者は◦ぬ
手順(1) ① AWS IoT Coreの設定 ◆AWS IoTでポリシーを作成 ◆AWS IoTでモノを作成 ◆AWS
IoTで証明書を作成・ダウンロード ◆AWS IoTのエンドポイントを取得 URLが発行されるのでコピー ② 生成された証明書をRaspberryPiに配置 ※ポリシーの設定の仕方が 細かく分割された点が注意
手順(2) ① Node-REDのインストールと起動 #インストール $ bash <(curl -sL https://raw.githubusercontent.com/node-red/linux- installers/master/deb/update-nodejs-and-nodered)
#起動 $ node-red #サービス化して起動 $ sudo systemctl start nodered.service #永続化 $ sudo systemctl enable nodered.service
手順(2) ② 拡張ノードの導入 • node-red-contrib-aws-iotという 拡張ノードをインストール ※UIからインストールできない • Node-REDを再起動 $
cd ~/.node-red $ npm install node-red-contrib-aws-iot
手順(3) フローの構築・プロパティの設定・デプロイ
手順(4) AWS IoT Coreのコンソール Node-REDを使用してテスト
EC2とS3しか使っていなかった小僧が Node-REDとAWS IoT Coreの連携を 無事にできました😍 🥲UIが1年程度でガラリと変わるため初見者◦し 【教訓】 情報が出たら寝かせず、すぐに勉強しないと資料が ないところからのスタートになるよ😖 まとめ