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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
しみず ゆうき
August 24, 2019
Programming
0
400
Pythonで始めるお手軽ダイエット(2)
2019.8.24
富士もくもく会 #2 LT
しみず ゆうき
August 24, 2019
Tweet
Share
More Decks by しみず ゆうき
See All by しみず ゆうき
2025年 山梨の技術コミュニティを振り返る
yuukis
0
270
サイトを作ったらNFCタグキーホルダーを爆速で作れ!
yuukis
0
1k
Perlで痩せる
yuukis
1
830
Pythonで遊べるLEDボードの紹介
yuukis
0
110
今話題のMCPサーバーをFastAPIでサッと作ってみた
yuukis
0
590
地域ITコミュニティの活性化とAWSに移行してみた話
yuukis
0
530
Gemini API を試した話と山梨でオススメのものを語るLT
yuukis
0
100
山梨のIT勉強会コミュニティを盛り上げるためにアレ作ってみた!
yuukis
0
100
FastAPI を活用した オープンデータAPI の作成
yuukis
0
1.1k
Other Decks in Programming
See All in Programming
CSC307 Lecture 03
javiergs
PRO
1
490
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
200
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
21
7.4k
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
1k
Package Management Learnings from Homebrew
mikemcquaid
0
230
今から始めるClaude Code超入門
448jp
8
9.1k
疑似コードによるプロンプト記述、どのくらい正確に実行される?
kokuyouwind
0
390
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
480
CSC307 Lecture 05
javiergs
PRO
0
500
ノイジーネイバー問題を解決する 公平なキューイング
occhi
0
110
登壇資料を作る時に意識していること #登壇資料_findy
konifar
4
1.6k
Raku Raku Notion 20260128
hareyakayuruyaka
0
360
Featured
See All Featured
Joys of Absence: A Defence of Solitary Play
codingconduct
1
290
30 Presentation Tips
portentint
PRO
1
220
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Building an army of robots
kneath
306
46k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
68
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
170
Utilizing Notion as your number one productivity tool
mfonobong
3
220
Optimizing for Happiness
mojombo
379
71k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1.1k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.4k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
320
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