Skip to content

HelinXu/morning_bird

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a project to document the time you get up everyday and visualize it in a website. It will document the first time when you type getup in your terminal everyday. The project is based on mkdocs and mkdocs-material package. The website is hosted on github page. To preview the website, please click here.

To make the project for your own:

  1. fork the project to your own github account
  2. git clone the project to your local.
git clone https://github.com/$github_username/getup.git
  1. delete the data folder
  2. if you haven't install python3, please install python3 first: python3, anaconda or miniconda
  3. (optional)install the sl and figlet package
# if you are using mac, you can install sl by brew:
brew install sl
# if you are using linux, you can install sl by apt:
sudo apt-get install sl
# if you are using mac, you can install figlet by brew:
brew install figlet
# if you are using linux, you can install figlet by apt:
sudo apt-get install figlet
  1. modify the parameter in deploy.sh file to your own
python main.py \
--cutoff $before_when_you_would_never_get_up_but_stay_up_late(float) \
--getup_threshold $time_you_should_get_up(float) \
--recent_days $how_many_day_you_want_to_show_details_of_get-up \
--name $your_name
  1. modify the infomation in personal_info.yml file to your own
  2. set the github page to the gh-pages branch image
  3. give workflow Read and write permissions: image image
  4. run the following command to generate get-up data:
bash getup.sh
  1. set shortcut in your laptop to run the getup.sh command: add this in your ~/.bashrc if you use bash, or add it in your ~/.zshrc if you use zsh.
alias getup="cd $project_position; bash getup.sh"

Congratulations! now you can open your terminal and type getup to document your get-up time! after that, there will be a train running in your terminal to celebrate your get-up time!: image image image