Comments (7)
Also calories could be used when the calories field is implemented in the product edit page.
from grocy-android.
Hello,
Great enhancement 👋😊
from grocy-android.
From the Open Food Facts API Documentation
READ requests allow you to retrieve the nutritional data of a product with a barcode.
GET
https://[countrycode].openfoodfacts.org/api/v0/product/[barcode].json
Example:
GEThttps://world.openfoodfacts.org/api/v0/product/737628064502.json
Authentication
No authentication is required for READ operations.
However, you have to add a User-Agent HTTP Header with the name of your app, the version, system and a url (if any), not to be blocked by mistake.Example: User-Agent:
NameOfYourApp - Android - Version 1.0 - www.yourappwebsite.com
from grocy-android.
Json format to get product name:
https://world.openfoodfacts.org/api/v0/product/42100454.json
User-Agent: Grocy Android - v1.2.0 - https://github.com/patzly/grocy-android
{
"product":{
"product_name":"Alnatura Mandelschnitte, Mandel"
}
}
from grocy-android.
We'll leave it at the product name for now.
from grocy-android.
@patzly Probably is it possible to add also:
https://github.com/openfoodfacts/openbeautyfacts and
https://www.codecheck.info/
?
from grocy-android.
https://www.codecheck.info/ is not possible because the API is not open – and it is also protected via Google Captcha.
But maybe we can implement https://world.openbeautyfacts.org/, I will open a new issue for that.
from grocy-android.
Related Issues (20)
- issue in the creation of similar products HOT 1
- create product via openFoodFacts with its Meta-Data HOT 1
- extend product-meta-data with openFoodFacts data HOT 1
- App crashes when opening settings HOT 7
- Crash when trying to setup / Invalid Product / Crash when opening settings HOT 6
- Unit conversion on last price and consume wrong
- Recipe list shows only dates instead of names HOT 6
- How to swap between long and short press behavior HOT 2
- Crash when opening stock overview or recipes page HOT 12
- Shopping list reordering
- Newest release 3.4.2 not available for download HOT 1
- Disabling animations makes it impossible to log in
- Feature Request: additional quantity multiplier field on Purchase HOT 2
- Feature Request: Manual Offline mode for shopping list HOT 1
- Feature Request: Deep linking HOT 4
- Stuck with front camera only/mirror problem HOT 6
- New Product Creation Defaults to 1 Unit despite Default Amount for Purchase Setting
- Crash on all scanning attempts HOT 7
- App Crashes When Adding a New Product Without Scanning Barcode - IllegalArgumentException in ScannerMLKit HOT 4
- [Bug] Keyboard hides Notes in Purchase mode. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grocy-android.