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
SlackにZoomの使用状況を表示したい
Search
Yukimitsu Izawa
August 15, 2020
Programming
0
190
SlackにZoomの使用状況を表示したい
SlackのstatusにZoomの接続状況を逐次、自動反映させる仕組みを作った話
Yukimitsu Izawa
August 15, 2020
Tweet
Share
More Decks by Yukimitsu Izawa
See All by Yukimitsu Izawa
RubyでXDPプログラミング
izawa
0
6
軽くて強い素材を求めて(DCFのススメ)
izawa
1
97
指紋認証でsshログイン
izawa
0
300
展示会に出展してみた
izawa
0
170
エアコンの操作についての話
izawa
0
670
Kindleページめくり君 Ver.2
izawa
0
220
災害グッズとして見たときのキャンプ用品
izawa
0
290
アレクサがカメラ女子になった日
izawa
0
300
2019年上半期のキャンプお買い物ベスト8
izawa
0
320
Other Decks in Programming
See All in Programming
Honoをフロントエンドで使う 3つのやり方
yusukebe
4
2.1k
お前もAI鬼にならないか?👹Bolt & Cursor & Supabase & Vercelで人間をやめるぞ、ジョジョー!👺
taishiyade
5
3.8k
時計仕掛けのCompose
mkeeda
1
280
昭和の職場からアジャイルの世界へ
kumagoro95
1
350
第3回関東Kaggler会_AtCoderはKaggleの役に立つ
chettub
3
890
Multi Step Form, Decentralized Autonomous Organization
pumpkiinbell
1
660
WebDriver BiDiとは何なのか
yotahada3
1
140
Grafana Loki によるサーバログのコスト削減
mot_techtalk
1
110
Honoのおもしろいミドルウェアをみてみよう
yusukebe
1
200
Domain-Driven Transformation
hschwentner
2
1.9k
GitHub Actions × RAGでコードレビューの検証の結果
sho_000
0
240
Writing documentation can be fun with plugin system
okuramasafumi
0
120
Featured
See All Featured
Java REST API Framework Comparison - PWX 2021
mraible
28
8.4k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
1k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
It's Worth the Effort
3n
184
28k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.7k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
Testing 201, or: Great Expectations
jmmastey
41
7.2k
Building Flexible Design Systems
yeseniaperezcruz
328
38k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Designing Experiences People Love
moore
139
23k
Transcript
SLACKʹZOOMͷ༻ঢ়گ Λද͍ࣔͨ͠ ҪᖒΏ͖Έͭ 20208݄15 Kanazawa.rb meetup #96
ࣗݾհ ➤ YouTuber ➤ My Outdoor Life (https://kanazawa.camp/) ➤ ത࢜(ใՊֶ)
➤ ΠϯλʔωοτΛͬͨૄ݁߹ࢄγεςϜͷݚڀΛ͍ͯ͠·͢ ➤ גࣜձࣾΫϧΟοτ औక ݉ ࢧࣾ COO ➤ Code for Kanazawa ཧࣄ ➤ ిࢠ࡞ͱφΠϑΛࣗ࡞͢Δͷ͕झຯͰ͢
WHFͷࡢࠓ…… ➤ ZoomͰςϨΧϯதʹɺSlackͰ͔͚͠ΒΕΔͱԠͰ͖ͳ͍͜ͱ͕͋Δ ➤ Slackʹɺstatus ͱ͍͏ػೳΛͬͯʮ͍·ԿΛ͍ͯ͠ΔʯΛදݱͰ͖Δ ➤ ͱ͍͏͜ͱɺZoomதʹ statusΛʮZoomར༻தʯͬͯදࣔͰ͖Εɺ͓͍ͨ͠ ͚ͩͳ͍Ͱ͠ΐ͏͔ʁ!
➤ खಈͩͱ໘ͩ͠ɺ͠ΕͨΓͦ͠͏ͳͷͰɺࣗಈతʹͬͯཉ͍͠
ػೳཁૉ ➤ Zoom ͰςϨΧϯத͔Ͳ͏͔ͷఆํ๏ ➤ Zoom ͷAPIͰऔΕͦ͏(?) ➤ ߴසʹఆظతʹAPIΛୟ͘ͷͪΐͬͱ͏Δ͍͞ ➤
Zoom Client͕roomʹଓதͷͱ͖͚ͩىಈ͢Δprocess͕͋ΔͷͰɺͦͷଘࡏΛ νΣοΫ͢Δ͜ͱʹ͢Δ ➤ Slack ͷstatus ͷมߋํ๏ ➤ Web API Λͬͯɺget ͱ set Λ͢Δ
ΞʔΩςΫνϟ macOSϚγϯ Python Script process table APIαʔό
ΞʔΩςΫνϟ macOSϚγϯ Python Script process table "CptHost"্͕͕͍ͬͯΔ͔Λperiodicʹlookup͢Δ APIαʔό
ΞʔΩςΫνϟ macOSϚγϯ Python Script process table APIαʔό user.status.get ͰݱࡏͷstatusΛऔಘͯ͠هԱ
ΞʔΩςΫνϟ macOSϚγϯ Python Script process table APIαʔό user.status.set Ͱ status_emoji
Λ :zoom: ΞΠίϯʹͯ͠ status_text ΛʮIn a meeting via Zoomʯʹઃఆ͢Δ
ΞʔΩςΫνϟ macOSϚγϯ Python Script process table APIαʔό ֤ΫϥΠΞϯτʹมߋ͕௨͞ΕΔ
PYTHON SCRIPTΛίϚϯυԽ ➤ ىಈ༻ shell script Λॻ͘
SCRIPTࣗಈىಈ͍ͨ͠ ➤ Automator ͰAppԽ ➤ ϩάΠϯ߲ʹొ ➤ શࣗಈͰZoomͷঢ়ଶΛSlackͷstatusʹөͤ͞Δ͜ͱ͕Ͱ͖ΔΑ͏ʹͳΔ
DEMO ➤ ιʔείʔυҎԼʹஔ͍ͯ͋Γ·͢ɻ ➤ https://github.com/izawa/slack_zoom_status