Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Pythonで始めるお手軽ダイエット
Search
しみず ゆうき
March 16, 2019
Programming
660
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Pythonで始めるお手軽ダイエット
2019.3.16
Shingen.py #3 LT
しみず ゆうき
March 16, 2019
More Decks by しみず ゆうき
See All by しみず ゆうき
技術イベントの甲府一極集中問題をオープンデータで解決してみる
yuukis
0
99
12年前のAndroidアプリを蘇らせた話
yuukis
0
74
EventBridgeで地域イベントのイベントストリームを作ってみた
yuukis
0
140
2025年 山梨の技術コミュニティを振り返る
yuukis
0
480
サイトを作ったらNFCタグキーホルダーを爆速で作れ!
yuukis
0
1.3k
Perlで痩せる
yuukis
1
930
Pythonで遊べるLEDボードの紹介
yuukis
0
170
今話題のMCPサーバーをFastAPIでサッと作ってみた
yuukis
0
730
地域ITコミュニティの活性化とAWSに移行してみた話
yuukis
0
630
Other Decks in Programming
See All in Programming
FreeBSDでZabbixを動かす
kenkino
0
320
SONY CISC-NEWS NWS-1750 + NWB-225 フレームバッファの NetBSD/news68k ドライバ実装 / OSC2026Hiroshima
tsutsui
0
140
Vue Fes Japan 2026 タイムテーブル徹底解説
448jp
1
500
The Good Stuff, Not the Slop: Engineering High-Quality Android Apps with Modern AI Tooling
danybony
1
260
The Rails Doctrine Decade
koic
2
340
Verilogで学ぶCPU自作入門.pdf
uyuki234
2
1.5k
JRuby: Past, Present, and Future
headius
0
190
AWS DevOps Agentで インシデント対応をAIに任せたい
honmarkhunt
7
3.1k
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
500
スマート反転とウェブアクセシビリティ
camiha
0
210
Agents on Rails - Rails at Scale 2026
irinanazarova
0
180
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
150
Featured
See All Featured
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
200
BBQ
matthewcrist
89
10k
Technical Leadership for Architectural Decision Making
baasie
3
580
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
2k
Paper Plane (Part 1)
katiecoart
PRO
2
11k
The Pragmatic Product Professional
lauravandoore
37
7.4k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
700
Scaling GitHub
holman
464
140k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.8k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
340
Prompt Engineering for Job Search
mfonobong
0
460
WENDY [Excerpt]
tessaabrams
14
39k
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