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
LWWSxGASxSlack
Search
noviiro
December 07, 2019
Technology
320
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
LWWSxGASxSlack
noviiro
December 07, 2019
More Decks by noviiro
See All by noviiro
LaravelのCVE-2021-3129の脆弱性について.pdf
noviiro
0
360
My GAS Tips
noviiro
1
330
FileMaker Data API
noviiro
0
200
Tried to set up Mastodon instance for myself. ( ja )
noviiro
0
200
Several TIPS for making a single board computer a web server (ja)
noviiro
0
270
PINE64で遊んでみた
noviiro
0
430
Other Decks in Technology
See All in Technology
生成AIで高い生産性を求められて、 悩み、乗り越えた話
mot_techtalk
2
130
スキルを作る、その前に!複数人で使われるスキルを 作るためのプロセス
junkifurukawa
2
340
[2026 Oracle Technical Deep Dive] VMwareワークロードのOCI移行実践ガイド - OCVSでの継続利用からOCIコンピュートへの移行まで (2026年9月17日開催)
oracle4engineer
PRO
0
130
[2026-09-30]ロックンロールは鳴り止まないっ - 信頼性かまってちゃん - 「データ駆動を投げ捨ててまで。」追いかける信頼性改善に向けた取り組みの話
tosite
0
210
AI時代に必要な脅威モデリング― 変化の速度に負けない理解とリスク判断
masakane55
4
1.1k
IoTデバイスを繋げるプロトコルMatterをAndroidで使用する方法
harutiro
0
120
3つのアプローチで目指す チームを強くするAI駆動開発
thkt
0
120
自主式軟體工廠
philipz
0
230
全人類(ほぼ)AWS Organizations の上でAWSを利用している、その世界を知る話
htan
0
120
Codex概要
ymiya55
0
420
20260930_Gemma4_Hands-on
tsho
0
230
大阪オフィスに Unitree Go2 がやってきたので Physical AI やってみた
dafujii
0
320
Featured
See All Featured
How to make the Groovebox
asonas
2
2.5k
Site-Speed That Sticks
csswizardry
13
1.5k
It's Worth the Effort
3n
188
29k
Darren the Foodie - Storyboard
khoart
PRO
4
4k
Utilizing Notion as your number one productivity tool
mfonobong
4
610
Docker and Python
trallard
47
4.2k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
620
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3k
Scaling GitHub
holman
464
140k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Making Projects Easy
brettharned
120
6.8k
Transcript
Slackに天気予報を流すbotを つくるまで (或いはLivedoor Weather Web ServiceとGoogle Apps Scriptを使って Slackに天気予報を流すまで) ノブ@noviiro
#gunmaweb #37
もともとの動機
遡ること2~3年前 (Slackでカップルアプリを作ってみたとかが流行った頃)
Slackの自分用ワークスペースに何 かbotを入れてみたい...! (しかも手軽に)
(探す)
(天気予報を投稿する...?) (JSONだし簡単そう)
(しかもGoogle Apps Script ででき る…!?)
作った。
Livedoor Weather Web Service x Google Apps Script x Slack
連携に必要なもの • GASxSlack連携用ライブラリ 参照 :https://qiita.com/soundTricker/items/43267609a870fc9c7453 • Slack連携用に必要なアクセストークン ◦ 「ファイル」→「プロジェクトのプロパティ」→「スクリプトのプロパティ」 • 天気のJSONデータ(今回はLivedoor天気)
• 少しのJSの知識 • 少しのGASの知識 • BEER
JSONデータ 例:http://weather.livedoor.com/forecast/webservice/json/v1?city=100010 ※仕様は「お天気webサービス仕様」を参照してください。 (http://weather.livedoor.com/weather_hacks/webservice)
取得してslackに流したい情報 • 1日の天気予報 • 最高気温 • Livedoor天気へのリンク ※画像(gif)も取得できるけどslackは文字列と結合できなかっ た・・・?
実際はこんな具合です。
Slack x GAS楽しい!