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で始めるお手軽ダイエット
Search
Yuuki Shimizu
March 16, 2019
Programming
0
620
Pythonで始めるお手軽ダイエット
2019.3.16
Shingen.py #3 LT
Yuuki Shimizu
March 16, 2019
Tweet
Share
More Decks by Yuuki Shimizu
See All by Yuuki Shimizu
Perlで痩せる
yuukis
1
690
Pythonで遊べるLEDボードの紹介
yuukis
0
70
今話題のMCPサーバーをFastAPIでサッと作ってみた
yuukis
0
220
地域ITコミュニティの活性化とAWSに移行してみた話
yuukis
0
400
Gemini API を試した話と山梨でオススメのものを語るLT
yuukis
0
81
山梨のIT勉強会コミュニティを盛り上げるためにアレ作ってみた!
yuukis
0
75
FastAPI を活用した オープンデータAPI の作成
yuukis
0
1k
FastAPIで始める やまなし温泉めぐり
yuukis
0
460
Slack の困りごとを何とかしてみた①
yuukis
0
90
Other Decks in Programming
See All in Programming
Systèmes distribués, pour le meilleur et pour le pire - BreizhCamp 2025 - Conférence
slecache
0
100
型付きアクターモデルがもたらす分散シミュレーションの未来
piyo7
0
810
「ElixirでIoT!!」のこれまでとこれから
takasehideki
0
370
LT 2025-06-30: プロダクトエンジニアの役割
yamamotok
0
430
イベントストーミング図からコードへの変換手順 / Procedure for Converting Event Storming Diagrams to Code
nrslib
1
400
NPOでのDevinの活用
codeforeveryone
0
190
なぜ「共通化」を考え、失敗を繰り返すのか
rinchoku
1
510
Cursor AI Agentと伴走する アプリケーションの高速リプレイス
daisuketakeda
1
130
deno-redisの紹介とJSRパッケージの運用について (toranoana.deno #21)
uki00a
0
150
Bytecode Manipulation 으로 생산성 높이기
bigstark
2
380
Cline指示通りに動かない? AI小説エージェントで学ぶ指示書の書き方と自動アップデートの仕組み
kamomeashizawa
1
570
AIエージェントはこう育てる - GitHub Copilot Agentとチームの共進化サイクル
koboriakira
0
380
Featured
See All Featured
A better future with KSS
kneath
239
17k
VelocityConf: Rendering Performance Case Studies
addyosmani
330
24k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.9k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Making Projects Easy
brettharned
116
6.3k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
790
The Language of Interfaces
destraynor
158
25k
Docker and Python
trallard
44
3.4k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.8k
Site-Speed That Sticks
csswizardry
10
660
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
2.9k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
657
60k
Transcript
【Shingen.py #3 LT】 Python で始める お手軽ダイエット 2019. 3. 16 しみず ゆうき
1
おまえ誰よ? しみず ゆうき • Android / iOS プログラマ • 甲府生まれ
甲府育ち ※ 現在は東京に出稼ぎ中(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 平日 朝9:00頃に 社内 Slack へ自動投稿
体重の増減を色でわかりやすく 11
役に立ったもの • Google APIs Explorer ◦ https://developers.google.com/apis-explorer/ ◦ Google Fit
REST API を試せる ◦ 面倒な OAuth を気にせず実行できる • Jupyter Notebook 12
で、結局 痩せたの? 13
14 まだ始めていません!!! • 実は、今朝完成したばかり • 来週から稼働させます • 目指せ!•• kg
さいごに 15
まとめ 「Python で始めるお手軽ダイエット」 • Python のおかげで手軽に作成できた。最高! • 応援してくれる仲間がいる。最高! • 誰か手軽に痩せられる方法を教えてください!
16