Skip to content

Automatically book&notify dinner for Chen. Writen in Python

Notifications You must be signed in to change notification settings

Chenimal/dinnerBooker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Automatically book&notify dinner for Chen. Writen in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages