08-23-2011, 08:56 AM | #31 |
Wizard
Posts: 1,669
Karma: 2300001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
|
I just tried this and works perfect. It also the safest "hack" I know
Thanks.. |
08-23-2011, 02:48 PM | #32 |
Junior Member
Posts: 9
Karma: 1000010
Join Date: Jun 2011
Location: Poland
Device: Kindle 3
|
Thanks a lot. It is just what I need, but it must be improved.
|
08-24-2011, 01:04 PM | #33 |
Enthusiast
Posts: 35
Karma: 1566
Join Date: Nov 2010
Device: kindle 3wifi
|
I took a look at your code, and found that we were working on different levels. My program directly writes to the framebuffer of the kindle for showing picture, while yours asks the web browser to the job for you.
|
08-25-2011, 12:49 AM | #34 |
I <3 my Kindle
Posts: 528
Karma: 51332
Join Date: Nov 2010
Location: United States
Device: Kindle 3G + WiFi
|
Yep. Yours is a lot more advanced than mine. I have little knowledge of how I would even start to write to the framebuffer.
|
08-25-2011, 10:34 AM | #35 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2010
Device: none yet
|
kranu, how does your program work? Is there a need to update screen manually? Or does it work like RDP?
|
08-25-2011, 11:30 AM | #36 |
Enthusiast
Posts: 35
Karma: 1566
Join Date: Nov 2010
Device: kindle 3wifi
|
well,his program works this way: the host computer has a web server, which the browser of your kindle can connect to. The page shown in your browser on kindle is the a picture of the screenshot of your pc. The page refreshes automatically, so it will show "realtime" screenshots of your pc. As pointed out by others this maybe the safest way to do the job, sine it doesn't need any changes to your kindle at all. But the performance could be an issue and it would be hard to work around.
|
08-25-2011, 11:42 PM | #37 |
Connoisseur
Posts: 53
Karma: 374
Join Date: Mar 2011
Device: Kindle 3/G
|
That's a great script, Kranu. I'm having fun hosting little bits of HTML on my local network. Do you know if it's possible to link a local HTML file to throw up instead?
On topic though, I found that with your current image dimensions, the Kindle creates a scroll bar and scales the image a little. I reduced them to 595x701 and it works great with no scroll bars and pixel-perfect scaling. I also changed the "100%" scaling to exact pixel dimensions. This is very useful, thank you. |
08-26-2011, 06:13 AM | #38 | |
I <3 my Kindle
Posts: 528
Karma: 51332
Join Date: Nov 2010
Location: United States
Device: Kindle 3G + WiFi
|
Quote:
Hmm, I never really experimented with the size of the image. I just picked something that looked OK to me I'll take note of those dimensions in case I ever release an update to my script. |
|
09-01-2011, 12:57 PM | #39 |
Junior Member
Posts: 4
Karma: 10
Join Date: Dec 2010
Device: kindle 3
|
ImportError: No module named wx
If you get an error like this:
Code:
$ python webserver_v1.py Traceback (most recent call last): File "webserver_v1.py", line 16, in <module> import wx ImportError: No module named wx Code:
$ sudo aptitude install python-wxtools python-wxgtk2.8 |
09-01-2011, 01:16 PM | #40 |
Junior Member
Posts: 4
Karma: 10
Join Date: Dec 2010
Device: kindle 3
|
Kranu,
I made some slight modifications to your script. Nothing major, just makes it a little easier to see how to get the kindle to connect. http://pastebin.com/Q6ipRm78 ---- Here is a "better" way to get the ip, but I can't get the white space out between the IP and the port. If I can figure out a way to get rid of the white space, I'll post it up on pastebin again. And yes, I'm sure there is a much cleaner way to do this, but I'm not *that* familiar with awk. Anyway, you can see what I'm getting at: Code:
os.system("/sbin/ifconfig | grep inet | grep -v inet6 | grep -v 127 | awk '{ sub(/inet addr:/, \"\"); print }' | awk '{ sub(/Bcast:.............../, \"\"); print }' | awk '{ sub(/M................./, \"\"); print }' | awk '{print $0,\":8000\"}'") Code:
os.system("/sbin/ifconfig | grep inet | grep -v inet6 | grep -v 127 | awk '{ sub(/inet addr:/, \"\"); print }' | awk '{ sub(/Bcast:.............../, \"\"); print }' | awk '{ sub(/M................./, \"\"); print }' | awk '{print $1,\":8000\"}' |awk '{ sub(/ /, \"\"); print }'") Last edited by pconwell; 09-01-2011 at 02:05 PM. |
09-01-2011, 04:50 PM | #41 | |
I <3 my Kindle
Posts: 528
Karma: 51332
Join Date: Nov 2010
Location: United States
Device: Kindle 3G + WiFi
|
Quote:
|
|
09-01-2011, 04:52 PM | #42 | |
I <3 my Kindle
Posts: 528
Karma: 51332
Join Date: Nov 2010
Location: United States
Device: Kindle 3G + WiFi
|
Quote:
Update: I found a solution. I updated the program. Last edited by kranu; 09-02-2011 at 12:27 AM. |
|
09-19-2011, 11:13 AM | #43 |
Junior Member
Posts: 5
Karma: 10
Join Date: Sep 2011
Device: kindle DXG
|
new progress?
Dear Guys,
You have done what I am looking forwards for Kindles DXG. Kindle as a PC monitor, that would be very cool. Have you got some new progress? please let us know your solution when you get the job done. I am eager to use it. |
09-19-2011, 12:03 PM | #44 | |
Wizard
Posts: 1,669
Karma: 2300001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
|
Quote:
|
|
09-19-2011, 07:30 PM | #45 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
I have finished a first version of a VNC viewer. It's another approach to bringing PC screen content to the Kindle (tested on K3W and KDXG). Discussion and software is in a separate thread.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle -- additional killer app idea | ginolee | Amazon Kindle | 4 | 09-30-2010 10:45 PM |
An additional 'Karma' Question. . . | GlenBarrington | General Discussions | 23 | 05-27-2010 09:43 AM |
additional reading.. | scottjl | Apple Devices | 1 | 04-28-2010 06:24 PM |
ADDITIONAL CSS | LARdT | Calibre | 1 | 02-04-2010 08:02 PM |
Additional Columns | dvs0826 | Calibre | 3 | 08-22-2009 06:43 PM |