Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 06-07-2025, 10:14 AM   #361
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,973
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
It might make sense to just copy SeriesNumberFloat from Calibre series_index without modification.
ownedbycats is offline   Reply With Quote
Old 06-13-2025, 05:41 AM   #362
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Discussion about separating series_index (float) and series_index (text) is now in Kobo: Separate series index (text) and series_index (float)?
chaley is offline   Reply With Quote
Old 06-18-2025, 10:04 AM   #363
Quality
Member
Quality began at the beginning.
 
Quality's Avatar
 
Posts: 14
Karma: 10
Join Date: Dec 2024
Device: Tolino Shine 5
Is there a way to edit or delete an already existing columns? I only have the option to create a new one or to select on that already exists.


Quality is offline   Reply With Quote
Old 06-18-2025, 01:03 PM   #364
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,752
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Quality View Post
Is there a way to edit or delete an already existing columns? I only have the option to create a new one or to select on that already exists.


You need to attach your images. The [img] tag rarely works and in this case, it's not working and your image in not showing. You need to make sure you are in the advanced edition and then click the manage attachments button under your message and go from there.
JSWolf is offline   Reply With Quote
Old 06-18-2025, 01:17 PM   #365
Quality
Member
Quality began at the beginning.
 
Quality's Avatar
 
Posts: 14
Karma: 10
Join Date: Dec 2024
Device: Tolino Shine 5
Thank you for the info, here is the image.

Click image for larger version

Name:	Wd9VVcY.png
Views:	51
Size:	16.5 KB
ID:	216340
Quality is offline   Reply With Quote
Old 06-18-2025, 01:32 PM   #366
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Quality View Post
Is there a way to edit or delete an already existing columns? I only have the option to create a new one or to select on that already exists.

Have you tried going into calibre's preferences? Preferences => Add your own columns then select the column you want to edit and click on the pen/paper icon to edit.

Last edited by DNSB; 06-19-2025 at 11:23 PM.
DNSB is offline   Reply With Quote
Old 06-18-2025, 01:34 PM   #367
Quality
Member
Quality began at the beginning.
 
Quality's Avatar
 
Posts: 14
Karma: 10
Join Date: Dec 2024
Device: Tolino Shine 5
Oh I see thank you, I am not that well versed with calibre.
Quality is offline   Reply With Quote
Old 06-18-2025, 01:35 PM   #368
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Quality View Post
Oh I see thank you, I am not that well versed with calibre.
Like most Swiss army knife tools, finding where to do something can be a pain.
DNSB is offline   Reply With Quote
Old 06-18-2025, 09:58 PM   #369
Lavender
Connoisseur
Lavender ought to be getting tired of karma fortunes by now.Lavender ought to be getting tired of karma fortunes by now.Lavender ought to be getting tired of karma fortunes by now.Lavender ought to be getting tired of karma fortunes by now.Lavender ought to be getting tired of karma fortunes by now.Lavender ought to be getting tired of karma fortunes by now.Lavender ought to be getting tired of karma fortunes by now.Lavender ought to be getting tired of karma fortunes by now.Lavender ought to be getting tired of karma fortunes by now.Lavender ought to be getting tired of karma fortunes by now.Lavender ought to be getting tired of karma fortunes by now.
 
Lavender's Avatar
 
Posts: 82
Karma: 514138
Join Date: Jan 2025
Device: Kobo Clara BW
Can someone explain the current annotation options with koboutilities? I would like to be able to back up annotations made on my kobo, and in the event that I delete the kepub from device then resync the file with calibre in the future I want to restore the annotation data to that book. Can this be done? Is it a desire for the project if not?
Lavender is offline   Reply With Quote
Old 07-07-2025, 07:40 AM   #370
targosh
Junior Member
targosh began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2021
Device: Kobo Forma
Template Error

I am getting a template error for the time spent read column but am unsure why? Anyone has any ideas?

Quote:
Originally Posted by Majutsushi View Post
Time Spent Reading / Rest of Book Estimate formatting

If you want to show the "Time Spent Reading" and "Rest of Book Estimate" values in anything other than seconds, you will have to create two new columns that are based on the "seconds" columns and format the value differently.

Here is how you can do this:
  • Open the Calibre preferences.
  • Click on "Add your own columns".
  • Click on "Add custom column" or the green "+" sign on the right.
  • Enter a lookup name, like "#my_time_spent_reading".
  • Enter a column heading, like "Time Spent Reading".
  • For column type, choose "Column built from other columns".
  • Right-click in the "Template" entry field and click "Open template editor".
  • Enter the code to format the seconds to something else.

    Here is an example:
    Code:
    program:
    
    total = $#kobo_time_spent_reading;
    hours = floor(total/3600);
    minutes = round((total-hours*3600)/60);
    
    def format(v, str):
        if v == 0 then return '' fi;
        return v & ' ' & str & ' '
    fed;
    format(hours, 'hr') & format(minutes, 'min')
    This will format the time as something like "3 hr 27 min".

    Make sure to replace "#kobo_time_spent_reading" with the actual lookup name of the seconds column you want to reference.
  • Press "OK"/"Apply" to close all the dialogs and restart Calibre.
For more information about writing such a template check out https://manual.calibre-ebook.com/template_lang.html.
targosh is offline   Reply With Quote
Old 07-07-2025, 12:07 PM   #371
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by targosh View Post
I am getting a template error for the time spent read column but am unsure why? Anyone has any ideas?
It would be useful to have the actual template and the error. Otherwise we are wasting time guessing.
chaley is offline   Reply With Quote
Old 07-07-2025, 08:56 PM   #372
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
As @chaley said, it would help if you posted what you used as the template and the column definition.

For what it may be worth, here's my variant which gives hours, minutes, seconds:

Code:
program:

	total = $#kobo_time_spent_reading;

	hours = floor(total/3600);
	minutes = floor(mod(total, 3600)/60);
	seconds = mod(total, 60);
	def format(v, str):
    if v == 0 then return '' fi;
    return v & ' ' & str & ' '
fed;
format(hours, 'hr') & format(minutes, 'min') & format(seconds, 'sec')
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2025-07-07 175756.png
Views:	28
Size:	27.2 KB
ID:	216794   Click image for larger version

Name:	Screenshot 2025-07-07 180417.png
Views:	18
Size:	7.8 KB
ID:	216795  

Last edited by DNSB; 07-07-2025 at 09:04 PM. Reason: Added images
DNSB is offline   Reply With Quote
Old 07-08-2025, 05:35 PM   #373
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by DNSB View Post
As @chaley said, it would help if you posted what you used as the template and the column definition.

For what it may be worth, here's my variant which gives hours, minutes, seconds:

Code:
program:

	total = $#kobo_time_spent_reading;

	hours = floor(total/3600);
	minutes = floor(mod(total, 3600)/60);
	seconds = mod(total, 60);
	def format(v, str):
    if v == 0 then return '' fi;
    return v & ' ' & str & ' '
fed;
format(hours, 'hr') & format(minutes, 'min') & format(seconds, 'sec')
FWIW: I've seen several posts over the years that discuss formatting a duration in seconds into some "human readable" string. I decided to add a template function
Code:
format_duration(value, template, largest_unit)
that given a duration is seconds can produce things like "2 weeks 4 days 20 minutes". I'll post the documentation in the template changes thread if and when Kovid accepts the change.
chaley is offline   Reply With Quote
Old 07-08-2025, 09:57 PM   #374
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by chaley View Post
FWIW: I've seen several posts over the years that discuss formatting a duration in seconds into some "human readable" string. I decided to add a template function.
Code:
format_duration(value, template, largest_unit)
that given a duration is seconds can produce things like "2 weeks 4 days 20 minutes". I'll post the documentation in the template changes thread if and when Kovid accepts the change.
For me, I've only once had a reading time go over 17 hours (and that was an omnibus with over 1 million words).

OTOH, your new function looks good for some of my other uses and is much appreciated compared to my current multi-line mess for converting seconds to other time units.

Edit: downloaded calibre source and the format_duration seems to be working okay for me where a book has been opened to read. I still need to play handling entries where the book has not been opened.

Last edited by DNSB; 07-09-2025 at 03:42 AM.
DNSB is offline   Reply With Quote
Old 07-16-2025, 03:11 PM   #375
TheOnceAndFuture
Junior Member
TheOnceAndFuture began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2025
Device: Kobo Libra Colour
Hello I've been trying to use KoboUtilities and I have some questions and feedback about two things that came up that I'd like to share.

Unique device names in profile device dropdown

My partner and I have two of the same device. It's great that KoboUtilities allows you to setup profiles so that each device can sync to a unique set of columns in Calibre. However, when selecting the "Device this profile is used for", it's impossible to know which to select because the devices have the same label.

I tried to do the following, but ultimately I ran into issues:
- In the 'Devices' tab, add your first device.
- Go to both profiles and set that same device as the device for that profile.
- Eject that device and connect the other device.
- Go to the 'Devices' tab and add this new device.
- Go to the profile corresponding to whose device this actually is, and TAB to the 'Device this profile is for' dropdown. DO NOT CLICK IT WITH YOUR MOUSE. Tab over to it and press SPACEBAR — the currently selected device should be the device you initially set it to, thus the other one (the one that is not selected), should be the new device. Use the up/down arrows to select that device, and press ENTER.

This approach in theory should work, but it would be nice if the dropdown simply included a unique identifier for devices (say, the serial number) to make it easier. The reason why I say "in theory should work" is because I wasn't actually able to get my annotations from my second device, which is the next issue.

Issue retrieving device metadata with multiple profiles
While I have been able to successfully retrieve metadata from my device, such as 'reading location', which oddly appears to be a filename, 'rest of the book estimate', 'time spent reading', 'last read date', I cannot get it from my other device. I am not sure if this is a separate issue or related to the first issue.

To create a simple environment, both my devices only have a few annotations for 1 book (a different book on each device). I connect one device to calibre, select "Store/restore reading positions", and it pulled the relevant metadata from my 1 book. I safely eject the device and plugin the second device and try the same thing but I am unable to retrieve any data. And oddly, the first time I tried it actually just retrieved the same metadata as the first device, as if the first device was still connected (it wasn't—the second device was). However, I am unable to replicate the behavior and now nothing happens when I try to retrieve metadata from the second device.

In fact, in the process of writing this I'm trying again to pull the metadata, but it doesn't pull from either device now. The behavior is inconsistent and I'm not seeing any errors popup and there doesn't appear to be anything notable in the debug logs (it shows various koboutilities.action entries but nothing indicating an error or retrieval issue per se).

Are other people having issues with this or is it just me?

Backup annotations file does not appear to work

In my library, I added some annotations to a book. I connected the book to my PC/Calibre, and am able to successfully view those annotations with "Copy annotation for selected book". However, when I try to use "Back up annotation file", no file appears to be created.

Thanks for reading
TheOnceAndFuture is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Kobo Utilities davidfor Plugins 3216 02-08-2025 04:23 AM
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB lrpirlet Plugins 2 08-18-2022 03:15 PM
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 05:25 AM
Kobo Utilities Plugin Question nikev Kobo Reader 10 09-25-2018 11:55 PM


All times are GMT -4. The time now is 09:15 AM.


MobileRead.com is a privately owned, operated and funded community.