mraiur/sleep-logger

Log your sleep and wakeup. Next will have a graph display your sleep schedule for the past X days.

1.0.1 2017-04-09 12:29 UTC

This package is not auto-updated.

Last update: 2024-03-16 23:42:00 UTC


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

Blog

More on blog.mraiur.com

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.