Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Pythonで始めるお手軽ダイエット(2)
Search
Yuuki Shimizu
August 24, 2019
Programming
0
400
Pythonで始めるお手軽ダイエット(2)
2019.8.24
富士もくもく会 #2 LT
Yuuki Shimizu
August 24, 2019
Tweet
Share
More Decks by Yuuki Shimizu
See All by Yuuki Shimizu
サイトを作ったらNFCタグキーホルダーを爆速で作れ!
yuukis
0
980
Perlで痩せる
yuukis
1
800
Pythonで遊べるLEDボードの紹介
yuukis
0
98
今話題のMCPサーバーをFastAPIでサッと作ってみた
yuukis
0
540
地域ITコミュニティの活性化とAWSに移行してみた話
yuukis
0
510
Gemini API を試した話と山梨でオススメのものを語るLT
yuukis
0
93
山梨のIT勉強会コミュニティを盛り上げるためにアレ作ってみた!
yuukis
0
88
FastAPI を活用した オープンデータAPI の作成
yuukis
0
1k
FastAPIで始める やまなし温泉めぐり
yuukis
0
480
Other Decks in Programming
See All in Programming
クラウドに依存しないS3を使った開発術
simesaba80
0
160
Vibe codingでおすすめの言語と開発手法
uyuki234
0
120
大規模Cloud Native環境におけるFalcoの運用
owlinux1000
0
190
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
340
バックエンドエンジニアによる Amebaブログ K8s 基盤への CronJobの導入・運用経験
sunabig
0
170
從冷知識到漏洞,你不懂的 Web,駭客懂 - Huli @ WebConf Taiwan 2025
aszx87410
2
3k
Flutter On-device AI로 완성하는 오프라인 앱, 박제창 @DevFest INCHEON 2025
itsmedreamwalker
1
150
Basic Architectures
denyspoltorak
0
120
tparseでgo testの出力を見やすくする
utgwkk
2
280
PC-6001でPSG曲を鳴らすまでを全部NetBSD上の Makefile に押し込んでみた / osc2025hiroshima
tsutsui
0
170
組み合わせ爆発にのまれない - 責務分割 x テスト
halhorn
1
160
GoLab2025 Recap
kuro_kurorrr
0
780
Featured
See All Featured
Technical Leadership for Architectural Decision Making
baasie
0
180
A Modern Web Designer's Workflow
chriscoyier
698
190k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
0
63
Information Architects: The Missing Link in Design Systems
soysaucechin
0
710
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
34
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
130
Producing Creativity
orderedlist
PRO
348
40k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
28
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
0
260
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
120
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