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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
しみず ゆうき
March 16, 2019
Programming
660
0
Share
Pythonで始めるお手軽ダイエット
2019.3.16
Shingen.py #3 LT
しみず ゆうき
March 16, 2019
More Decks by しみず ゆうき
See All by しみず ゆうき
EventBridgeで地域イベントのイベントストリームを作ってみた
yuukis
0
110
2025年 山梨の技術コミュニティを振り返る
yuukis
0
380
サイトを作ったらNFCタグキーホルダーを爆速で作れ!
yuukis
0
1.1k
Perlで痩せる
yuukis
1
870
Pythonで遊べるLEDボードの紹介
yuukis
0
140
今話題のMCPサーバーをFastAPIでサッと作ってみた
yuukis
0
660
地域ITコミュニティの活性化とAWSに移行してみた話
yuukis
0
580
Gemini API を試した話と山梨でオススメのものを語るLT
yuukis
0
110
山梨のIT勉強会コミュニティを盛り上げるためにアレ作ってみた!
yuukis
0
110
Other Decks in Programming
See All in Programming
These Five Tricks Can Make Your Apps Greener, Cheaper, & Nicer
hollycummins
0
180
ふつうのFeature Flag実践入門
irof
0
130
Agentic UI beyond Chats Architecture Patterns & Open Standards @ngMunich 05/2026
manfredsteyer
PRO
0
140
The Arts and Crafts of Work in the AI Era — Toward Mastery in Software Development
kuranuki
0
320
密結合なバックエンドから TypeScript のコードを生成する
kemuridama
1
340
自動レビューエンジンの実装と運用 ~レビューのない世界へ~
kurukuru1999
2
250
色即是空、空即是色、データサイエンス
kamoneggi
1
150
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
270
AWSはOSSをどのように 考えているのか?
akihisaikeda
1
140
今さら聞けないCancellationToken
htkym
0
180
AI 時代のソフトウェア設計の学び方
masuda220
PRO
2
350
UaaL×Androidアプリのメモリ計測 — Memory Profilerの先へ
rio432
0
170
Featured
See All Featured
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
65
55k
Paper Plane (Part 1)
katiecoart
PRO
0
7.8k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.7k
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
130
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
180
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.4k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
190
Making the Leap to Tech Lead
cromwellryan
135
9.8k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
180
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