Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
好きなNode-REDノード : Templateノード
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Takao Aoki
August 05, 2021
Programming
780
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
290
enebularを活用したNode-REDによるIoTシステム開発と運用
taokiuhuru
0
620
Changeノードの素朴な疑問
taokiuhuru
0
380
スマートシティプロジェクトにおける市民開発向け開発環境のご紹介
taokiuhuru
0
140
Heroes-league-2022-enebular
taokiuhuru
0
410
OuraRingで体調不良を同僚にそっと伝える方法
taokiuhuru
1
530
Node-REDカスタムノードによる工場IoT・DXの進め方
taokiuhuru
0
1.2k
ゆるふわ物体検出
taokiuhuru
0
710
Salesforce活用の裏技
taokiuhuru
1
870
Other Decks in Programming
See All in Programming
Workers Cache を知る
syumai
0
340
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
380
mrbgem 三角測量 開発
ogom
0
210
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
930
App Storeの外へ──日本のiOSサイドローディング入門 for iOSDC Japan 2026
yuukiw00w
0
320
速習iPhone Duo対応
yuukiw00w
2
970
Kubernetes祭り #2 OP/ED
bells17
0
100
phperだってパンチカードでコーディングしたい
o0h
PRO
0
230
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
190
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
490
Jetpack Compose Mechanisms
skydoves
2
550
Turning Architecture into Unit Tests in the AI Era (NSSpain XIV)
steliosf
PRO
1
130
Featured
See All Featured
Color Theory Basics | Prateek | Gurzu
gurzu
1
480
Joys of Absence: A Defence of Solitary Play
codingconduct
1
530
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
420
The SEO identity crisis: Don't let AI make you average
varn
0
580
Large-scale JavaScript Application Architecture
addyosmani
516
110k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
58k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.3k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
470
BBQ
matthewcrist
90
10k
The Language of Interfaces
destraynor
162
27k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
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