Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases
WebTxt (Read text from the internet)
Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo
-
- Plugin Author
- Posts: 51
- Joined: February 17th, 2006, 4:53 am
WebTxt (Read text from the internet)
Hello,
This plugin reads a text file from the internet and returns the contents back to LCDSmartie. It is very simple, it reads the file line by line and returns the whole thing back. It takes two arguments, URL and refresh interval in seconds. More information can be found in the readme, and the source is of course included.
This plugin has been updated to allow you to specify which line of the text file you want to return, so it's easier to parse with another plugin. Check the README file for more information.
Download: http://krisp.com/plugins/webtxt.zip
This plugin reads a text file from the internet and returns the contents back to LCDSmartie. It is very simple, it reads the file line by line and returns the whole thing back. It takes two arguments, URL and refresh interval in seconds. More information can be found in the readme, and the source is of course included.
This plugin has been updated to allow you to specify which line of the text file you want to return, so it's easier to parse with another plugin. Check the README file for more information.
Download: http://krisp.com/plugins/webtxt.zip
Last edited by krisp on February 25th, 2006, 7:33 pm, edited 1 time in total.
-
- Plugin Author
- Posts: 51
- Joined: February 17th, 2006, 4:53 am
It should be returning the entire text file at once. However, line feeds and such will be intact, so you'll have to make note of that. It just returns the raw data from whatever file you point it at, so if you point it at a text file you get ascii text, if you point it at an HTML file you get the raw html.
-
- Plugin Author
- Posts: 51
- Joined: February 17th, 2006, 4:53 am
-
- Forum Supporter
- Posts: 734
- Joined: October 15th, 2005, 10:39 am
- Location: Romania
- Contact:
Hi!
I am trying your plugin but it seems it doesn't pass along with the url a username and password
http://username:password@my.router.lan/ ... treive.txt
I get: Exception: The remote server returned an error: (401) Unauthorized.
Maybe you could look into this?
Thank you!
Caesar.
I am trying your plugin but it seems it doesn't pass along with the url a username and password
http://username:password@my.router.lan/ ... treive.txt
I get: Exception: The remote server returned an error: (401) Unauthorized.
Maybe you could look into this?
Thank you!
Caesar.
-
- Posts: 4
- Joined: June 12th, 2006, 5:59 pm
ShoutCast stats with WebTxt
Hi all!
This WebTxt-plugin is very nice. Just a note for you who run your own radio stations with ShoutCast. I use WebTxt to give me info on the current status of the station. If it's online or not, what stream is currently running, how many listeners (and how many slots) and on the fourth row, I show what tune is currently playing.
I use WebTxt to pull info from GMTT ShoutCast Stats 2.3-program. It's a small PHP-script, and duplicating the "radio_stats.php" to "radio_stats2.php" and calling that from WebTxt gives you all info you need. You need to edit the HTML though to pure text. Other than that, it's extremely easy and works very well.
This WebTxt-plugin is very nice. Just a note for you who run your own radio stations with ShoutCast. I use WebTxt to give me info on the current status of the station. If it's online or not, what stream is currently running, how many listeners (and how many slots) and on the fourth row, I show what tune is currently playing.
I use WebTxt to pull info from GMTT ShoutCast Stats 2.3-program. It's a small PHP-script, and duplicating the "radio_stats.php" to "radio_stats2.php" and calling that from WebTxt gives you all info you need. You need to edit the HTML though to pure text. Other than that, it's extremely easy and works very well.
-
- Plugin Author
- Posts: 1604
- Joined: February 13th, 2005, 7:38 pm
- Location: Athens - Greece
- Contact:
-
- Posts: 4
- Joined: February 19th, 2007, 8:54 pm
-
- Posts: 14
- Joined: July 31st, 2011, 3:07 am
Re: WebTxt (Read text from the internet)
I realize that this is a very old thread. However, I am trying to use webtxt to pull information from my Ceton InfiniTV4 CableCARD tuner. It has a web interface to display things like tuner temperatures. I am using a combination of webtxt and cut.dll to display the tuner temperatures. It does display a temperature. The problem is that the temperature never updates unless I exit LCD Smartie and then start it again. Also, since I'm trying to display four tuner temperatures all on the same line of the display, I think the minimum 1 second refresh interval is a problem... all four temps display the same number. I can verify that the four tuners each have a slightly different temperature by going to the Ceton status page via my browser.
Any help is much appreciated.
Thanks,
Brian
EDIT: This is strange, but it's working now. I don't really understand why it was displaying all the same temps before. Here's my display line, just in case anyone else has a Ceton tuner and wants to display tuner temps on their LCD:
Any help is much appreciated.
Thanks,
Brian
EDIT: This is strange, but it's working now. I don't really understand why it was displaying all the same temps before. Here's my display line, just in case anyone else has a Ceton tuner and wants to display tuner temps on their LCD:
Code: Select all
Tunr:$CustomChar(7,28,20,28,0,0,0,0,0)$dll(cut.dll,1,141#2,$dll(webtxt,1,http://192.168.200.1/get_var?i=0&s=diag&v=Temperature,1#0))$Chr(135) $dll(cut.dll,1,141#2,$dll(webtxt,1,http://192.168.200.1/get_var?i=1&s=diag&v=Temperature,1#0))$Chr(135) $dll(cut.dll,1,141#2,$dll(webtxt,1,http://192.168.200.1/get_var?i=2&s=diag&v=Temperature,1#0))$Chr(135) $dll(cut.dll,1,141#2,$dll(webtxt,1,http://192.168.200.1/get_var?i=3&s=diag&v=Temperature,1#0))$Chr(135)
Re: WebTxt (Read text from the internet)
I'm having a similar problem to barnabas1969...only my installation hasn't miraculously stopped misbehaving.
I'm trying to read information from JDownloader's remote control interface to monitor download status. The control interface listens to http requests on port 10025 (by default) and gives a simple text response.
My code for the screen isand my problem is that this produces an output which cycles from
to
to
and back to the first screen (100 is a sample figure-the actual speed does update). If I remove line three (Text03="") without restarting, line 2 will still cycle between the status and the speed. However if I then restart lcdsmartie, then the cycling stops and only the status is displayed.
The output from jdownloader seems stable in firefox, and the behaviour continues in spite of trying different refresh intervals. I've tried fiddling with various different settings, all to no avail, and the problem is the same whether I use 5.4 or the latest 5.4.2.92 Beta. For the record I'm using a parallel hd44780 4x20 display. Does anyone have any bright ideas?
I'm trying to read information from JDownloader's remote control interface to monitor download status. The control interface listens to http requests on port 10025 (by default) and gives a simple text response.
My code for the screen is
Code: Select all
Text01="Jdownloader is"
Text02="$dll(webtxt,1,http://localhost:10025/get/downloadstatus,5#0)"
Text03="Downloads:$dll(webtxt,1,http://localhost:10025/get/speed,5#0)kB/s"
Text04=""
Code: Select all
Jdownloader is
RUNNING
Downloads:RUNNINGkB/s
Code: Select all
Jdownloader is
RUNNING
Downloads:100kB/s
Code: Select all
Jdownloader is
100
Downloads:100kB/s
The output from jdownloader seems stable in firefox, and the behaviour continues in spite of trying different refresh intervals. I've tried fiddling with various different settings, all to no avail, and the problem is the same whether I use 5.4 or the latest 5.4.2.92 Beta. For the record I'm using a parallel hd44780 4x20 display. Does anyone have any bright ideas?
Last bumped by Anonymous on November 14th, 2011, 11:38 pm.