This API is a personal way for me to track my Circadian rhythym throughout the day. Tracking Circadian rhythms helps one to identify the productive parts of their day.
This could have been done using a simple spreadsheet, but I like APIs! I wanted to work with Express.JS and SQLite , so this was a learning project. Also, sometimes I like to do things the hard way.
You can find the API documentation here
How to run
- Clone the repository
To remind myself about filling this every hour or so, I made a
crontab trigger a bash script.
0 7-21 * * 1-5 bash ~/circadian.sh
“At minute 0 past every hour from 7 through 21 on every day-of-week from Monday through Friday.”
This script runs an Apple script internally which sounds a chime and speaks a reminder.