mraiur/sleep-logger
Composer 安装命令:
composer create-project mraiur/sleep-logger
包简介
Log your sleep and wakeup. Next will have a graph display your sleep schedule for the past X days.
README 文档
README
A simple log server for tracking start and end of polyphasic sleep cicles. For now is for personal use.
Setup
php composer.phar install
Copy the config/config.sample.php to config/config.local.php and set the environment config.
Then run
php vendor/bin/phinx migrate
Preview
Usage
I am running Tasker on android and each nap/core sleep the task posts a request with a token and event type to HTTPS://SERVER/track/{EVENT_TYPE} with post param a user hash for "some" authentication.
Event Types
1 = Start of sleep/nap
2 = End of sleep/nap
TODO
Refactor the code if i get some time and continue the polyphasic sleeping.
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-04-07