Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

XML / RSS reader with web application

Place your requests for plugins here

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

Post Reply
karakan
Posts: 3
Joined: February 25th, 2009, 3:35 pm
Location: Turkey / Ankara
Contact:

XML / RSS reader with web application

Post by karakan »

Hi all ,
i dont know much about programming a plugin , but i can write a PHP script , wich crawls specified URL , and outputs data as XML format. So if anyone interested on writng a plugin for this , i can supply a PHP script which can be used for any data over internet and outputs xml. This way anybody can use this script on their own web server to fetch data and display it on their own LCD.

Waiting for replies.
caesar
Forum Supporter
Posts: 734
Joined: October 15th, 2005, 10:39 am
Location: Romania
Contact:

Post by caesar »

If I get it correctly your php script outputs data as an rss feed? then you can easily read that off your web server with smarties rss function.
karakan
Posts: 3
Joined: February 25th, 2009, 3:35 pm
Location: Turkey / Ankara
Contact:

Post by karakan »

Thats right , as schematically;



WebSite to Read RSS -> PHP Script(on users own website)(XML Output) -> LCD Smartie Plugin -> LCD display

i checked out plugins but just found webservices plugin works like it , but i mean that , i can supply a PHP script which can read any RSS Feed , and users can modify it for their needs. For example ,

i want to be informed about 3 RSS feeds, the PHP script reads these 3 RSS Feeds , and outputs XML , so you dont need to add 3 different feed sources , you only add http://my.domain.tld/RSS2LCD.php and it gives an out put like ;

Code: Select all


<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>LCD Smartie - New Plugins Released</title>
    <link>http://forums.lcdsmartie.org/</link>
    <description>There are new lcd-smartie plugin relases please visit our forums.</description>
    <language>en-us</language>
    <pubDate>Tue, 10 Jun 2009 04:00:00 GMT</pubDate>
    <lastBuildDate>Tue, 10 Jun 2009 09:41:01 GMT</lastBuildDate>
    <generator>RSS2LCD</generator>
    </item>
 
    <title>BBC News - bla bla bla</title>
    <link>http://lhttp://forums.lcdsmartie.org/</link>
    <description>bla bla bla bla .</description>
    <language>en-us</language>
    <pubDate>Tue, 10 Jun 2009 04:00:00 GMT</pubDate>
    <lastBuildDate>Tue, 10 Jun 2009 09:41:01 GMT</lastBuildDate>
    <generator>RSS2LCD</generator>
    </item>
 
    <title>Another RSS Feed - etc etc etc</title>
    <link>http://lhttp://forums.lcdsmartie.org/</link>
    <description>some text here .</description>
    <language>en-us</language>
    <pubDate>Tue, 10 Jun 2009 04:00:00 GMT</pubDate>
    <lastBuildDate>Tue, 10 Jun 2009 09:41:01 GMT</lastBuildDate>
    <generator>RSS2LCD</generator>
    </item>
  </channel>
</rss>
and plugins reads and writes this onto the display..


With this way , this plugin can read and write any RSS feeds , or any text that PHP script generated. It can be forum plugin , it can be an email checker , an currency displayer , an online site checker(this was the first idea on my mind , a script that check several domains , and outputs XML for unreachable web sites, couse i have many domains on different servers , and something like this will be very usefull) ...etc.

Becouse XML data prepaired by PHP script , and PHP can do anything or can read any source (like MySQL, flat file , or with curl or fopen function any website).
caesar
Forum Supporter
Posts: 734
Joined: October 15th, 2005, 10:39 am
Location: Romania
Contact:

Post by caesar »

You are good to go then!

Use:
$Rss(URL,t|d|b,ITEM#,MAXFREQHRS)

URL is the php script URL
t= title
d=data
b=both

item# to fetch from the feed
MAXFREQ = how frequently to check the feed


If you get the time, please post some examples from the php script.
karakan
Posts: 3
Joined: February 25th, 2009, 3:35 pm
Location: Turkey / Ankara
Contact:

Post by karakan »

I am going to post here the php script when i finished, so everyone can use it
caesar
Forum Supporter
Posts: 734
Joined: October 15th, 2005, 10:39 am
Location: Romania
Contact:

Post by caesar »

Thanks, looking forward!
Post Reply