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
Yuuki Shimizu
August 24, 2019
Programming
0
390
Pythonで始めるお手軽ダイエット(2)
2019.8.24
富士もくもく会 #2 LT
Yuuki Shimizu
August 24, 2019
Tweet
Share
More Decks by Yuuki Shimizu
See All by Yuuki Shimizu
今話題のMCPサーバーをFastAPIでサッと作ってみた
yuukis
0
130
地域ITコミュニティの活性化とAWSに移行してみた話
yuukis
0
360
Gemini API を試した話と山梨でオススメのものを語るLT
yuukis
0
75
山梨のIT勉強会コミュニティを盛り上げるためにアレ作ってみた!
yuukis
0
70
FastAPI を活用した オープンデータAPI の作成
yuukis
0
980
FastAPIで始める やまなし温泉めぐり
yuukis
0
460
Slack の困りごとを何とかしてみた①
yuukis
0
87
Pythonでslackの困りごとを何とかしてみた①
yuukis
0
320
Pythonでお絵かき①
yuukis
0
370
Other Decks in Programming
See All in Programming
エンジニアが挑む、限界までの越境
nealle
1
330
20250426 GDGoC 合同新歓 - GDGoC のススメ
getty708
0
120
ComposeでのPicture in Picture
takathemax
0
140
Duke on CRaC with Jakarta EE
ivargrimstad
1
140
データベースの技術選定を突き詰める ~複数事例から考える最適なデータベースの選び方~
nnaka2992
3
2k
eBPF超入門「o11yに使える」とは (20250424_eBPF_o11y)
thousanda
1
120
エンジニア向けCursor勉強会 @ SmartHR
yukisnow1823
3
13k
Designing Your Organization's Test Pyramid ( #scrumniigata )
teyamagu
PRO
5
1.5k
Serving TUIs over SSH with Go
caarlos0
0
730
LRパーサーはいいぞ
ydah
7
1.4k
実践Webフロントパフォーマンスチューニング
cp20
45
10k
AIコーディングの理想と現実
tomohisa
38
40k
Featured
See All Featured
Why You Should Never Use an ORM
jnunemaker
PRO
56
9.4k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
32
5.6k
Music & Morning Musume
bryan
47
6.5k
How STYLIGHT went responsive
nonsquared
100
5.5k
Designing Experiences People Love
moore
142
24k
We Have a Design System, Now What?
morganepeng
52
7.6k
Mobile First: as difficult as doing things right
swwweet
223
9.6k
GitHub's CSS Performance
jonrohan
1031
460k
The Pragmatic Product Professional
lauravandoore
33
6.6k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.7k
Building Flexible Design Systems
yeseniaperezcruz
329
39k
Agile that works and the tools we love
rasmusluckow
329
21k
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