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-07-2004, 03:01 AM -
#4
Quote:...you can try adding a "ValueType = INT" to your ini section....
Shapeshifter, you're right, I've pretty pretty much exhausted all combinations here! The trouble with using a valuetype=int is that I can't get accurate °F temperatures as they're in the format 43.2°F, so valuetype=INT only returns 43°F. I too use the valuetype = INT "trick" to return 0 for gusts in my wind skin!

Quote:Try to change find2 string:
find2 = "Dewpoint: "
Add space into string.
Yuri, I changed my code to include spaces at the end of find2 = "Dewpoint " and beginning of "delim = " &deg" to eliminate ALL spaces:

Code:
; Dewpoint
; -------------------------------------------------------------------------
[CustomParam4]
name = Dewpoint
unit = C
find0 = "<!-- CURRENT REPORT TABLE -->"
find1 = "<!--Temp-->"
find2 = "Dewpoint: "
delim = " &deg"
and I *finally* get the correct temperature returned. Shouldn't white space be ignored when parsed if the valuetype isn't STRING?

Which brings me very nicely around to the point I made in this thread. Big Grin


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)