Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 11-22-2018, 08:39 AM   #151
Zorka
Enthusiast
Zorka is an enigma wrapped up in a mystery.Zorka is an enigma wrapped up in a mystery.Zorka is an enigma wrapped up in a mystery.Zorka is an enigma wrapped up in a mystery.Zorka is an enigma wrapped up in a mystery.Zorka is an enigma wrapped up in a mystery.Zorka is an enigma wrapped up in a mystery.Zorka is an enigma wrapped up in a mystery.Zorka is an enigma wrapped up in a mystery.Zorka is an enigma wrapped up in a mystery.Zorka is an enigma wrapped up in a mystery.
 
Posts: 41
Karma: 41580
Join Date: Feb 2017
Location: Belgium
Device: Kobo Mini(5), Kobo Touch, Kobo H2O, Poke2, Pocketbook Color, Remarkabl
Quote:
Originally Posted by frostschutz View Post

@Zorka: busybox date does not support locale time... I could supply a date binary that does, but then the locale files are missing, and including locale for all languages, uh - that's a bit too large (3MiB compressed judging from debian locales-all package).

Not worth it for localizing 7 days 12 months? Guess I'll just have to finagle it into the config file... -.-
Don't bother, I'm going to use time only for now
Zorka is offline   Reply With Quote
Old 11-22-2018, 09:11 AM   #152
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Quote:
Originally Posted by Zorka View Post
Don't bother, I'm going to use time only for now
too late

it's done already (in my github), just have to pack it up for release

it's not beautiful but it kinda works
frostschutz is offline   Reply With Quote
Advert
Old 11-23-2018, 03:40 AM   #153
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
I hope this will be the last update for a while.

Code:
#
# Battery percentage value (0-100%)
#
# Use {battery} in the format string.
#
# Will only be used if the battery is between min max.
# Default: only shown when battery level drops to 50% and under.
battery_min=0
battery_max=50
# battery_source=/sys/devices/platform/pmic_battery.1/power_supply/mc13892_bat/capacity

#
# Localization (translate Month and Day names)
#
## Set day names, Monday -> Sunday (7 words)
## Use {day} in the format string to use this.
#
#days=Mon Tue Wed Thu Fri Sat Sun
#
## Set month names, January -> December (12 words)
## Use {month} in the format string to use this.
#
#months=Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
#
Download here: MiniClock
frostschutz is offline   Reply With Quote
Old 11-23-2018, 04:15 AM   #154
Zorka
Enthusiast
Zorka is an enigma wrapped up in a mystery.Zorka is an enigma wrapped up in a mystery.Zorka is an enigma wrapped up in a mystery.Zorka is an enigma wrapped up in a mystery.Zorka is an enigma wrapped up in a mystery.Zorka is an enigma wrapped up in a mystery.Zorka is an enigma wrapped up in a mystery.Zorka is an enigma wrapped up in a mystery.Zorka is an enigma wrapped up in a mystery.Zorka is an enigma wrapped up in a mystery.Zorka is an enigma wrapped up in a mystery.
 
Posts: 41
Karma: 41580
Join Date: Feb 2017
Location: Belgium
Device: Kobo Mini(5), Kobo Touch, Kobo H2O, Poke2, Pocketbook Color, Remarkabl
Thumbs up

Excellent work

Didn't try the battery thing, but date is working as expected.
Zorka is offline   Reply With Quote
Old 11-23-2018, 09:03 AM   #155
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
The new {battery} %-level addition is working well on my ClaraHD, KA1, Forma.

Many thanks, frostschutz. I wasn't expecting such a speedy result.
jackie_w is offline   Reply With Quote
Advert
Old 11-23-2018, 10:18 AM   #156
MGlitch
Wizard
MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.
 
Posts: 2,856
Karma: 22003124
Join Date: Aug 2014
Device: Kobo Forma, Kobo Sage, Kobo Libra 2
I haven’t installed a new version of this just wondering if any of the above changes add support for the page turn buttons l have it basically working with the suggested increased update time.

As mentioned earlier not expecting this instantly just wondering if it’s been implemented already
MGlitch is offline   Reply With Quote
Old 11-25-2018, 07:11 AM   #157
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Quote:
Originally Posted by MGlitch View Post
just wondering if any of the above changes add support for the page turn buttons
the delay can be configured in more detail now (not sure if it would help you at all) but no support for buttons as of yet, sorry. Thanks for the reminder though, I kind of forgot about it
frostschutz is offline   Reply With Quote
Old 11-25-2018, 01:31 PM   #158
Semwize
Guru
Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.
 
Posts: 914
Karma: 275656
Join Date: Jun 2016
Device: Kobo
Quote:
Originally Posted by frostschutz View Post
# Localization (translate Month and Day names)
Works great, thanks
Semwize is offline   Reply With Quote
Old 12-19-2018, 01:06 PM   #159
jamalau
Connoisseur
jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.jamalau knows what's going on.
 
Posts: 78
Karma: 25542
Join Date: Nov 2013
Location: NRW Germany
Device: Kobo Forma
I don´t understand, how can i displayed the battery-level, what i have exactly to do?

I´ve found it , it´s easy!

Last edited by jamalau; 12-19-2018 at 01:24 PM.
jamalau is offline   Reply With Quote
Old 12-30-2018, 04:40 AM   #160
Rommyno
Junior Member
Rommyno began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2018
Device: Kobo Clara HD
Could you explain what I need to change on code to activate battery level display please?
Thank you
Rommyno is offline   Reply With Quote
Old 12-30-2018, 06:00 AM   #161
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
see .addons/miniclock/miniclock.cfg (example file included)

add {battery} to the format string

set battery_max=100

(unless you're like me and only want to know about the battery when it's actually low - by default {battery} only shows min-max 0-50%)

Last edited by frostschutz; 12-30-2018 at 07:16 AM.
frostschutz is offline   Reply With Quote
Old 12-30-2018, 07:00 AM   #162
Rommyno
Junior Member
Rommyno began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2018
Device: Kobo Clara HD
Thank you Frostschutz, all is okay

:-)
Rommyno is offline   Reply With Quote
Old 01-03-2019, 08:38 PM   #163
leonmoonen
Junior Member
leonmoonen began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2017
Device: Kobo Elipsa, Kobo Forma, Kobo Glo, Sony PRS-350
negative offsets on Forma?

Does anyone have negative offsets working on the Forma in combination with switching between portrait and landscape? (as suggested here and here).

I have truetype_y=-30 but see no time in either portrait or landscape. Things work well in portrait mode with truetype_y=1870 in the config file.
leonmoonen is offline   Reply With Quote
Old 01-03-2019, 09:23 PM   #164
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@leonmoonen: Try with a larger negative top margin (i.e., 1870 actually corresponds to -50 in Portrait on the Forma [screen resolution is 1440x1920])?

EDIT: Incidentally, 50px is *exactly* the height I need with my tweaked Bookerly at the default size (... for most glyphs) on 300ppi devices like the Forma.

c.f., fbink's verbose output on the CLI:

Code:
Max LW: 1440  Max LH: 53  Max BL: 41  FntSize: 50
FntSize is what the metrics say the font needs, Max LH is what it actually does need in practice for the string that was printed.
(Metrics are purposely borked on my Bookerly to limit lineheights, which explains the discrepancy).

So, with -50, printing is *right* at the bottom edge (... for most glyphs, in my example, I'd actually need -53).

Last edited by NiLuJe; 01-03-2019 at 09:37 PM.
NiLuJe is offline   Reply With Quote
Old 01-04-2019, 09:12 AM   #165
leonmoonen
Junior Member
leonmoonen began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2017
Device: Kobo Elipsa, Kobo Forma, Kobo Glo, Sony PRS-350
Quote:
Originally Posted by NiLuJe View Post
@leonmoonen: Try with a larger negative top margin (i.e., 1870 actually corresponds to -50 in Portrait on the Forma [screen resolution is 1440x1920])?
thanks! that fixes it, I had incorrectly calculated from 1900 instead of 1920
leonmoonen is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I (almost) spend more time reading about e-readers than e-reading Antoinekamel General Discussions 15 02-25-2013 10:48 AM
360 PB360 display gets "stripes" from time to time klaetsch PocketBook 1 01-05-2011 04:49 AM
How to get the time to display synic Sony Reader 9 06-10-2009 06:05 PM
Time Display Jenny123 Sony Reader 2 04-23-2009 02:06 PM
Time Display? MickeyC Sony Reader 3 02-10-2008 11:57 PM


All times are GMT -4. The time now is 07:03 AM.


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