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 03-28-2025, 04:06 AM   #226
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,599
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by Majutsushi View Post
Just a note that I do have plans to make configuring a custom column for the reading times easier, I just need to find the time for it, and there are a few other things I want to get done first.

Also, having the raw seconds available is important for uses cases other than just displaying the time in its own column, for example I use that time together with the Count Pages plugin to calculate the reading speed for a book. Having to convert the time back and forth between different formats, especially if it's customizable, would make things much more complicated and also potentially lossy.
And timezones of hell...
Terisa de morgan is offline   Reply With Quote
Old 03-28-2025, 07:09 AM   #227
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,344
Karma: 145488914
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 Majutsushi View Post
Just a note that I do have plans to make configuring a custom column for the reading times easier, I just need to find the time for it, and there are a few other things I want to get done first.

Also, having the raw seconds available is important for uses cases other than just displaying the time in its own column, for example I use that time together with the Count Pages plugin to calculate the reading speed for a book. Having to convert the time back and forth between different formats, especially if it's customizable, would make things much more complicated and also potentially lossy.
Then how about an option to get minutes/seconds as well as raw seconds?
JSWolf is offline   Reply With Quote
Old 03-28-2025, 07:13 AM   #228
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,756
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Might be able to make template to convert it.

EDIT: See post here.
ownedbycats is offline   Reply With Quote
Old 03-28-2025, 07:44 AM   #229
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,344
Karma: 145488914
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 ownedbycats View Post
Might be able to make template to convert it.

EDIT: See post here.
But that means yet another column. With the plugin doing it, I only would need one column.
JSWolf is offline   Reply With Quote
Old 03-28-2025, 02:09 PM   #230
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: 45,184
Karma: 168808723
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
But that means yet another column. With the plugin doing it, I only would need one column.
It's a minimal amount of work to set up two custom columns for reading time and time remaining with a template to display hours:minutes:seconds and hide the two columns displaying the seconds only from view.
DNSB is offline   Reply With Quote
Old 03-28-2025, 02:58 PM   #231
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,344
Karma: 145488914
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 DNSB View Post
It's a minimal amount of work to set up two custom columns for reading time and time remaining with a template to display hours:minutes:seconds and hide the two columns displaying the seconds only from view.
It's not the amount of time to set it up. It's the excess resources needed that I don't feel need to be used.
JSWolf is offline   Reply With Quote
Old 03-28-2025, 03:12 PM   #232
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: 45,184
Karma: 168808723
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
For what little it may be worth, here are the two templates I use for the Time Read and Remaining Reading Time with hr:min:sec displayed. Basically a borrow from the original template in message#2 in this thread and chaley's template in the message #820 in the Templates: various questions not worth their own thread thread. My original code wasn't nearly as pretty since I tried using gmtime and strftime in a Python template.

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')
Code:
program:

total = $#kobo_rest_of_book_estimate;
	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-03-28 121259.png
Views:	51
Size:	17.8 KB
ID:	214703  

Last edited by DNSB; 03-28-2025 at 03:32 PM.
DNSB is offline   Reply With Quote
Old 03-28-2025, 08:14 PM   #233
Majutsushi
Connoisseur
Majutsushi shines like a glazed doughnut.Majutsushi shines like a glazed doughnut.Majutsushi shines like a glazed doughnut.Majutsushi shines like a glazed doughnut.Majutsushi shines like a glazed doughnut.Majutsushi shines like a glazed doughnut.Majutsushi shines like a glazed doughnut.Majutsushi shines like a glazed doughnut.Majutsushi shines like a glazed doughnut.Majutsushi shines like a glazed doughnut.Majutsushi shines like a glazed doughnut.
 
Posts: 94
Karma: 8592
Join Date: Aug 2023
Location: New Zealand
Device: Kobo Clara HD, Kobo Libra Colour
Quote:
Originally Posted by JSWolf View Post
But that means yet another column. With the plugin doing it, I only would need one column.
You would need two columns regardless, one to hold the raw value and one to hold the formatted one. The plugin can just make it easier to set up the formatted column. Until Calibre columns gain the ability to apply arbitrary formatting to a column independently of their value I'm not sure how you imagine it working otherwise.

As for resources, I don't see how additional columns consume any noticeable resources other than a small bit of storage.
Majutsushi is offline   Reply With Quote
Old 03-28-2025, 08:26 PM   #234
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,756
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Composite columns are different. It takes not storage but CPU cycles. Can't remember words. But it can be slow. Probably not this one.

Last edited by ownedbycats; 03-28-2025 at 09:35 PM.
ownedbycats is offline   Reply With Quote
Old 03-28-2025, 11:08 PM   #235
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: 45,184
Karma: 168808723
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
The only time I've—in person—seen slowdown from composite columns was when the calibre install had over 80 custom columns with some rather complex and weird templates. That one was solved by asking what use was made of the columns and disabling the ones for which no use was found.

Even then, the major effect was reducing the startup time by about 4 seconds since the values for fewer composite columns needed to be calculated at startup.

Last edited by DNSB; 03-28-2025 at 11:11 PM.
DNSB is offline   Reply With Quote
Old 03-29-2025, 06:39 AM   #236
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,344
Karma: 145488914
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 Majutsushi View Post
You would need two columns regardless, one to hold the raw value and one to hold the formatted one. The plugin can just make it easier to set up the formatted column. Until Calibre columns gain the ability to apply arbitrary formatting to a column independently of their value I'm not sure how you imagine it working otherwise.

As for resources, I don't see how additional columns consume any noticeable resources other than a small bit of storage.
Why can't Kobo Utilities get the raw value, format it and stick in the one custom column? Why would we need to store the raw value?
JSWolf is offline   Reply With Quote
Old 03-30-2025, 02:32 PM   #237
fogice
Addict
fogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Time
 
Posts: 249
Karma: 49504
Join Date: May 2014
Device: Kobo Libra 2
Quote:
Originally Posted by JSWolf View Post
Why can't Kobo Utilities get the raw value, format it and stick in the one custom column? Why would we need to store the raw value?
You have spent more energy and computing power arguing over this than the resources that storing two columns would require.
fogice is offline   Reply With Quote
Old 03-30-2025, 02:55 PM   #238
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: 45,184
Karma: 168808723
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
Why can't Kobo Utilities get the raw value, format it and stick in the one custom column? Why would we need to store the raw value?
If nothing else, my time spent reading method needs the raw seconds and I do not want to waste the time and effort to convert hr:min:sec back to seconds to satisfy your demands.
DNSB is offline   Reply With Quote
Old 03-31-2025, 02:46 PM   #239
bluepeter
Addict
bluepeter ought to be getting tired of karma fortunes by now.bluepeter ought to be getting tired of karma fortunes by now.bluepeter ought to be getting tired of karma fortunes by now.bluepeter ought to be getting tired of karma fortunes by now.bluepeter ought to be getting tired of karma fortunes by now.bluepeter ought to be getting tired of karma fortunes by now.bluepeter ought to be getting tired of karma fortunes by now.bluepeter ought to be getting tired of karma fortunes by now.bluepeter ought to be getting tired of karma fortunes by now.bluepeter ought to be getting tired of karma fortunes by now.bluepeter ought to be getting tired of karma fortunes by now.
 
Posts: 235
Karma: 1028440
Join Date: May 2024
Location: Salisbury, UK
Device: Clara BW, Mini, Libra H2O, Kindle (11G), Paperwhite (10G), Boox Poke 5
Problem setting time

I use my primary e-reader (a Kobo Clara BW) in sideloaded mode, with books managed by Calibre. I have the Kobo Utilities plugin (v. 2.21.1), and use it to set the time on my e-reader. We switched from GMT to BST (aka DST) yesterday. My laptop clock is correct: it updated to BST automatically. However, I used Kobo Utilities to set the clock on my e-reader a few minutes ago. The clock on the computer said 19:31. However, it set the Kobo's clock to 18:31 - i.e., it's still on GMT.

What am I doing wrong? How can I get Kobo Utilities to take account of summer time (when appropriate) as it sets the e-reader's clock?
bluepeter is offline   Reply With Quote
Old 03-31-2025, 03:21 PM   #240
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: 45,184
Karma: 168808723
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by bluepeter View Post
What am I doing wrong? How can I get Kobo Utilities to take account of summer time (when appropriate) as it sets the e-reader's clock?
Going back quite a few years here, but the time set by the Kobo Utilities writes a file called epoch.conf to .kobo directory. This file contains the number of seconds since 1970-Jan-01 midnight UTC. It is a fixed number. You need to configure your Kobo timezone setting. What timezone do you have configured under Setttings => Date and time => Time zone? Given you are in Britain, pick a large city near you. When I tested London, the timezone was set to UTC+1 which would appear correct for daylight savings time (BST) there

At Mon, 31 Mar 2025 12:18:02 PDT, the epoch time was 1743448682.
DNSB 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 01:11 AM.


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