DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-11-08 15:09:53

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Feed reader

Maybe a little off-topic, but I think a local feed reader is a nice application for the DNS-323. Attached is a simple script I'm using to make HTML pages from news feeds. It runs via lighttpd and needs the libxml2 ( http://www.inreto.de/dns323/fun-plug/0. … ml#libxml2 ) and newlisp packages ( http://www.inreto.de/dns323/fun-plug/0. … ml#newlisp ).

Installation is simple:

Code:

cd /mnt/HD_a2/www/pages
tar xzvf /path/to/news-1.tar.gz

You need to make some changes to /ffp/etc/lighttpd.conf. First, be sure you have the cgi module enabled. Then, add 'index.l' to the list of index file names,
and '.l' to the list of cgi extensions:

Code:

...
server.modules             = (
...
                               "mod_cgi",
...
index-file.names           = ( "index.php", "index.html", "index.l",
                               "index.htm", "default.htm" )
...
cgi.assign                 = ( ".pl"  => "/ffp/bin/perl",
                               ".cgi" => "/ffp/bin/sh",
                               ".l" => "/ffp/bin/newlisp" )

An example list of feeds is in news/feeds.conf.l. It contains lists of URLs .


Attachments:
Attachment Icon news-1.tar.gz, Size: 1,966 bytes, Downloads: 199

Offline

 

#2 2009-02-28 13:26:08

egg_nostic
Member
Registered: 2008-05-15
Posts: 13

Re: Feed reader

Hi there,

First of all, and you might get this quite a lot, thanx for providing the funplug to the community smile

Second, I'm having some problem accessing the web feeds with the script you provided. I'm getting an internal server error and when I look in the error.log file, I see:


(mod_cgi.c.734) stat for cgi-handler /ffp/bin/newslisp failed: No such file or directory


could you help me resolve this problem? I've done everything you posted above.

Oh, and I have another question. Does this script also store the old web feed in some sort of file? The reason I ask this is because I'm looking for a feed reader that can store old feeds in some sort of database to make it accessible for later times. If this script doesn't, do you know program/script that could do that and also makes it possible to search old feeds using the webinfterface?

thanx in advance

Last edited by egg_nostic (2009-02-28 13:51:24)

Offline

 

#3 2009-02-28 14:07:03

egg_nostic
Member
Registered: 2008-05-15
Posts: 13

Re: Feed reader

egg_nostic wrote:

Hi there,

First of all, and you might get this quite a lot, thanx for providing the funplug to the community smile

Second, I'm having some problem accessing the web feeds with the script you provided. I'm getting an internal server error and when I look in the error.log file, I see:


(mod_cgi.c.734) stat for cgi-handler /ffp/bin/newslisp failed: No such file or directory


could you help me resolve this problem? I've done everything you posted above.

Oh, and I have another question. Does this script also store the old web feed in some sort of file? The reason I ask this is because I'm looking for a feed reader that can store old feeds in some sort of database to make it accessible for later times. If this script doesn't, do you know program/script that could do that and also makes it possible to search old feeds using the webinfterface?

thanx in advance

I fixed this problem. The error message says it all ("newSlips") smile

Last edited by egg_nostic (2009-02-28 14:07:14)

Offline

 

#4 2009-03-01 21:47:40

knireis
Member
Registered: 2007-12-10
Posts: 231

Re: Feed reader

I installed according instructions. When i point my browser to the index.l i get following error message:

ERR: problem accessing file in function load : "/usr/share/newlisp/modules/crypto.lsp"

I have no idea what this means.

Offline

 

#5 2009-03-02 00:18:03

egg_nostic
Member
Registered: 2008-05-15
Posts: 13

Re: Feed reader

knireis wrote:

I installed according instructions. When i point my browser to the index.l i get following error message:

ERR: problem accessing file in function load : "/usr/share/newlisp/modules/crypto.lsp"

I have no idea what this means.

I do.. the index.l file is incorrect. you should do the following changes:

Code:

line 1: #!/ffp/bin/newlisp

Code:

line 8: (load "/ffp/share/newlisp/modules/crypto.lsp")

The original code is not pointing to the newlisp package which is installed in your ffp directory.

After changing it, however, I dont get any descend RSS feed output; only a bunch of errors. I'm getting the impression that it can only process feeds that are directly pointing to a *.xml file.

tell me, if you got it to work...

good luck

Last edited by egg_nostic (2009-03-02 00:18:19)

Offline

 

#6 2009-03-02 15:40:29

knireis
Member
Registered: 2007-12-10
Posts: 231

Re: Feed reader

egg_nostic wrote:

tell me, if you got it to work...

good luck

thanks for the help, Now I probably get the same errors as you get. It starts with:

Mon Mar 2 08:43:10 2009 dns323 dns323/de
Error: Could not get http://dns323.kood.org/forum/rss.php Data:

   
       
           
            http://dns323.kood.org/forum
            DSM-G600, DNS-323 and TS-I300 Hack Forum Rss Feed 18
            en
            © DSM-G600, DNS-323 and TS-I300 Hack Forum
            Mon, 02 Mar 2009 09:43:39 +0200
           
            

Fatal error:  Call to undefined function  makeurl() in /home/omad/5017/forum.source.pri.ee/rss.php on line 91
Error: Could not get http://dns323.kood.org/feed.php Data:




   
       
       
        http://dns323.kood.org/
       
       2009-03-02T09:38:10+02:00

Offline

 

#7 2009-03-04 14:11:39

egg_nostic
Member
Registered: 2008-05-15
Posts: 13

Re: Feed reader

Yes and I have no idea how to fix it... and I have too little knowlegde of writing software nor do I have the time smile

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB