TandoorRecipes / recipes

Application for managing recipes, planning meals, building shopping lists and much much more!
https://docs.tandoor.dev
Other
5.17k stars 550 forks source link

Mealie 1.0 Importer #2456

Open vabene1111 opened 1 year ago

vabene1111 commented 1 year ago

Mealie 1.0 changed the export format significantly.

Sadly the format is different to that of most other recipe managers thus the importer needs some major architectural overhauling.

Feel free to vote on this issue if having a 1.0 importer would be interesting for you.

rursache commented 1 year ago

Please update the documentation stating that mealie importer is currently not working, I didn't knew why the importer would import 0 items

blackdiamondsoftware commented 1 year ago

Please update the documentation stating that mealie importer is currently not working, I didn't knew why the importer would import 0 items

Agreed, the status should be marked not working

skyeskie commented 1 year ago

At least partial workaround:

(from Admin account in Mealie - didn't test non-Admin)

  1. Click on name for account dashboard
  2. Click Manage Data (towards bottom)
  3. Switch dropdown from Foods to Recipes
  4. Click Export All (bottom right of table)
  5. Download file from Data Exports list (bottom)
  6. (in Tandoor) Import as Mealie

Haven't done a thorough look yet, but seems to working.

vabene1111 commented 1 year ago

oh thats cool, we need to add that to the docs so that people find it.

langerdennis commented 1 year ago

Semi-successfully performed the import above - worked for all recipes where I did not use Mealie's scaling feature. For recipes where I had enabled the feature within Mealie before no ingredients can be imported (because they are in custom Mealie 1.0 format).

vabene1111 commented 1 year ago

thanks for the feedback. Can someone send me some example data of a mixed mealie database ?

langerdennis commented 1 year ago

Hi, I have exported 2 recipes (German). "Seehecht" is with quantities for scaling, "Satésauce" is with flat ingredients. Edit: If you don't want to download my zip file let me know, I can alternatively post the content of the json files.

e38f7937-348d-4958-be4e-6f86f33c74a7.zip

vabene1111 commented 1 year ago

perfect, thank you. i can download the file, will take a look

codefaux commented 1 year ago

Hey, here's a fun one -- I don't have a Manage Data button on my Admin (or any) user on Mealie. I've been looking for ages. There's no way to do a backup or export the full site. I'm using Mealie v0.5.6

I cannot get any exported zip from Mealie to load, I cannot get Tandoor to import from Mealie instance (API error Bad Request: /api/recipe-from-source/ ) so there's zero way for me to easily transfer recipes from Mealie to Tandoor. Is this considered the same issue, or should I be starting my own?

skyeskie commented 1 year ago

Hey, here's a fun one -- I don't have a Manage Data button on my Admin (or any) user on Mealie. I've been looking for ages. There's no way to do a backup or export the full site. I'm using Mealie v0.5.6

I cannot get any exported zip from Mealie to load, I cannot get Tandoor to import from Mealie instance (API error Bad Request: /api/recipe-from-source/ ) so there's zero way for me to easily transfer recipes from Mealie to Tandoor. Is this considered the same issue, or should I be starting my own?

The instructions above are for the 1.0-beta line of Mealie. It's a different process for the 0.5x version. Here are the docs (link probably only valid until 1.0 released, whenever that is). Any other problems on the export step are probably best directed to the mealie repository

codefaux commented 1 year ago

As it turns out, both I'm a blind fool and also the documentation is ... Misleading and incorrect. I've also been told the are two documentation sites for Mealie, and one only applies to the new version. And neither of them say which they're for on the page, you kinda have to notice the contents of the URL.

On Mealie v0.5.x there's a backup option in the Admin user's Dashboard page. Using that backup option, I was able to import everything appropriately into Tandoor. All of the recipes imported as well as can be expected.

Apologies for the false alarm.

vabene1111 commented 1 year ago

No worries, it's quite confusing. Gebereally everything pre 1.0 imports very well, everything after not so much as described here.

timdonovanuk commented 3 months ago

At least partial workaround:

(from Admin account in Mealie - didn't test non-Admin)

  1. Click on name for account dashboard
  2. Click Manage Data (towards bottom)
  3. Switch dropdown from Foods to Recipes
  4. Click Export All (bottom right of table)
  5. Download file from Data Exports list (bottom)
  6. (in Tandoor) Import as Mealie

Haven't done a thorough look yet, but seems to working.

This worked in the latest Mealie, thanks for this!

The documentation still needs to be updated to say that Mealie 1.x imports don't work. 👀 Thanks!

Kurisutian commented 2 months ago

At least partial workaround: (from Admin account in Mealie - didn't test non-Admin)

  1. Click on name for account dashboard
  2. Click Manage Data (towards bottom)
  3. Switch dropdown from Foods to Recipes
  4. Click Export All (bottom right of table)
  5. Download file from Data Exports list (bottom)
  6. (in Tandoor) Import as Mealie

Haven't done a thorough look yet, but seems to working.

This worked in the latest Mealie, thanks for this!

The documentation still needs to be updated to say that Mealie 1.x imports don't work. 👀 Thanks!

Are you sure it works? I did the same thing and while recipes were added none of them contained the list of ingredients but only the instructions.

jsspen commented 5 days ago

Running Mealie v1.10.2 here and can't get the backup zip to upload because it's "too big." Is there a way to manually pass the zip to Tandoor rather than uploading through browser? Tandoor has access to the same drive the zip is stored on.

smilerz commented 5 days ago

the size limit is set by your reverse proxy and can be changed,