View Single Post
Old 10-28-2021, 03:16 PM   #1
ljfriese
Junior Member
ljfriese began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Sep 2021
Device: Onyx Boox
Add epub from recipe to content server

Hey, apologies if this is the wrong area.

I have calibre running headless on an ubunto pi.

I'm trying to collect a reading daily using a recipe and add the epub to the database, overwriting yesterday's version so that I can open my reader in the morning and just have it be there automagically.

I'm running the following using crontab

0 9 */1 * * ebook-convert calibre-recipes/daily-reading.recipe calibre-library/daily-reading.epub

This recipe is successful. That is, it runs and exits with this output:

EPUB output written to /home/lucas/calibre-library/daily-reading.epub
Output saved to /home/lucas/calibre-library/daily-reading.epub

Next, I want to add this epub (5 minutes later by the crontab schedule)

5 9 */1 * * calibredb add calibre-library/daily-reading.epub --with-library 192.168.86.29 --username XYZ--password ABC --automerge overwrite

Runs successfully, exits with:

Merged book ids: 1

Perfect, I assume. Except that nothing happened. The book isn't in my library. In the calibre-library directory I can still see

> ls calibre-library

....
'Cronbach, Lee J_'
CSA
'C. S. Lewis'
daily-reading.epub
'Daniel Kahneman'
'David Deutsch'
....

and using "calibredb --with-library calibre-library list --fields title" to check the db shows no new entries.

So the first part worked, and the calibredb add is doing something but I don't know what... Anyone with a clue to what I'm missing? I feel like I must of misread the documentation somewhere.

Last edited by ljfriese; 10-28-2021 at 03:21 PM.
ljfriese is offline   Reply With Quote