Quantcast
Channel: MobileRead Forums - Kobo Developer's Corner
Viewing all articles
Browse latest Browse all 1561

An RSS reader for kobo wifi e-reader

$
0
0
Following on from my earlier thread[1] where I created a new program for directly displaying PNG images on my wifi e-reader (4-bit display depth) without a full screen update I have created a simple RSS reader application.

To be able to use this you will need the python interpreter from the kobo-weather[2] application and the contents of the zip file attached here.

To use the RSS reader you need to copy the files onto the e-reader and from within that directory run:
Code:

python rss-gui.py
There is a file called rssurls.py that can be edited to change the list of RSS sources to use. The program will start up with a list of these sources which can be selected using the up/down and select butons (pressing the back button will exit the program).

When one of the RSS sources is selected the file will be downloaded, converted to a set of PNG files and then displayed. The individual pages can be viewed using the left/right buttons and the back button returns to the menu. Some example images are shown attached (not particularly pretty but useable).

The RSS processing makes use of the feedparser.py[3] and html2text.py[4] libraries to do the conversion and my PNG displaying program[1] to show them. The selection of the RSS sources from the menu (updating the highlighted menu items) is performed by writing to the frame buffer directly from Python.

As with my previous work this has only been tested on an e-reader with 4-bit display, but I don't see any reason why it shouldn't work on the 8-bit version (the image handling is all performed in 8-bit depth).

[1] http://www.mobileread.com/forums/sho...d.php?t=234002
[2] https://bitbucket.org/david_weese/kobo-weather-app
[3] http://code.google.com/p/feedparser/
[4] https://github.com/aaronsw/html2text

Attached Thumbnails
Click image for larger version

Name:	rss-gui.png
Views:	N/A
Size:	14.3 KB
ID:	119711   Click image for larger version

Name:	rss-page.png
Views:	N/A
Size:	72.0 KB
ID:	119712  
Attached Files
File Type: zip rss-reader.zip (74.2 KB)

Viewing all articles
Browse latest Browse all 1561

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>