View Single Post
Old 11-03-2015, 08:39 AM   #2467
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
Quote:
Originally Posted by Yaretzki View Post
Hello,
I did some tests trying to get what I wrote above. Here is what I was able to get:
- edit file main.lua in statistic folder (under plugins folder of koreader)
- add additional line under line #238
- text of additional line:
table.insert(stats, { text = _("Time to read"), mandatory = self:secondsToClock((self.data.pages - tableutil.tablelength(self.data.details)) * (self.data.total_time / tableutil.tablelength(self.data.details))) })

As a result I see additional information in Statistic menu -> Current: Time to Read"

I'm really surprised I was able to do it because my "programming" skills are 0 or even less!
Do it with your file and enjoy!

PS
But I have no idea how to put it on status bar

Y.
You could go to GitHub and look through "Issues", you might have already answered someone's Feature Request (FR), if there is no open issue you could make your own and include your working solution. Someone there could add it to the status bar.

Good work, by the way.

Luck;
Ken
Ken Maltby is offline   Reply With Quote