Skip to content
My personal API to track circadian rhythm
JavaScript HTML Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api
bin
config
public
schema
.eslintrc.yml
.gitignore
CONTRIBUTING.md
LICENSE
README.md
app.js
circadian.sh
notif.scpt
package-lock.json
package.json

README.md

circadian-api

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

  1. Clone the repository
  2. Run npm install
  3. Run npm start

Additional info

To remind myself about filling this every hour or so, I made a crontab trigger a bash script.

Crontab

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.”

Bash script

circadian.sh

This script runs an Apple script internally which sounds a chime and speaks a reminder.

notif.scpt

You can’t perform that action at this time.