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ノード : Templateノード
Search
Takao Aoki
August 05, 2021
Programming
770
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
好きなNode-REDノード : Templateノード
templateノードの魅力について書いてみました。
Takao Aoki
August 05, 2021
More Decks by Takao Aoki
See All by Takao Aoki
enebular Update for the second half of 2023
taokiuhuru
0
280
enebularを活用したNode-REDによるIoTシステム開発と運用
taokiuhuru
0
610
Changeノードの素朴な疑問
taokiuhuru
0
370
スマートシティプロジェクトにおける市民開発向け開発環境のご紹介
taokiuhuru
0
140
Heroes-league-2022-enebular
taokiuhuru
0
400
OuraRingで体調不良を同僚にそっと伝える方法
taokiuhuru
1
520
Node-REDカスタムノードによる工場IoT・DXの進め方
taokiuhuru
0
1.2k
ゆるふわ物体検出
taokiuhuru
0
700
Salesforce活用の裏技
taokiuhuru
1
860
Other Decks in Programming
See All in Programming
AIの中の人になってみる
htkym
0
140
Pythonの実行はどこまで賢くなったのか? CPythonとPyPyから見る最適化のしくみ
curekoshimizu
4
2.3k
高専、大学編入、そして未踏へ〜プロダクト開発とキャリアの歩み - Technical College, University Transfer, and On to “Mitou” / My Journey in Product Development and Career
pkmiya
0
120
【デモ】Kiroで体験する仕様駆動開発|設計からコーディングまでAIと進める開発フロー
cmkudo
0
530
T3DD26: From RAGs to Riches
martinhelmich
0
120
ハーネス設計入門 〜プロンプト、コンテキストの次〜
kinopeee
46
29k
わからない話を追いかけたら、プログラミング言語を作る側にいた
ydah
3
570
業務時間外もAIに働いてもらう話
colorful12
3
9.3k
AI時代に学ぶ 好きなルール 嫌いなルール Linter編
shorty5121
0
560
言葉の格闘技のススメ~紙とペンと言葉から始める、キャリアの描き方~
progresscicada
2
190
仕様駆動開発へのトライを機に チームに適合する手法を模索し続けている話
freee
PRO
0
670
承認済みなのに差戻しできてしまうバグ、型で潰せます
shinchit
0
120
Featured
See All Featured
Balancing Empowerment & Direction
lara
6
1.3k
Visualization
eitanlees
152
17k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
260
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.7k
Designing Powerful Visuals for Engaging Learning
tmiket
1
520
[SF Ruby Conf 2025] Rails X
palkan
2
1.3k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
440
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.2k
Designing Experiences People Love
moore
143
24k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.8k
Transcript
私の好きな 標準ノード Node-RED Park Vol.1 2021/08/05
2 自己紹介: 青木 隆雄 • ウフルでIoT開発運用ツールenebular事業担当 • 技術レベル:コピペプログラマ
テンプレート・ノード 3
mustache記法が便利 4 マスタッシュ(口ひげ) {
mustache記法が便利 5 • 波括弧を二重で囲う • 流れてきたデータを使って、自在に文を作れる
functionノードで書くと… 6 これくらいなら理解できるが
複雑なやつ 7 よくサンプルで見かける
テンプレートを使う 8
すっきり見える 9 Changeノードの設定 Templateノードの設定
debugしてみる 10 あれ?おかしい。
{{2重}}から{{{3重}}}にする 11 カッコを3重にすることで、正し くデータを渡せた。
こんなフローを普段使いし てます(デモ) 12
ボットに投げる文章を作 るときに使用 13
ボットが毎日定時に 天気をお知らせ 14 Heroku deployで永続的にフローを実行
ボットが毎日定時に 天気をお知らせ 15 *は、Google Chatでの太字の修飾を意味 するのでMustacheではありません。
まとめ 16 Templateノードのよいところ: 1. メッセージ作成に集中できる 2. メッセージ作成以外のことをやってないことがわかる 3. フローが読みやすくなる
今日のフロー Discoverで公開しています。 • テンプレートノードサンプル(Discover) ◦ https://bit.ly/2VqZ66f • チャットボットサンプル(Discover) ◦ https://bit.ly/3fxZo22
• ブログ ◦ (enebular blogにて執筆予定) 17 テンプレートノードサンプル チャットボットサンプル
Thanks! Any questions? You can find me at: • @zawakarui
•
[email protected]
18