Enhancement suggestion: Add swiss nutrition database as source
Hi, just as a suggestion (not sure if this helps or just duplicates data): There is a public and free of charge Nutrition DB also available providing nutrition Data in English, German, French, Italian under https://naehrwertdaten.ch/en/ Could be a good opportunity to give users another choice where to get data from.
BR Stephan
Do they have an API?
I saw https://f-droid.org/en/packages/com.flasskamp.energize/ using it - no clue about how the access works. Looking at the data here https://naehrwertdaten.ch/en/downloads/ it looks like static and regular updated infromation.
Great idea to include the Swiss Nutrition Database. This would make the app fuly funtional with basic ingredians.
The app Energize has an offline version of this DB build in.
@Karhu83 The app already supports basic ingredients via the USDA API. You can set it up under Settings > Integration > USDA API.
If you really absolutely need the Swiss Nutrition Database in the app, you could import it manually via the import interface, explained here: https://github.com/davidhealey/waistline/blob/master/FAQ.md#do-you-plan-to-add-support-for-the-xxx-online-food-database-or-api-available-in-my-country
I am going to import the Swiss data. Now I have some questions:
- As the data is in German, is there a full list of the correct nutrition names?
- How to deal with the units, if the portion is 100 and the unit is g but the given nutrition unit is mg, do I need to calculate them to g prior import?
Here is a list that contains the nutrition names and also the expected unit (g/mg/µg) for each of them:
https://github.com/davidhealey/waistline/blob/064c4d109e90507e22497a3c75295d516cc862ef/www/index.js#L36-L85
@EmilJunker that helped a lot! Thanks! Consider to list this in the FAQ section.