Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[REQUEST] Calibre OPDS - Java based on X Base Image

Featured Replies

With the advent of hurricane's X base image this might now be quite possible. It basically exports your Calibre ebook library into a web catalog where one can download and browse the ebook collection.

 

I think 2 folders would need unRAID mapping. The Calibre database folder, and the destination folder for the web page content and downloads.

 

EyBjcp0.png

 

Thanks!!

 

H.

My rdp-calibre docker already has the webserver enabled (at port 8081 or whatever you mapped it to). It publishes the library and lets clients download the books from there. See the screenshot attached. It even has a mobile version and a feed version.

 

How is the calibre2opds different?

Capture4.JPG.55bfd22993881b7fc92e569099f0ef83.JPG

 

This is what I use, it doesn't require that you convert your library at all, you just point the install to your Calibre library and it just works.  Calibre doesn't need to be running and the feature I really love is I can browse my library and (for .mobi only) I can click a book and email it directly to my Kindle paperwhite (as a personal document) and it means my reading progress is synced across all my Kindle devices/apps.

 

Here's the link to it, just install in Apache PHP (This was the reason I modified smdion's reverse proxy container)

Here's how to install in Apache.

 

Here's the relevant mapping in red (Points to metadata.db in the Calibre library)

fnJa6n2.jpg

 

Download COPS and extract this to a folder in your /www folder (my container uses /web/books instead of /www/books but whatever is appropriate for your install)

 

Edit proxy-config.conf - You may not want all the security stuff - but this gives you the right idea.

<Directory "/var/www/books/">
AuthType Basic
AuthName "COPS"
AuthUserFile /config/.htpasswd
Require valid-user
AllowOverride None
Order allow,deny
Allow from all
</Directory>

 

In your /www/books edit the file config_local.php.example and change it to look like this.  I've added the email bit as it's not in the default file - this config works with gmail but I'm not sure of the config for any other email provider.  Then save it to a file called config.local.php in the same directory.

 

<?php
    if (!isset($config))
        $config = array();
  
    /*
     * The directory containing calibre's metadata.db file, with sub-directories
     * containing all the formats.
     * BEWARE : it has to end with a /
     */
    $config['calibre_directory'] = '/books/';
    
    /*
     * Catalog's title
     */
    $config['cops_title_default'] = "COPS";
    
    /*
     * use URL rewriting for downloading of ebook in HTML catalog
     * See README for more information
     *  1 : enable
     *  0 : disable
     */
    $config['cops_use_url_rewriting'] = "0";
   
    /* Allow Emailing Of Mobi Books direct to Kindle
 * 
     * To use Gmail See Note Here
     * https://support.google.com/accounts/answer/6010255?hl=en
     */
$config['cops_mail_configuration'] = array( "smtp.host"     => "smtp.gmail.com",
                                            "smtp.username" => "[email protected]",
                                            "smtp.password" => "PASSWORD",
                                            "smtp.secure"   => "ssl",
                                            "address.from"  => "COPS"
                                            ); 

/*

 

Note: In order to use gmail you need to look here and allow less secure apps to use gmail.

 

Finally, log into your Amazon account, go into Manage Your Content and Devices then click Settings

 

94dXN4o.jpg

 

Q6BSuK7.jpg

 

Make a note of the bits I've outlined in red.  The gmail address at the bottom needs to match the gmail address you specified in your config_local.php.  And the @kindle address you will need to remember in a moment.  Ensure archiving is enabled.

 

Now go to http://www.YOURWEBSITE/books or http://YOURIPADDRESS:APACHE-PORT-NUMBER/books

 

Should see, click the spanner icon (wrench if you're American  ;) )

 

1ZN6Jx4.jpg

 

Then

 

pRowAy5.jpg

 

Click the home icon and job done.

  • Author

Wow.... THANK YOU again CHBMB... your Apache-PHP stuff is something I refer to all the time. I had no idea about COPS. I thought COPS was Calibre OPDS...

 

I read books on the iPad. and there is an app I use (eBook Search) that I can connect to the stuff created by Calibre Opds... and download from my library.

 

I am sure COPS would work the same. I am about to follow your directions....

 

Thanks again!

 

H.

Wow.... THANK YOU again CHBMB... your Apache-PHP stuff is something I refer to all the time. I had no idea about COPS. I thought COPS was Calibre OPDS...

 

I read books on the iPad. and there is an app I use (eBook Search) that I can connect to the stuff created by Calibre Opds... and download from my library.

 

I am sure COPS would work the same. I am about to follow your directions....

 

Thanks again!

 

No worries mate, You could jst use Safari to browse your COPS library and then as long as your ebooks are in mobi format get them emailed directly to the kindle app on you ipad.  The advantage of COPS for me is the fact it is a dynamic library, as soon as you add in books via Calibre the changes are reflected on COPS with no need for any intervening.  That and I love the email function and that this enables syncing across all my devices.   

 

H.

  • Author

Not a big fan of the Kindle stuff, but I will test it out to see if it will sync via wifi on my iPad. I made a request of the Author of COPS. I like being able to see my whole collection of books as covers. This way I can pick a book to download and read. COPS only has this view for the 50 most recent books. When browsing all books, I have to know the letter of the book I want... not veryconducive for a book perusal experience.

 

I made my request on his comments page...

 

Thanks a million again. You have been crucial to my docker stuff.

Not a big fan of the Kindle stuff, but I will test it out to see if it will sync via wifi on my iPad. I made a request of the Author of COPS. I like being able to see my whole collection of books as covers. This way I can pick a book to download and read. COPS only has this view for the 50 most recent books. When browsing all books, I have to know the letter of the book I want... not veryconducive for a book perusal experience.

 

I made my request on his comments page...

 

Thanks a million again. You have been crucial to my docker stuff.

 

Honestly mate, no need to thank me, it's all the docker authors that deserve the thanks.

 

Just remembered that there is a docker container that might serve your needs better, called Ubooquity.

Check it out here

 

Bibucstriim is another one you could try.

 

And there's a wealth of information about the various ebook libraries here.

I should really update Ubooquity, I'm working on a major overhual though of the emby packaging for ubuntu. So it might be a little while, but do expect an update shortly

Not a big fan of the Kindle stuff, but I will test it out to see if it will sync via wifi on my iPad. I made a request of the Author of COPS. I like being able to see my whole collection of books as covers. This way I can pick a book to download and read. COPS only has this view for the 50 most recent books. When browsing all books, I have to know the letter of the book I want... not veryconducive for a book perusal experience.

 

I made my request on his comments page...

 

Thanks a million again. You have been crucial to my docker stuff.

 

Add this to you config_local.php and alter accordingly

 

	/*
* split authors by first letter
* 1 : Yes
* 0 : No
*/
$config['cops_author_split_first_letter'] = "1";

/*
* Number of recent books to show
*/
$config['cops_recentbooks_limit'] = '50'; 

    /*
     * split titles by first letter
     * 1 : Yes
     * 0 : No
     */
    $config['cops_titles_split_first_letter'] = "1";

  • Author

 

Add this to you config_local.php and alter accordingly

 

	/*
* split authors by first letter
* 1 : Yes
* 0 : No
*/
$config['cops_author_split_first_letter'] = "1";

/*
* Number of recent books to show
*/
$config['cops_recentbooks_limit'] = '50'; 

    /*
     * split titles by first letter
     * 1 : Yes
     * 0 : No
     */
    $config['cops_titles_split_first_letter'] = "1";

 

Yesssss! Perfect. How do you know this stuff???

 

Thanks!!

 

Add this to you config_local.php and alter accordingly

 

	/*
* split authors by first letter
* 1 : Yes
* 0 : No
*/
$config['cops_author_split_first_letter'] = "1";

/*
* Number of recent books to show
*/
$config['cops_recentbooks_limit'] = '50'; 

    /*
     * split titles by first letter
     * 1 : Yes
     * 0 : No
     */
    $config['cops_titles_split_first_letter'] = "1";

 

Yesssss! Perfect. How do you know this stuff???

 

Thanks!!

 

dark magic that only an inner circle of "brothers" are privy to.

Yesssss! Perfect. How do you know this stuff???

Thanks!!

 

dark magic that only an inner circle of "brothers" are privy to.

 

I think in the interests of full and honest disclosure, I need to admit that your issue I had vague recollections of reading about before and found it on the mobileread forums. 

 

I know no PHP whatsoever, just copy and paste.  The way COPS works is that there is a default config file called config_default.php with loads of options in it.  Most of which most people never both with.  config_local.php takes precedence so if you copy an option from config_default.php across to config_local.php then you can alter the value without any danger of completely screwing up the program.

 

Honestly Hernandito, I'm no power user, you're really crediting me with far more knowledge than I have, Sparkly on the other hand - now he the man!  8) 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.