Tordex Community
weather monitor improvement - Printable Version

+- Tordex Community (http://forum.tordex.com)
+-- Forum: True Launch Bar plugins (http://forum.tordex.com/forum-4.html)
+--- Forum: Plugin features and improvements (http://forum.tordex.com/forum-15.html)
+--- Thread: weather monitor improvement (/thread-1176.html)



- BlueHeaven - 01-28-2004

I'm not sure if this could be done easily, and I'm not sure how quite to describe it, so I'll use an example from wunderground for moon rise and moon set. Generally the code for this is:

<tr BGCOLOR="#FFFFFF"><td>Moon</td>
<td align=right><b>10:59 AM EST</b></td>
<td align=right><b>12:28 AM EST</b></td></tr>

however, two other formats are shown below:

<tr BGCOLOR="#FFFFFF"><td>Moon</td>
<td align=right>(<b>1/28</b>) <b>10:56 AM MST</b></td>
<td align=right>No Moon Set</td></tr>

The first has the date, and the second indicates no moon set. Obviously this makes it difficult to pull the time because the formatting (especially the bold tags) are different.

How difficult would it be to be able to program in some type of regular expression search? So that we can use the find and delim entries to find a block of text then search for a specific expression within that text, in the case of time something like '%2d:%2d'

Just a thought, as it would make the weather monitor more flexible, and more like a general html information grabber.

Rick.


- HorusUK - 01-28-2004

I had that problem too! Big Grin