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
1
1.8k
Node-REDからAWS IoT Coreを使用してみる
ノーコードツールNode-REDからAWS IoT Coreを使用してみましたという内容のスライドになります。
ueponx
August 28, 2022
Tweet
Share
More Decks by ueponx
See All by ueponx
Node-REDで広がるプログラミング教育の可能性
ueponx
0
160
開発用LLMインフラをVSCode内で完結させる
ueponx
1
310
Node-REDからreCameraへのファーストタッチ
ueponx
0
140
Pythonでもちょっとリッチな見た目のアプリを設計してみる
ueponx
1
1.6k
SORACOM UG 東海 #9
ueponx
0
130
PythonとFletで簡単 GUIアプリを作ろう
ueponx
0
1.3k
変化する時代のIBMChampionの新しい挑戦
ueponx
0
220
EduBlocksでPythonのブロックプログラミング体験!
ueponx
0
1.3k
enebular in education 大学講義での実践を通して
ueponx
0
260
Other Decks in How-to & DIY
See All in How-to & DIY
地方カンファレンスのスタッフしてて思うこと
yumechi
0
120
LT(Lightning Talk)のドキドキ感を共有する IoT ぼっとを作った話
scbc1167
1
250
The Definitive? Guide To Locally Organizing RubyKaigi
sylph01
6
1.8k
Node-REDで制御できるエッジカメラのreCameraを触る #iotlt #JLCPCB #recamera
n0bisuke2
0
120
5年間ぐらい、 スプリントレトロスペクティブは、 「+/Δ」しかしてないので、 あらためて良いのか悪いか考えてみる / Doing Plus Delta for about five years
camel_404
1
220
カンファレンスでリフレッシュ!無理なく楽しむカンファレンス参加術 / How to enjoy conferences without stress
kattsuuya
1
9.1k
「AITRIOS」でトカゲの活動量を可視化
hoshinoresearch
0
410
Within the team, I grow as a tester and continuously pursue product quality
camel_404
6
2.7k
とある航空会社の飛行機の乗り方をお教えします。/20240913-lt
kwada
3
330
AWS Summit Japan 2025 個人的参加レポート
midnight480
0
170
Goカードゲームを 作ってみた!
senoue
0
150
ORBBEC会社概要 製品カタログ 2024 11 10
takasumasakazu
0
170
Featured
See All Featured
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
The Invisible Side of Design
smashingmag
302
51k
Rails Girls Zürich Keynote
gr2m
95
14k
Agile that works and the tools we love
rasmusluckow
331
21k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
190
55k
How to Think Like a Performance Engineer
csswizardry
27
2.2k
Building an army of robots
kneath
306
46k
Become a Pro
speakerdeck
PRO
29
5.6k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
940
Documentation Writing (for coders)
carmenintech
75
5.1k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3k
Why You Should Never Use an ORM
jnunemaker
PRO
60
9.6k
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年程度でガラリと変わるため初見者◦し 【教訓】 情報が出たら寝かせず、すぐに勉強しないと資料が ないところからのスタートになるよ😖 まとめ