![]() |
#1531 |
Addict
![]() Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
|
Is the "Set your email" function working?
I put in my name@kindle.com but it won't stick/save. I am using V1.0.0RC3 Am I correct in assuming this will send a .mobi file using the send-to-Kindle email address? [Edit] My bad...using the new Brave browser and the 'Shields' were all turned on. Once I turned them off, was able to get the email address to save. But, I don't see any way to actually send the book when I am in the details screen. Is there some other setting I need to turn on? Last edited by MontyJ; 05-19-2017 at 02:07 PM. |
![]() |
![]() |
![]() |
#1532 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
To make COPS able to send e-mails you have to edit or insert some lines in config_local.php:
Code:
/* * Enable and configure Send To Kindle (or Email) feature. * * Don't forget to authorize the sender email you configured in your Kindle's Approved Personal Document E-mail List. * * If you want to use a simple smtp server (provided by your ISP for example), you can configure it like that : * $config['cops_mail_configuration'] = array( "smtp.host" => "smtp.free.fr", * "smtp.username" => "", * "smtp.password" => "", * "smtp.secure" => "", * "address.from" => "cops@slucas.fr" * ); * * For Gmail (ssl is mandatory) : * $config['cops_mail_configuration'] = array( "smtp.host" => "smtp.gmail.com", * "smtp.username" => "YOUR GMAIL ADRESS", * "smtp.password" => "YOUR GMAIL PASSWORD", * "smtp.secure" => "ssl", * "address.from" => "cops@slucas.fr" * ); */ $config['cops_mail_configuration'] = NULL; Success!! |
![]() |
![]() |
Advert | |
|
![]() |
#1533 | |
Addict
![]() Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
|
Quote:
I think it's called RTFM, right?, LoL. Thanks for pointing that out; all is good, but only after a few other problems were taken care of. FYI, and others with QNAP, there is a basic Virtual Host setup already in Control Panel > Web Server. At least it is in the latest QTS V4.3.3. It may have been there in previous versions, but I never saw it. Anyway, it is a truly basic setup, with minimal options. But that gave me an excellent way to start a more complete Virtual Host setup. After a lot of trial-and-error, I made it work using .htaccess/.htpasswd the way I wanted. All is good. It's Miller (Actually Corona) time! ![]() |
|
![]() |
![]() |
![]() |
#1534 | |
Addict
![]() Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
|
![]() Quote:
If I understand the settings correctly, COPS knows nothing about who the user is. It has no login of its own, which I have already put in a feature request for! Unless I didn't RTFM right, it has a single configuration setup and any user that gets into COPS can change any available settings, which the next user will see. So, the Send To Kindle feature will work, but every time a different user logs in, the previous user changes will be in effect. While that new user can change things to his settings, and it does indeed work, it could really mess up the works if the first user is still connected and trying to send a book to their account. Why allow multiple connections from different users if each user cannot have their own unique setup? Like I said, perhaps I missed something in the available setting configuration, but I don't see a way for each connected user to have their own setup...big plug for that feature and detailed logging!! ![]() |
|
![]() |
![]() |
![]() |
#1535 | |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: May 2017
Device: Kindle paperwhite 3
|
Quote:
Last edited by Calibius; 05-20-2017 at 03:45 PM. Reason: added link |
|
![]() |
![]() |
Advert | |
|
![]() |
#1536 | |
Addict
![]() Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
|
Quote:
Alright!! Mucho thanks for that link and idea! I will plug ahead and see if I can get it to work. Hopefully my nas box has enough oomphf to accommodate about 40 of these user configs ![]() |
|
![]() |
![]() |
![]() |
#1537 |
Addict
![]() Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
|
Is there something really new/different in the V1.1.1 version?
I have been banging on it for 4 hours trying to get it to work in the same environment where V1.00RC3 is working! Per my last post, trying to get the 'per user' login thing going, here is what I have done: - I couldn't get the current working 1.0.0RC3 to work with the suggested setup for multiple user logins and setup. - Made a new folder in my Web folder and called it cops111. Copied over the contents of the new calibre-master.zip, v1.1.1 in to the new folder. - Set up very basic vhost in the QTS control panel for that new folder and port 8164. - When I enter 192.168.x.xxx:8164/checkconfig.php, I get the COPS Configuration Check screen. All items say "OK" except the last 3, but they seem to be just reminders of things that are already installed and work under the 1.0.0.RC3 version. But when I try to pull up the COPS program itself, it simply does not seem to be there. Here are my Apache vhost settings: Code:
NameVirtualHost *:8162
NameVirtualHost *:8163
NameVirtualHost *:8164
Listen 8162
Listen 8163
Listen 8164
<VirtualHost _default_:80>
DocumentRoot "/share/Web"
</VirtualHost>
<VirtualHost *:8162>
<Directory "/share/Web/COPS">
Options FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
ServerName Cops
DocumentRoot "/share/Web/COPS"
</VirtualHost>
<VirtualHost *:8163>
<Directory "/share/Web/CalibreWeb">
Options FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
ServerName Calibre-Web
DocumentRoot "/share/Web/CalibreWeb"
</VirtualHost>
<VirtualHost *:8164>
<Directory "/share/Web/cops111">
Options FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
ServerName COPS111
DocumentRoot "/share/Web/cops111"
</VirtualHost>
I am stumped. Any ideas out there? |
![]() |
![]() |
![]() |
#1538 | |
Addict
![]() Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
|
Quote:
See new post for the login issue. Monty |
|
![]() |
![]() |
![]() |
#1539 |
Addict
![]() Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
|
![]()
I now have a basic install of V1.1.1 installed and working.
But I really need to find out if this version handles setting on a per user basis; all wiki's say it will, but this one has a specific mention of fixes to that in the changelog. So here is my entry for basic cops authentication of a single user: Code:
$config['cops_basic_authentication'] = array('username' => 'monty', 'password' => 'mypassword'); I have changed the single quote marks to double-quote marks, but it doesn't change anything. So I'm guessing my format for the array is wrong. Here is what the docs say: Code:
/* * Enable PHP password protection (You can use if htpasswd is not possible for you) * If possible prefer htpasswd ! * array( "username" => "xxx", "password" => "secret") : Enable PHP password protection * NULL : Disable PHP password protection (You can still use htpasswd) */ ![]() |
![]() |
![]() |
![]() |
#1540 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
If you are using authorisation through .htaccess the user "monty" should be in the .htpasswd file with the same password as in config_local.php (or config_local.monty.php).
The line $config['cops_basic_authentication'] = ... etc is only needed if you do not use authentication through .htaccess. |
![]() |
![]() |
![]() |
#1541 | |
Addict
![]() Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
|
Quote:
But in this case I am not using .htaccess/.htpasswd. Can you give me an example of the cops basic authentication statement for 2 users? You suggest that the apache authentication and the COPS authentication work together but the docs suggest it's one or the other. Confusing as all get out! I don't mind using .htaccess/.htpasswd, but the goal here is to have "user specific settings" in cops, as the docs suggest can be done. |
|
![]() |
![]() |
![]() |
#1542 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
Create for each user a file named config_local.user.php with inside only the $config lines out of config_local.php where each user differs in settings from the others.
For instance what libraries are seen by the user if you use multiple libraries. Etc. |
![]() |
![]() |
![]() |
#1543 | |
Addict
![]() Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
|
Quote:
1. Essentially copy config_local.php to config_local.monty.php 2. Take out all lines except those that start with $config. I assume the php header (<?php) stays? Remember, not all of are programmers/coders! 3. Modify the new config file if any features are to be eliminated for 'monty', or other users with their own config file 4. Make an entry in the original config_local.php file for each user that will have his own named config file using the format shown? Thanks. I may be slow, but if you pound my head with a 2x4 long enough, it usually sinks in! ![]() [Edit] Given you are on the other side of the pond, I suspect you are now asleep...or wish you were! So, I tried the following. Here is my config_local.php for two users with php authentication: Code:
<?php
if (!isset($config))
$config = array();
/*
***************************************************
* Please read config_default.php for all possible
* configuration items
***************************************************
*/
/*
* 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'] = array (
"01 - Repository Information" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/01-Repository Information/",
"02 - Fiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/02-Fiction/",
"03 - NonFiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/03-NonFiction/",
"04 - Science Fiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/04-Science Fiction/");
/*
* 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";
$config['default_timezone'] = "America/Phoenix";
$config['cops_use_fancyapps'] = "1";
/*
* Enable PHP password protection (You can use if htpasswd is not possible for you)
* If possible prefer htpasswd !
* array( "username" => "xxx", "password" => "secret") : Enable PHP password protection
* NULL : Disable PHP password protection (You can still use htpasswd)
*/
$config['cops_basic_authentication'] = array('username' => 'monty', 'password' => 'mypwd');
$config['cops_basic_authentication'] = array('username' => 'user2', 'password' => 'user2pwd');
Code:
<?php
$config['calibre_directory'] = array (
"01 - Repository Information" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/01-Repository Information/",
"02 - Fiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/02-Fiction/",
"03 - NonFiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/03-NonFiction/",
"04 - Science Fiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/04-Science Fiction/");
$config['cops_title_default'] = "MONTY COPS";
$config['cops_use_url_rewriting'] = "0";
$config['default_timezone'] = "America/Phoenix";
$config['cops_use_fancyapps'] = "1";
I modified the cops title setting just so I would know what user I was really looking at once I got in. The second user file is identical to the monty file except his title setting reflects "USER2". And while I do get the login screen, it just blinks and blanks out the data I type in. I have done an apache restart, no change. All php files are set 0666, so assume they do not have to be set executable. So, I am obviously still missing something on how this should work. ![]() Last edited by MontyJ; 05-21-2017 at 10:52 PM. Reason: Update |
|
![]() |
![]() |
![]() |
#1544 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
Herewith an abbreviated example on how it should work (in this case not using .htaccess authentication):
A - config_local.php (all libraries and COPS user) Code:
<?php if (!isset($config)) $config = array(); $config['calibre_directory'] = array ( "01 - Repository Information" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/01-Repository Information/", "02 - Fiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/02-Fiction/", "03 - NonFiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/03-NonFiction/", "04 - Science Fiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/04-Science Fiction/"); /* * Catalog's title */ $config['cops_title_default'] = "COPS 1.1.1"; $config['cops_use_url_rewriting'] = "0"; $config['default_timezone'] = "America/Phoenix"; $config['cops_basic_authentication'] = array('username' => 'cops', 'password' => 'secretpw'); Code:
<?php
/*
* Catalog's title
*/
$config['cops_title_default'] = "MONTY COPS";
$config['cops_basic_authentication'] = array('username' => 'monty', 'password' => 'mypwd');
Code:
<?php
if (!isset($config))
$config = array();
$config['calibre_directory'] = array (
"01 - Repository Information" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/01-Repository Information/",
"03 - NonFiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/03-NonFiction/");
/*
* Catalog's title
*/
$config['cops_title_default'] = "USER2 COPS";
$config['cops_basic_authentication'] = array('username' => 'user2', 'password' => 'user2pwd');
![]() |
![]() |
![]() |
![]() |
#1545 |
Addict
![]() Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
|
@mariosipad,
Thank You! That post is getting lengthy, so continuing discussion in new post. No joy. Just so there is no doubt, here is the EXACT config files, even down to the usernames and passwords. File: config_local.php Code:
<?php if (!isset($config)) $config = array(); $config['calibre_directory'] = array ( "01 - Repository Information" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/01-Repository Information/", "02 - Fiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/02-Fiction/", "03 - NonFiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/03-NonFiction/", "04 - Science Fiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/04-Science Fiction/"); /* * Catalog's title */ $config['cops_title_default'] = "COPS 1.1.1"; $config['cops_use_url_rewriting'] = "0"; $config['default_timezone'] = "America/Phoenix"; $config['cops_basic_authentication'] = array('username' => 'cops', 'password' => 'secretpw'); Code:
<?php
/*
* Catalog's title
*/
$config['cops_title_default'] = "MONTY COPS";
$config['cops_basic_authentication'] = array('username' => 'monty', 'password' => 'mypwd');
Code:
<?php
if (!isset($config))
$config = array();
$config['calibre_directory'] = array (
"01 - Repository Information" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/01-Repository Information/",
"03 - NonFiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/03-NonFiction/");
/*
* Catalog's title
*/
$config['cops_title_default'] = "USER2 COPS";
$config['cops_basic_authentication'] = array('username' => 'user2', 'password' => 'user2pwd');
Tried in Firefox and Chrome and Brave browsers. Cleared caches first. Tried all 3 logins exactly as shown in verbatim copies above. Also tried removing the original .htaccess file from the /cops111 folder. Used 192.168.x.xxx/cops111/ and 192.168.x.xxx:8164 with the same no joy results for both. Frustrating... |
![]() |
![]() |
![]() |
Tags |
calibre opds, dns, kobo aura, synology |
|
![]() |
||||
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 |