1.2 KiB
1.2 KiB
Nutri
Nutri is a C++ project that retrieves and processes nutritional information from various sources.
Currently supported sources
- WolframAlpha
- OpenFoodFacts
Features
- Fetch and display nutrition data
- Export data to a CSV file
- Cache previous queries
- alternative QT based GUI
Installation
Dependencies
These libraries will be fetched automatically via CMake if they are not already installed on your system.
Clone the repository
git clone --depth=1 https://git.etenie.net/etenie/nutri.git
cd nutri
Build with CMake
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j$(nproc)
Now you will find the nutri
executable in the build
dir.
Usage
-h, --help: Print help
-f, --food: Specify the food item
-a, --amount: Specify the amount (in grams)
Example usage:
./nutri -f "ground beef" -a 100
Cals: 236 kcal
Protein: 26 g
Carbs: 0 g
Fats: 14 g
License
This project is licensed under the MIT License - see the LICENSE file for details.