Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a nutrition facts input game #17

Open
teolemon opened this issue Jun 3, 2019 · 6 comments
Open

Add a nutrition facts input game #17

teolemon opened this issue Jun 3, 2019 · 6 comments

Comments

@teolemon
Copy link
Member

teolemon commented Jun 3, 2019

image

Add a simple little game that takes suspicious nutrition tables and propose them for review.

  • only the main nutrients are proposed
  • there's a box with the current value (or lack thereoff)
  • there a button to confirmate the value (request sent to server with new value)
  • there's a button to trash the value and validate (request sent to server with empty value)

Empty nutrition tables: https://world.openfoodfacts.org/state/photos-validated/state/nutrition-facts-to-be-completed/1.json?fields=code,images

@teolemon
Copy link
Member Author

@alexfauquette would you be willing to take on that one ?

@alexfauquette
Copy link
Member

@teolemon Yes, that seems fun.

Could you give me show me some documentation about the API. In order to know which entry point should I access to validate/delete nutrition fact, and how to get images.

@teolemon
Copy link
Member Author

https://en.wiki.openfoodfacts.org/API/Write#Add_the_nutrition_facts for the WRITE API.
https://en.wiki.openfoodfacts.org/API/Read/Product#Ingredients_image for the ingredients image, within the product JSON
We should already have code within Hunger Games to fetch the ingredients image that @ArnaudBarre added for the feature on ingredient list checking
Ideally, it would be a mode similar to his, that can be activated with a url flag ?
openfoodfacts/openfoodfacts-hungergames@84a64e6

@alexfauquette
Copy link
Member

Thanks, I will look to all that during the end of this week

@teolemon
Copy link
Member Author

ok @alexfauquette we have an initial something that can provide predicted values by Raphael
are you on the Open Food Facts slack ? >> https://slack.openfoodfacts.org

@alexfauquette
Copy link
Member

Hi, yes I'm on slack, but there are so many channels. I started this week-end, for now, I can fetch data et display the picture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants