Dieses Projekt stellt Tools zum Importieren und Exportieren von Lebensmitteln aus einer Mealie Instanz bereit.
Mit jedem Release werden ausführbare Windows-Dateien (.exe) für Import und Export sowie eine Beispiel-Konfigurationsdatei bereitgestellt.
- Export: Exportiere alle Lebensmittel deiner Mealie-Instanz als JSON-Datei.
- Import: Importiere Lebensmittel aus einer JSON-Datei in deine Mealie-Instanz.
- Gehe zum Releases-Bereich dieses Repositories.
- Lade die gewünschte ZIP-Datei herunter:
Food_export_package.zipfür den ExportFood_import_package.zipfür den Import
- Entpacke die ZIP-Datei in einen beliebigen Ordner.
- Benenne die Datei
.env.examplein.envum. - Öffne die
.env-Datei und trage deine Mealie-URL sowie deinen API-Key ein:
MEALIE_URL=https://deine-mealie-url.de
MEALIE_API_KEY=dein_api_key
- Export:
StarteFood_export.exeper Doppelklick oder über die Kommandozeile.
Beispiel (Kommandozeile):
Food_export.exe --export mealie-export.json
- Import:
StarteFood_import.exeper Doppelklick oder über die Kommandozeile.
Beispiel (Kommandozeile):
Food_import.exe --import de_DE.json
Eine Beispiel-JSON mit deutschen Lebensmitteln (de_DE.json) ist im Repository enthalten und kann als Vorlage für den Import verwendet werden.
- Dieses Projekt basiert auf der Mealie API.
- Besonderer Dank an den Mealie-Projektersteller!
- Die originalen Lebensmittel-JSON-Dateien für verschiedene Sprachen gibt es in dem offiziellen Mealie Repository:
Mealie Food Localizations.
This project provides tools to import and export foods from a Mealie instance.
Each release includes ready-to-use Windows executables (.exe) for import and export, plus an example configuration file.
- Export: Export all foods from your Mealie instance as a JSON file.
- Import: Import foods from a JSON file into your Mealie instance.
- Go to the Releases section of this repository.
- Download the desired ZIP file:
Food_export_package.zipfor exportFood_import_package.zipfor import
- Extract the ZIP file to any folder.
- Rename the
.env.examplefile to.env. - Open the
.envfile and enter your Mealie URL and API key:
MEALIE_URL=https://your-mealie-url.com
MEALIE_API_KEY=your_api_key
- Export:
StartFood_export.exeby double-clicking or from the command line.
Example (command line):
Food_export.exe --export mealie-export.json
- Import:
StartFood_import.exeby double-clicking or from the command line.
Example (command line):
Food_import.exe --import de_DE.json
A sample JSON file with German foods (de_DE.json) is included in the repository and can be used as a template for importing.
- This project is based on the Mealie API.
- Special thanks to the creator of Mealie!
- The original food JSON files for various languages can you find in the official Mealie repository:
Mealie Food Localizations.