Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 1.04 KB

README.md

File metadata and controls

28 lines (23 loc) · 1.04 KB

dinnerBooker

Book dinner at www.chuiyanxiaochu.com(炊烟小厨) for lazy guys like you. Writen in Python 3.x

Usage

  1. git clone git@github.com:Chenimal/dinnerBooker.git
  2. cd dinnerBook
  3. git submodule update --init
  4. crontab -e: 0 9 * * 1-5 export LANG="en_US.UTF-8"; /usr/local/bin/python /Users/chen/playground/dinnerBooker/autoBooker.py

Booking

  • By sending POST request with data {did, teamid, token, name}
  • Auto-select dish based upon the order of preference list. (one at the top is the favorite)
  • Record new dishes
    • The new dishes names would be added into preference file starting with '# '
    • User could include new dishes by removing '# ' and re-rank them

OSX only: Notification by terminal-notifier

  • Which dish is booked
  • New dishes in todays menu when they are not in preference list
  • Error message if failed

Note

To make it work in crontab, remember to add export LANG="en_US.UTF-8"; in front of command

Todo

  1. add say notification for Mac OSX
  2. documenting
  3. compatible with linux