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に300mgのカフェインを持っていたことを意味します'1500:5'ユーザーが午後3時に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