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
Pythonで始めるお手軽ダイエット(2)
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
しみず ゆうき
August 24, 2019
Programming
400
0
Share
Pythonで始めるお手軽ダイエット(2)
2019.8.24
富士もくもく会 #2 LT
しみず ゆうき
August 24, 2019
More Decks by しみず ゆうき
See All by しみず ゆうき
EventBridgeで地域イベントのイベントストリームを作ってみた
yuukis
0
96
2025年 山梨の技術コミュニティを振り返る
yuukis
0
360
サイトを作ったらNFCタグキーホルダーを爆速で作れ!
yuukis
0
1.1k
Perlで痩せる
yuukis
1
850
Pythonで遊べるLEDボードの紹介
yuukis
0
120
今話題のMCPサーバーをFastAPIでサッと作ってみた
yuukis
0
630
地域ITコミュニティの活性化とAWSに移行してみた話
yuukis
0
560
Gemini API を試した話と山梨でオススメのものを語るLT
yuukis
0
110
山梨のIT勉強会コミュニティを盛り上げるためにアレ作ってみた!
yuukis
0
110
Other Decks in Programming
See All in Programming
Symfonyの特性(設計思想)を手軽に活かす特性(trait)
ickx
0
130
Going Multiplatform with Your Android App (Android Makers 2026)
zsmb
2
340
Nuxt Server Components
wattanx
0
250
Don't Prompt Harder, Structure Better
kitasuke
0
280
Java 21/25 Virtual Threads 소개
debop
0
330
それはエンジニアリングの糧である:AI開発のためにAIのOSSを開発する現場より / It serves as fuel for engineering: insights from the field of developing open-source AI for AI development.
nrslib
1
830
事業会社でのセキュリティ長期インターンについて
masachikaura
0
230
車輪の再発明をしよう!PHP で実装して学ぶ、Web サーバーの仕組みと HTTP の正体
h1r0
3
510
GoのDB アクセスにおける 「型安全」と「柔軟性」の両立 - Bob という選択肢
tak848
0
310
Spec Driven Development: The End Of Vibe Coding | DevLand 2026
danielsogl
PRO
0
110
PDI: Como Alavancar Sua Carreira e Seu Negócio
marcelgsantos
0
100
KagglerがMixSeekを触ってみた
morim
0
370
Featured
See All Featured
Exploring anti-patterns in Rails
aemeredith
3
310
Become a Pro
speakerdeck
PRO
31
5.9k
Typedesign – Prime Four
hannesfritz
42
3k
Building Applications with DynamoDB
mza
96
7k
Art, The Web, and Tiny UX
lynnandtonic
304
21k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
64
54k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
27
3.4k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
260
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
210
The SEO identity crisis: Don't let AI make you average
varn
0
440
The Language of Interfaces
destraynor
162
26k
Transcript
【富士もくもく会 #2 LT】 Python で始める お手軽ダイエット 2019. 8. 24 しみず
ゆうき 1
おまえ誰よ? しみず ゆうき • モバイルアプリ エンジニア • 甲府生まれ 甲府育ち ※
現在は東京に出稼ぎ中(3年目) 2
ところで皆さん! ダイエットしてますか〜? 3
ダイエットって、なかなか続かない • 食べることは幸せ(特に甘いもの、お酒) • 運動は辛い しみずは、油断するとすぐに太ります 4
春、職場でダイエット宣言 5 今年こそダイエット頑張ります! 痩せたいなら、毎日体重を Slack に投稿してよ 色々言ってあげるから
この LT の内容 Python で 自身の Fitness データを定期的に取得し Slack に自動投稿する仕組みを作った話
6
構成について 7
体重計 • 今年1月に購入したもの 約3,000円 • 専用アプリがあり、 Bluetooth でスマートフォン に転送 •
Google Fit と同期してくれる 8
Google Fitness store 9 REST API 80kg 痩せる気あるの? .py Slack
① ①毎朝 体重を測る (アプリで Google Fit と同期) ②GitLab CI が Pythonコードを 毎日定期実行 ③Fit REST API で体重データを取得 ④Matplotlibで折れ線グラフを作成し、 S3 にアップ ⑤Slack に結果を書き込み ⑥結果をメンバーが見て 応援する ② ③ ④ ⑤ ⑥
出力結果 10 平日 正午頃に 社内 Slack へ自動投稿
体重の増減を色でわかりやすく 11
役に立ったもの • Google APIs Explorer ◦ https://developers.google.com/apis-explorer/ ◦ Google Fit
REST API を試せる ◦ 面倒な OAuth を気にせず実行できる • Jupyter Notebook 12
で、結局 痩せたの? 13
効果ありませんでした 14
もう、みんなでやろう! 15 競争相手 がいないと 痩せないんじゃない?
有志で体重の増減を共有! 16 準備中 女性もいるので、 体重は隠すようにする (増減だけでクラフ化)
さいごに 17
まとめ 「Python で始めるお手軽ダイエット」 • Python のおかげで手軽に作成できた。最高! • 応援してくれる仲間がいる。最高! • 誰か手軽に痩せられる方法を教えてください!
18