caffeine bedtime calculator
1.0.0
咖啡因就寢時間計算器。 2017 Seth L
版本:0.0.3
根據代謝半衰期為5.7小時,您可以合理地期望您的睡眠不再受到咖啡因的損害的日期/時間。
參數:
TARGET: Natural number. Target caffeine amount (in milligrams) for
bedtime. Recommendation: 50 to 100
TIME_AMOUNT: Format is '24-hour-time:amount'. 'Amount' is milligrams of
caffeine. E.g, '1100:300'
例子:
python cbc.py 75 '1100:300' '1500:5'
75是用戶在就寢時在系統中想要的咖啡因多少毫克。'1100:300'表示用戶在上午11:00有300毫克的咖啡因'1500:5'表示用戶在3:00 pm有5mg的咖啡因
pip install virtualenv ) # Clone repo
git clone https://github.com/sethll/caffeine-bedtime-calculator.git
cd caffeine-bedtime-calculator
# Using a virtual environment is recommended, but not required. You may
# skip these steps.
virtualenv venv -p python3
. venv/bin/activate
# Install dependencies
pip install -r requirements.txt