04-27-2017, 07:57 PM | #1501 | |
Addict
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
|
Quote:
Great software! The folks I share my library with like the interface much better than Ubooquity. I have both set up on my QNAP NAS. However... I would like to offer some suggestions for your next major iteration. 1. I would like to see an (optional?) user login (username, password) feature. 2. Logging. This could include user info such as login day/time, books read and/or downloaded, etc. It would be great if it was comma-separated so it could be pulled directly into a spreadsheet, but hey, I can work with it as long as its text with a consistent format! 3. A way to show non-Calibre files. Ubooquity has a simple method of showing "Raw Files" and it is just a simple listing of a given folders contents, available to download but not to view online. No covers or description files necessary. This could include all files such as images, movies, music, audio books, etc. I know any addition adds to size and complexity, but the COPS UI is awesome and I would sure like to be able to do it all in one program that has a better interface for eBooks than Uboo. Monty |
|
04-28-2017, 01:25 AM | #1502 |
Junior Member
Posts: 3
Karma: 10
Join Date: Mar 2017
Device: kobo aura
|
No, all my attempts kept broking the installation. I simply don't know enough about apache to solve this. Yet.
So for now I set it aside, as it was more about tidiness of coding, and switched the focus on how to update my metadata.db file (the one read by COPS) as my library grows. See, my COPS installation resides on a NAS but for some reason Calibre won't work with a db placed on a networked drive. So for now I have to update (with Calibre) a local copy of my library then mirror it (ebook files and metadata.db) on the server. I'm serching for a way to automate this. For now I just moved my library under the directory visible to the http server (/var/www), thus losing the benefits of COPS (plus, it's ugly), but I plan to dig into P2P syncing (Bittorrent Sync, Syncthing) to see if it's for me. |
04-28-2017, 10:03 AM | #1503 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@zab0
What NAS are you using. If it's a Synology I might try myself and hopefully be able to help you. I sync my calibre ebook files between my desktop (with Calibre) and a Linux server/NAS (with COPS) with rsync. If your desktop is Windows you can try DeltaCopy: http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp I use the multiple library functionality of COPS. - one (or more) "large" calibre-libraries with "archived" ebooks/pdf's/comics - the libraries hardly ever change. (no need to sync regularly) - one smaller library with new (recently acquired) ebooks/pdf's/comics I plan to read or check out if I will really read them. (can be synced or copied regularly from desktop to NAS) - once every n-months I do a cleanup of the smaller library and use Calibre to incorporate the remaining books in the larger archive libraries. I then make a fresh copy to the NAS. |
04-28-2017, 10:20 AM | #1504 | |
Addict
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
|
Quote:
|
|
05-05-2017, 04:06 PM | #1505 | |
Member
Posts: 16
Karma: 10
Join Date: Dec 2012
Device: Android Tablet and SmartPhone
|
Upgrade Instructions?
Quote:
Is there a 'howto' for upgrading an install of COPS? Thanks and much obliged, Jon Moss |
|
05-07-2017, 03:33 PM | #1506 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@JoMoss
Just read the readme.md file @ https://github.com/seblucas/cops I would suggest you install the latest release 1.1.1 from zip in a new cops directory /var/www/html/cops after renaming the existing cops to cops-old. Then copy your current config_local.php int the new cops installation. Enjoy cops! |
05-07-2017, 03:57 PM | #1507 |
Member
Posts: 14
Karma: 10
Join Date: Aug 2016
Device: Kobo Touch
|
I put the latest version on, in the hope of fixing the 404 error I always get when I click a download link - it didn't fix it. What can I do to fix it?
Here is the error log entry: Code:
2017/05/07 20:48:25 [error] 19943#0: *64282 open() "/media/74060434-2ba8-45c1-b2e0-6aa056b1d6ca/opds//download/3150/Book - Author.epub" failed (2: No such file or directory), client: ::ffff:192.168.0.80, server: , request: "GET /download/3150/Book%20-%20Author.epub HTTP/1.1", host: "192.168.0.12:5555", referrer: "http://192.168.0.12:5555/index.php?page=10" |
05-07-2017, 05:47 PM | #1508 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@supertirrican
Do you get the error when downloading with your kobo AND with a browser like firefox? Have you enabled url rewriting in config_local.php? If you have, what is the effect of disabling it? Can you now download with a browser (but not with a kobo)? |
05-07-2017, 07:07 PM | #1509 | ||
Member
Posts: 14
Karma: 10
Join Date: Aug 2016
Device: Kobo Touch
|
Quote:
Quote:
edit: Now, can you explain what I need to do to get Kobo downloads to work? I can provide copies of my config files if that helps. Last edited by superturrican; 05-08-2017 at 08:08 AM. |
||
05-08-2017, 10:44 AM | #1510 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@superturrican
I'm an enthusiastic COPS user. I use Apache and before today had never installed NGINX. So today I devoted considerable time and effort to installing NGINX and trying to make COPS work. OK, I got COPS to work the way I wanted it to EXCEPT when I want to use it with my Kobo Glo HD. Just like you I have not been able to make rewriting (and thus downloading on a Kobo) work. What did I do: 1 - $config['cops_use_url_rewriting'] = "1"; 2 - in /etc/nginx/sites-available I added: Code:
#Useful only for Kobo reader location /download/ { rewrite ^/download/(\d+)/(\d+)/.*\.(.*)$ /fetch.php?data=$1&db=$2&type=$3 last; rewrite ^/download/(\d+)/.*\.(.*)$ /fetch.php?data=$1&type=$2 last; break; } PS1: $config['cops_x_accel_redirect'] = "X-Accell-Redirect"; broke loading of images, but also did not help with downloading. PS2: I installed nginx on a rather old server using an obsolete OS and with an old version of nginx / PHP and the latest version of COPS. And everything worked except rewriting. Maybe I did something wrong? |
05-08-2017, 12:25 PM | #1511 |
Member
Posts: 14
Karma: 10
Join Date: Aug 2016
Device: Kobo Touch
|
I tried adding your rewrite rules into the relevant nginx config file and restarting the service, but it seems to have made no difference to the outcome.
From the log entry it's like COPS is attempting to get the ebook files from the web root as specified in the nginx config file, rather than the actual ebook file path $config['calibre_directory'] as specified in config_local.php. Odd. |
05-08-2017, 12:51 PM | #1512 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
I found those lines in https://github.com/seblucas/cops/wik...ple-with-Nginx
|
05-10-2017, 05:50 PM | #1513 |
Zealot
Posts: 130
Karma: 40
Join Date: May 2012
Location: Paris, France
Device: Kobo Aura 6", Kobo Forma 32G
|
Hi,
I updated (on mac os x sierra) php to latest version and cops to latest version. The old cops still works but the new one doesn't. In the cops folder, is there a file which should point to the location of the new php for cops to work? I'm using Abyss web server which has been working fine so far with Cops 1.0.1 Thank you. Last edited by inthemood; 05-11-2017 at 07:41 AM. |
05-11-2017, 09:59 AM | #1514 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
How did you update COPS?
Installed from sources with "git clone" or downloaded the "release" zip from https://github.com/seblucas/cops/releases? It makes a difference in what to do after installing to make COPS work. See: https://github.com/seblucas/cops/blob/master/README.md |
05-11-2017, 11:33 AM | #1515 | |
Zealot
Posts: 130
Karma: 40
Join Date: May 2012
Location: Paris, France
Device: Kobo Aura 6", Kobo Forma 32G
|
Quote:
I downloaded the zip file, unzipped it and put the cops folder where the previous one was. I renamed the old cops folder to "cops old". Copied the local configuration from the old cops folder, and it doesn't work. The old one still does (when I call it "cops" and the new one "cops new". Last edited by inthemood; 05-11-2017 at 11:36 AM. |
|
Tags |
calibre opds, dns, kobo aura, synology |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre OPDS server with windows apps? | nickdma | Related Tools | 10 | 03-03-2024 02:53 PM |
[Old Thread] Android FBreader and Calibre OPDS server question | kalex | Calibre | 5 | 12-24-2015 10:16 PM |
PHP+Apache web server for calibre ... | chaley | Related Tools | 254 | 04-28-2014 08:18 PM |
External OPDS catalogue in Calibre | bolton | Calibre | 1 | 09-05-2012 06:14 AM |
Calibre Command Line usage with PHP | artoros | Related Tools | 13 | 07-01-2010 09:57 AM |