Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-23-2015, 04:30 PM   #1
cdelahousse
Junior Member
cdelahousse began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2015
Device: Kindle 3 Wifi
Displaying text in a regular and automated way

Hey guys,

I haven't used my kindle in quite a while and I'd like to put it to good use. I'm embarking on a project that's that's inspired by the Kindle Weather Station:

https://www.mobileread.com/forums/sho...d.php?t=200621
http://mpetroff.net/2012/09/kindle-weather-display/

My goal: convert my Kindle 3 Wifi into a display that regularly downloads a text file from a server, parses it, and then displays it in a pleasant way. This'll be used as a To Do list viewer.

The only issue I have left to figure out is how to display using custom fonts and what not. If I use the SVG method outlined in the links above, I'll have issues with text wrapping because SVG doesn't handle that well. I've played around with the `eips` command but that outputs the text in a FUGLY way.

Is there any way to get text to display well, word wrapping and all, on the Kindle?

Thanks

Last edited by cdelahousse; 01-23-2015 at 04:31 PM. Reason: code blocks are ugly
cdelahousse is offline   Reply With Quote
Old 12-16-2016, 02:15 AM   #2
kitomer
Member
kitomer began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Dec 2010
Device: Kindle 3 Wi-Fi
I am trying something similar at the moment. I use eips to display a generated bmp file. The bmp generated has to be generated "wrong" in order to be displayed correctly, see https://www.mobileread.com/forums/sho...d.php?t=281635

eips can also display png and jpg images but those are harder to generate.

My complete setup is: jailbreak + mkk + KUAL + perl (compiled for kindle, someone in the Forums did it...) + mey Perlscript that generates the bmp
kitomer is offline   Reply With Quote
Advert
Old 12-19-2016, 08:20 AM   #3
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by kitomer View Post
I am trying something similar at the moment. I use eips to display a generated bmp file. The bmp generated has to be generated "wrong" in order to be displayed correctly, see https://www.mobileread.com/forums/sho...d.php?t=281635

eips can also display png and jpg images but those are harder to generate.

My complete setup is: jailbreak + mkk + KUAL + perl (compiled for kindle, someone in the Forums did it...) + mey Perlscript that generates the bmp
Try the other direction -
Create as correct bmp -> convert to .jpg or .png -
That will ensure that it is easy to create for your script and can be displayed on any Kindle (depending on options to imagemagck of course).

Not all Kindles have imagemagck installed, but the SS add-in includes a copy.

Otherwise, you would have to write a different script for each different Kindle model screen (they are not the same at the eips level or lower).
knc1 is offline   Reply With Quote
Old 12-19-2016, 11:24 PM   #4
kitomer
Member
kitomer began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Dec 2010
Device: Kindle 3 Wi-Fi
Right now the generation of the 4bpp bmp on the kindle 3 keyboard takes about 1-2 seconds (redraw takes about 1s). So I guess the conversion to png/jpg via imagemagick (on the device) would add up to that?!
kitomer is offline   Reply With Quote
Old 12-20-2016, 09:23 AM   #5
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
I do not know, try it and report back with the numbers.

There are a lot of used Kindles in the world that could be put to use, not just the K3.
knc1 is offline   Reply With Quote
Advert
Old 12-21-2016, 02:24 AM   #6
kitomer
Member
kitomer began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Dec 2010
Device: Kindle 3 Wi-Fi
Just wanted to note that I finally found the fastest way to render graphics generated on the device, which is directly to framebuffer. It turns out that if one generates a 4bpp bmp then the exact pixel data of that kind of bmp can be dumped to the framebuffer at /dev/fb0 and will be displayed just nicely, without the overhead of writing to an actual bmp file and calling eips to display it.
kitomer is offline   Reply With Quote
Old 12-21-2016, 02:48 AM   #7
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 765432
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
Nice finding!
Can you share an example?
encol is offline   Reply With Quote
Old 12-21-2016, 04:40 PM   #8
kitomer
Member
kitomer began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Dec 2010
Device: Kindle 3 Wi-Fi
sure, attached. The pixel data starts at byte offset 312.
Attached Thumbnails
Click image for larger version

Name:	final-as-shown-on-kindle.png
Views:	144
Size:	5.0 KB
ID:	153694  
Attached Images
File Type: bmp final.bmp (234.7 KB, 134 views)
kitomer is offline   Reply With Quote
Old 12-21-2016, 04:57 PM   #9
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 765432
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
I meant the commands you've used

Last edited by encol; 12-21-2016 at 05:46 PM.
encol is offline   Reply With Quote
Old 12-21-2016, 05:45 PM   #10
parbour
Junior Member
parbour began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2016
Device: Kindle PW3
Direct to framebuffer?

Good effort here, I'm working toward a similar goal.

I'm wondering if there would be an easy way to simply force a web browser into the front of the display, and just drive the display through html.

Currently, I'm using the screensaver application to show what I want, by generating the SVG on my server and pulling it through cron, but the screensaver needs a reboot everytime.

What I'm trying to understand is if I can refresh the screen with an image regularily without a reboot.

Any projects that do that?
parbour is offline   Reply With Quote
Old 12-21-2016, 07:03 PM   #11
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by parbour View Post
Good effort here, I'm working toward a similar goal.

I'm wondering if there would be an easy way to simply force a web browser into the front of the display, and just drive the display through html.

Currently, I'm using the screensaver application to show what I want, by generating the SVG on my server and pulling it through cron, but the screensaver needs a reboot everytime.

What I'm trying to understand is if I can refresh the screen with an image regularily without a reboot.

Any projects that do that?
What model?
What firmware version?
knc1 is offline   Reply With Quote
Old 12-21-2016, 08:39 PM   #12
parbour
Junior Member
parbour began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2016
Device: Kindle PW3
Paperwhite

PW3, firmware likely doesn't matter too much, I'm not committed to anyone in particular.

Is there somewhere in this board or elsewhere with any references to the modules in use?
parbour is offline   Reply With Quote
Old 12-22-2016, 07:54 AM   #13
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by parbour View Post
PW3, firmware likely doesn't matter too much, I'm not committed to anyone in particular.

Is there somewhere in this board or elsewhere with any references to the modules in use?
The resources and the entire system being run on a PW3 are MUCH different than on a K3.
They did more than cut off the keyboard and add a touchscreen over the years.

The K3 was the 8th model produced, there have been nearly 70 models released since then.

With some Kindle models, the firmware version would make a difference.

= = = =

Yes, you can still write directly to the frame buffer on a PW3 running 5.8.x firmware.
Not that you would like the complications of doing so.
All series 5 firmwares are running X11.
At least they are unless you stop it.

Just what all do you intend to stop, if anything?
What web browser? Stock or one of the add-ins?

Last edited by knc1; 12-22-2016 at 07:58 AM.
knc1 is offline   Reply With Quote
Old 12-22-2016, 04:33 PM   #14
parbour
Junior Member
parbour began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2016
Device: Kindle PW3
Maybe I'll just push to X11

I've been surfing the filesystem, and I may just see if I can push things into X, or even just replace X.

I'll start pulling everything off the filesystem tonight and see what I can find.
parbour is offline   Reply With Quote
Old 12-22-2016, 05:24 PM   #15
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by parbour View Post
I've been surfing the filesystem, and I may just see if I can push things into X, or even just replace X.

I'll start pulling everything off the filesystem tonight and see what I can find.
No need to risk your Kindle doing that.

The Amazon update images are just that, complete system images.
Download one, open it with KindleTool, then just mount the filesystem image (requires a Linux system, but even a Live CD version will do that).

Replace X11?
I don't think you understand what you are writing about.
You had better study and understand the system first.
knc1 is offline   Reply With Quote
Reply

Tags
text display weather todo


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Text in converted epub is bold, underlined - How to make regular? frank14612 Conversion 5 02-22-2014 09:45 AM
Why is Sigil 0.7.1 displaying all text oblique? Abull ePub 28 04-20-2013 01:57 PM
displaying foreign accented text sovre Sony Reader Dev Corner 4 07-28-2011 05:35 AM
problem displaying greek text in mobipocket for palm sapient Alternative Devices 0 05-14-2011 11:39 PM
I found way to vastly improve displaying of text! Malder1 iRex 43 01-05-2007 05:32 PM


All times are GMT -4. The time now is 02:55 AM.


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