weather monitor improvement
Started by BlueHeaven


Rate this topic
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5


2 posts in this topic
BlueHeaven
Junior Member
**


0
40 posts 12 threads Joined: Jun 2003
01-28-2004, 10:01 PM -
#1
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.


Messages In This Thread
[No subject] - by BlueHeaven - 01-28-2004, 10:01 PM
[No subject] - by HorusUK - 01-28-2004, 10:05 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)