tomaskadlec / lunch_guy Goto Github PK
View Code? Open in Web Editor NEWA simple application for retrieving lunch menus of selected restaurants
License: MIT License
A simple application for retrieving lunch menus of selected restaurants
License: MIT License
Today, I see a false meal in Na Urale list:
zdarma. Nové stránky na www.drest.cz - Kč
It would be great to provide Dockerfile || docker-compose to make developement and testing less painful.
I have feature request, would you be willing to add GPS coors to restaurants, for several reason such as quick lookup or navigation on mobile platform?
Thanks, and keep the good work.
Allow others to use the app as a service to build another services. Start simply with
/api/v1/restaurants
)/api/v1/restaurants/{restaurantID}
)/api/v1/restaurants/{restaurantID}/menu
)Selected restaurants may be used as a filter to limit a number of displayed menus.
Menu is not hidden after expiration. Respect the date menu is valid for.
It would be great to have tabs with names of the restaurants on the top of the page. There is too many information on the page and I do not need to have two column layout since I never compare the restaurants.
If command is called as follows
bin/console d2s:run --env=prod --output slack 'Na Urale'
it fails with an exception:
[RuntimeException]
Options d2s.output.slack.{uri,username,channel} are required.
Exception trace:
() at src/Net/TomasKadlec/d2sBundle/Service/Output/Slack.php:44
Net\TomasKadlec\d2sBundle\Service\Output\Slack->send() at src/Net/TomasKadlec/d2sBundle/Service/Output.php:57
Net\TomasKadlec\d2sBundle\Service\Output->send() at src/Net/TomasKadlec/d2sBundle/Service/Application/Application.php:128
Net\TomasKadlec\d2sBundle\Service\Application\Application->output() at src/Net/TomasKadlec/d2sBundle/Command/RunCommand.php:61
Na webe sa http://obedar.fit.cvut.cz/obedar/ sa nezobrazuje jedalny listok restaurace na MK.
add enable/disable button for switch food name like https://pbs.twimg.com/media/CaHqf2qWQAI5Vwj.jpg:large
Implement parser for http://www.podjuliskou.cz/menu/
Obedar doesn't load menu for Kulatak restaurant. It look like they have changed their website, so it might be necessary to rewrite the parser for Kulatak.
Address of restaurant is quite important.
The perfect feature should be link to google/seznam maps with. Something like.
Na Urale
Address of restaurant {link google.maps} {link seznam maps} {copy to clipboard}
Do not use sf favicon.
Add a page with a list of all contributors - take it from GitHub API via php-gitlab-api
Menus should be easily distinguished. A colored header and a tile-like look should be sufficient to solve the issue.
Problems to be solved:
Hi!
Restaurant U Pětníka is missing array with "Hlavní jídla" or similar, the meals are actually marked as "Polévky".
Using:
curl -X GET "http://obedar.fit.cvut.cz/obedar/api/v1/restaurants/U Pětníka/menu.json"
Recieved payload:
{
"links": {
"self": "http://obedar.fit.cvut.cz/obedar/api/v1/restaurants/U%20P%C4%9Btn%C3%ADka/menu"
},
"data": {
"type": "menu",
"id": "U Pětníka",
"attributes": {
"title": "U Pětníka",
"cached": "2016-05-24T01:21:48+02:00",
"content": {
"Polévky": [
[
"Silný hovězí vývar se zeleninou a bramborovými nočky",
29
],
[
"Šumavská bramboračka",
29
],
[
"Španělské studené gaspachio",
39
],
[
"Červenou cibulí zdobený lehce pikantní hovězí gulášek s houskovým knedlíkem",
109
],
[
"Dlouze tažená hovězí líčka na českém špeku s rozmarýnem, mačkané brambory s jarní cibulkou",
109
],
[
"S hrstkou divokého koření pečená vepřová plec a dušené hlávkové zelí, bramborový knedlík",
99
],
[
"V pivní tomatové marinádě 24 hodin naložená vepřová masová žebra, mačkané brambory s jarní cibulkou",
99
],
[
"Hamburger z kančího masa s křupavou slaninou v bulce, opékané brambory",
119
],
[
"Grilovaný filet z okouna s citronovou hrubou mořskou solí, podávaný na trhaných salátech s balsamikovým octem a cherry rajčátky s rozpečenou bagetkou",
119
],
[
"Vaječná omeleta ze tří slepičích vajíček s listovým špenátem, vař. brambor",
99
],
[
"V tradičním trojobalu smažený sýr s plísní na povrchu, vařené brambory a domácí tatarská omáčka",
99
],
[
"Krůtí nudličky s chilli papričkami, fazolkami, paprikou a cibulí, dušená jasmínová rýže",
89
],
[
"Vepřové panenské biftečky s pepřovou omáčkou, pečená brambora ve slupce",
149
],
[
"Kuřecí kapsička nadívaná slaninou a olomouckým tvarůžkem, bramborové hranolky",
149
]
],
"Menu": [
[
"Šumavská bramboračka",
"-"
],
[
"S hrstkou divokého koření pečená vepřová plec a dušené hlávkové zelí, bramborový knedlík",
99
]
]
}
},
"relationships": {
"restaurant": {
"links": {
"self": "http://obedar.fit.cvut.cz/obedar/api/v1/restaurants/U%20P%C4%9Btn%C3%ADka"
}
}
}
}
}
Trying to reach previously working endpoints and getting 404
╰─○ curl -X GET http://obedar.fit.cvut.cz/obedar/api/v1/restaurants.json
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>An Error Occurred: Not Found</title>
</head>
<body>
<h1>Oops! An Error Occurred</h1>
<h2>The server returned a "404 Not Found".</h2>
<div>
Something is broken. Please let us know what you were doing when this error occurred.
We will fix it as soon as possible. Sorry for any inconvenience caused.
</div>
</body>
</html>
It would be great to add link to github project on http://obedar.fit.cvut.cz, so anybody can make a contribution!
It is required by EU regulations.
Interesting reading:
Examples:
Implementations:
Add a description how the application works how is deployed.
stdout
output has an empty configuration merge fails.
Area selection feature allows to filter out menus irrelevant to the user. Area selection may be automatic using geolocation capabilities of a browser or manual (user input). Afterwards checks must be run to determine if a restaurant does or does not belong to the selected area.
This feature requires addresses of restaurants to be given/parsed.
Location can be cached for a long time.
Most important thing regarding this feature it that it allows to run the application for different areas!
It'l be greate to run ./bin/console d2c:run -- all
instead of writing list of all restaurants.
For restaurants such as http://www.stravovanihrbek.websnadno.cz/jidelnicek.html would be nice to have some ocr to parse lunch menu :-)
There is no timestamp on the page determining validity of the menu, so there is no way how to distinguish which day menu is shown (especially around midnight).
An option to change channel is useful for testing at least. Proposition: --slack-channel
or -s
for short.
Links to browser pages are broken. Schema is missing.
Add support for Google Analytics tracking code.
Console commands are now run in order to clear cache and link assets.
If device-pixel-ratio
is greater or equal 2 provide hires css to improve legibility.
Add a link somewhere in the footer, target should be this repository.
Add support for personalization of the web app based on the information stored in cookie(s).
The application has static configuration which is loaded on startup. However, it would be nice to allow configuration of several features at runtime, to list a few of them
A storage and interface to it is required. A simple file or a filesystem structure should be sufficient (configuration will be re/loaded when it is entered or application is restarted). It should be handled by abstract filesystem (as League/Flysystem)
Some restaurants do not specify date their menu is valid for and/or parsers do not validate them. It is necessary to provide a way to invalidate data stored in cache and reload it from the web.
Obedar is IMHO perfect project to test out CI/CD setup.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.