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
LWWSxGASxSlack
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
noviiro
December 07, 2019
Technology
310
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
190
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
260
PINE64で遊んでみた
noviiro
0
430
Other Decks in Technology
See All in Technology
「重なり」は迎える側がつくる ― 人もAIエージェントも歓迎するプロダクトエンジニアリング ―
go0517go
PRO
0
230
Guerilla InnerSource in enterprises, during the AI hype
onenashev
PRO
0
150
[RSJ26] Building a VLA Model Based on Self-Distilled Classification
keio_smilab
PRO
0
190
AI時代に、プロダクトの数だけ積み上がる所有コストをどうエンジニアリングするか / Engineering the Cost of Ownership
kzkmaeda
0
990
AIエージェントを雇う前に決める5つのこと
knishioka
1
160
Kiro Crewしか勝たん!?
miu_crescent
PRO
0
180
When Does a Local Qwen Start to Break
morshoto
0
170
IoTハンズオンの舞台裏
shirouz
2
120
Self Healing Rollouts: Automating Production Fixes with Agentic AI
kdubois
0
150
Azure App Service / Container Apps の組み込み認証
kuniteru
0
190
データエンジニアの困りごとをDevinと一緒に解消する
10xinc
2
820
Backstageでつくるセルフサービスな社内開発基盤
kikunosuke75
1
280
Featured
See All Featured
How to Talk to Developers About Accessibility
jct
2
540
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Fireside Chat
paigeccino
42
4k
Accessibility Awareness
sabderemane
1
200
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
520
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
370
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
840
Making Projects Easy
brettharned
120
6.7k
The browser strikes back
jonoalderson
0
1.6k
Technical Leadership for Architectural Decision Making
baasie
3
550
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
42k
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楽しい!