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
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
620
Changeノードの素朴な疑問
taokiuhuru
0
380
スマートシティプロジェクトにおける市民開発向け開発環境のご紹介
taokiuhuru
0
140
Heroes-league-2022-enebular
taokiuhuru
0
400
OuraRingで体調不良を同僚にそっと伝える方法
taokiuhuru
1
530
Node-REDカスタムノードによる工場IoT・DXの進め方
taokiuhuru
0
1.2k
ゆるふわ物体検出
taokiuhuru
0
700
Salesforce活用の裏技
taokiuhuru
1
870
Other Decks in Programming
See All in Programming
手動確認はもう限界 〜XCUITestでCustom URL Schemeの遷移を起動種別ごとに自動テストする〜 / Testing Custom URL Schemes with XCUITest
otouto
0
300
AI に Inclusive UI を書かせよう — Design Rules Skill で Compose UI を作り直す
theoriatec2024
1
500
すこし踏み込む CancellationToken
htkym
1
490
フロントエンドUIフレームワークのこれまでとこれから
ssssota
5
2.8k
Family mrubyの進捗
kishima
1
130
SREの越境 / SRE Collaboration
y0hgi
2
240
PL/pgSQLはなぜ「ふつうのSQL」より遅いのか
tameguro
0
110
LL言語やWebフレームワークのPostgreSQL対応 〜DBの機能がユーザーに届くまで〜
kentaroutakeda
1
150
アクセシビリティから考える情報設計
high_g_engineer
0
380
AIエージェント時代のコードレビューを設計する
nogu66
6
2.7k
AgentCore CLI で進化した AWS での AI エージェントの作り方 : 必要な機能を必要な時に
icoxfog417
PRO
3
350
iOSDC Japan 2026 - Swiftで作って学ぼう!データベース自作入門
kaseken
2
170
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
390
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.8k
Deep Space Network (abreviated)
tonyrice
0
310
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
530
Speed Design
sergeychernyshev
33
2.1k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.2k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
510
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
660
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