Skip to content
/ R1D2 Public

[DEPRECATED] A robot that extracts the CERN restaurant menus for you.

License

Notifications You must be signed in to change notification settings

kdungs/R1D2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

R1D2 Build Status

DEPRECATED Since the underlying restaurant website changed fundamentally, the code in this repository does no longer work. Fortunately, for people at CERN, there is an API available on the new restaurant website. Have a look at the mattermost restaurants bot that Adrian Monnich made.

This repository is kept only to preserve the history.

A robot that extracts the menus of the CERN restaurants (R1, R2, R3) for you.

API

GET-only API using Flask. There are three types of commands that can be composed to query the menu.

Specify the date

/week
/today
/tomorrow
/monday
/…
/friday

Specify the restaurant

/r1
/r2
/r3

Specify the type of dish

/menu1
/menu2
/menu3
/vegetarian
/speciality
/grill
/pasta
/pizza

There is an example version running on r1d2.herokuapp.com. Test it via curl https://r1d2.herokuapp.com/today/r1/vegetarian.

Please note that due to the super simple way this API is implemented the order of the parameters does not matter but using two mutually exclusive parameters together will result in an empty menu.

The server uses shelve to store the menu on the server and thus reduce the number of times the data needs to be extracted from the Novae website.

Telegram bot

In addition to the simple API, this app also runs a primitive bot for the Telegram mesenger. It's name is @r1d2_bot, click on the link to chat with it.

About

[DEPRECATED] A robot that extracts the CERN restaurant menus for you.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages