New Add-on: Minimal Calibre Library HA COPS šŸ“š

Version 1.22 tweaks epubjs-reader for better page turns on mobile devices when reading in a browser. You can enable epubjs-reader as the in-browser reader in config. I would appreciate any feedback on this feature.

Version 1.23 released, incorporating upstream changes in COPS 2.7.1

Version 1.24 released. The add-on now allows you to specify a different folder name than books within HAā€™s media folder, in case you mounted your Calibre Library to a different location, or have it in a different folder, for whatever reason. Default is still books, so should work fine with existing installations.

Note that if you are using the rsync feature to sync your Calibre Library to the HA server, the command for that has not changed - rsync maps books in the backend to the location you specify in the configuration.

1 Like

Version 1.25 added to incorporate COP 2.7.3. Iā€™ve also changed the default page to the listing of the 50 most recently added books rather than the top level menu of lists. You can still get to this list by clicking the home link at the top left, but the initial page now gets you to your books faster.

Version 1.26.1 incorporates changes on COPS 3.1.3 and adds list of series by author in the author page in the bootstrap5 template.

Quick fix resulting in 1.26.2 :slight_smile:

I managed to forget to update the integrity hashes for the newer version of bootstrap and didnā€™t see this in testing. Fixed. 1.26.3 out now. Apologies if this broke anyoneā€™s library yesterday - update to get the fix.

1.26.4 - added Portuguese translation - thanks @horus68!

New release - 1.27.1 - incorporate latest changes in COPS 3.2.2 and fix an issue that may have prevented configuration settings being respected that started with 1.26.1

New release: 1.28 - incorporates latest COPS release 3.3.1

I didnā€™t use addon for a while and always update to to latest. Now i noticed that downloading isnā€™t working anymore?? (I tried different browser) Do i need to do additional settings to allow this? This was always working perfectly with my kobo reader.

Can you give a bit more detail about what happens and what browsers you are trying with. I am able to download using both the Kindle Paperwhite 1st Gen experimental browser, and with Chrome and Brave. Which page are you trying to download from?

Update - I notice that Chrome and Brave have started requring confirmation when downloading from http servers (rather than https). It is necessary to click Keep button next to the download in order to complete it. Most likely your Home Assistant server, and any add-ons with web interfaces, are served locally using http rather than https. Could it be this that you are experiencing?

New relase: 1.29 - incorporates COPS release 3.4.5

Thnx for the update, this seem to resolve my download problem

1 Like

New release: 1.30

  • Incorporates COPS 3.4.6
  • Enable route URLs in PHP dev server - these now work the same if you have rsync enabled or not

Thanks for a very useful integration
Wishlist:
Will it be possible to use multiple databases?

COPS does support multiple databases so technically it would be possible. The challenge is in setting up the add-on configuration to allow for creating an array of databases that can be written into the $config['calibre_directory'] variable in config/local.php. The configuration options for add-ons are rather limited.

If you could describe your use case in more detail it could help figure out how to cater for this.

For now I use my NAS to host backups of my Calibre libraries of which I have 4
Danish books - epub
English books - epub
Comics - CBR
DIY articles - pdf
I use SĆ©bastien Lucasā€™s COPS v 1.1.3 on my NAS for remote access
Since I have all 4 libraries in 1 installation it is possible to search all four libraries across which I often use.
To achieve this I have manually edited config_local.php to:

if (!isset($config))
$config = array();

$config['calibre_directory'] = array ("Danish books" => "/i-data/2969cb5d/StoreVideVerden/BibliotekAlm/", "English books" => "/i-data/2969cb5d/StoreVideVerden/BibliotekEng/", "Cartoons" => "/i-data/2969cb5d/StoreVideVerden/BibliotekTegneserier/", "Do It Yourself articles" => "/i-data/2969cb5d/StoreVideVerden/BibliotekDIU/");

$config['cops_title_default'] = "LƦsehesten";

Thanks for the info.

Can you confirm that the books are stored in the same folders as the corresponding database file?

I would also suggest that you check out the more recent fork of COPS by mikespub, as there have been quite a lot of changes you might want to check out - HA COPS is based on this version.

I have an idea how to support multiple databases in HA COPS, but wonā€™t be able to try it out till the new year.

Iā€™ve made a new issue in the repo for this request.

Yes, that is correct