# Primitive Relative Scheduler
by Apollia - [http://apollia.com/](http://apollia.com/)
I wrote this script because I have severe sleep issues which I believe might be Non-24-hour Sleep-Wake Disorder. [http://non24.com/](http://non24.com/)
This script asks for the time you woke up, then generates a schedule with events relative to that time (and some fixed events, if you want). The schedule is an HTML file viewable in a web browser.
Also sets up cron to display reminders.
#### WARNING: This script will wipe out any existing cron events!
A Python 2.6 script made in Lucid Puppy Linux 5.2.8 version 004. Also works in Lighthouse 64 Puppy Linux 6.02 Beta 2.
Might work on other platforms, or could be modified to do so.
I probably won't be updating the Python version much in the future, since Python is one of my least favorite languages. I'll probably rewrite this in PHP or something someday.
Original version completed in March or April 2012.
First releasable version completed and released July 21, 2014.
Version 1.1 completed and released August 10, 2017. Now, some editable settings are stored in the file "config.ini"
But I was unable to figure out how to move the schedule itself (or any other Python code) out of the main script, since Python imports don't work anywhere near as intuitively as PHP includes. I'd probably be better off writing this in PHP instead, or maybe even Bash.
<br>19:57:27 07/18/2018. Stopped noting version numbers. Added a new event to make the relative scheduler relaunch itself at the same time as the "Projected_Wake_Time_If_Asleep_After_16_Hours_Awake" event.
This software is free (as in freedom and as in price), libre, and open source!
Under the GNU Affero General Public License v3.0.
Copyright (C) 2012-2018 Apollia
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <[http://www.gnu.org/licenses/](http://www.gnu.org/licenses/)>.
Contact info: [http://astroblahhh.com/contact-apollia.shtml](http://astroblahhh.com/contact-apollia.shtml)