Weather Monitor parsing bug
Started by HorusUK


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


7 posts in this topic
HorusUK
Senior Member
****


0
458 posts 40 threads Joined: Dec 2003
03-06-2004, 09:40 AM -
#1
In the following code fragment from a provider file I'm writing, I've found a potential problem with fetching temperatures.

Code:
; Dewpoint
; -------------------------------------------------------------------------
[CustomParam4]
name = Dewpoint
unit = C
find0 = "<!-- CURRENT REPORT TABLE -->"
find1 = "<!--Temp-->"
find2 = "Dewpoint:"
delim = "<"

Here's the HTML I'm parsing:
Code:
Dewpoint: 3 &deg;C<br />

Parsing this returns 0°C, but if I remove the Unit = C line from the provider file, I get 3 returned.

I've tried a delim = "&deg" just in case that was the cause, but I still get 0°C!


Messages In This Thread
[No subject] - by HorusUK - 03-06-2004, 09:40 AM
[No subject] - by Yuri Kobets - 03-06-2004, 12:46 PM
[No subject] - by shapeshifter - 03-06-2004, 06:14 PM
[No subject] - by HorusUK - 03-07-2004, 03:01 AM
[No subject] - by shapeshifter - 03-07-2004, 03:34 PM
[No subject] - by HorusUK - 03-07-2004, 03:55 PM
[No subject] - by HorusUK - 03-26-2004, 09:32 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)