Thread: eMonitor
View Single Post
Old 09-01-2011, 06:45 PM   #1
kranu
I <3 my Kindle
kranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensions
 
Posts: 528
Karma: 51332
Join Date: Nov 2010
Location: United States
Device: Kindle 3G + WiFi
eMonitor

Hi,

This is version 2 of my already released program. I had originally released it as a reply in a thread, mainly because I thought only a few people would be interested in how my code worked. However, I was surprised that several people actually liked and used the program. As such, I am creating its own thread. (It was also somewhat hijacking the main thread.)

Well, here is my eMonitor program. It uses the web browser for rendering, so it isn't very efficient, but I suppose that it is better than nothing. Tested on Windows 7 x64, Python 2.7.2, wxPython 2.8.

Prerequisites:
Procedure:
1. Download and extract webserver_v2.zip in the attachments section below. Double click the extracted file, and it should open with Python. You should look something like this:



2. Open the web browser on your Kindle. In the address bar, type in the URL displayed in the Python window. If all goes well, you should see the top left area of your computer screen.



Notes:
  • Your Kindle must be connected to the same WiFi network as your computer.
  • You must allow Python through any firewall on your computer.
  • The script uses an HTTP server on port 8000. If for some reason you don't like the number 8000, or some other program is using that port, you can change it somewhere near the top of the program.
  • As of version 2, the program automatically detects your IP Address for you. However, if something goes wrong, you can manually find your IP Address.
    Spoiler:
    Open command prompt and run the command "ipconfig". For linux/mac users, the terminal command is "ifconfig". You can see my IP Address highlighted below:


New in version 2:
  • Changed image dimensions to better fit screen (Thanks Mario1up)
  • Automatically detect IP Address (Thanks pconwell)
  • Switched from PNG to grayscale JPG for smaller file size
Attached Thumbnails
Click image for larger version

Name:	client.gif
Views:	15138
Size:	52.1 KB
ID:	75990   Click image for larger version

Name:	server.png
Views:	14997
Size:	31.8 KB
ID:	75991   Click image for larger version

Name:	ip.png
Views:	15045
Size:	39.6 KB
ID:	75992  
Attached Files
File Type: zip webserver_v2.zip (2.8 KB, 1514 views)

Last edited by kranu; 09-01-2011 at 06:52 PM.
kranu is offline   Reply With Quote