why no yesterday rain in clientraw.txt?
Posted: Sun Sep 25, 2011 6:57 pm
I am using the Meteohub Sheevaplug (4.8b latest build) and am experiencing a problem with the rain amounts on my website (http://heightsweather.info) using the Saratoga template not updating, correctly, the rain totals for yesterday.
I wrote Mr. Ken True - who is always extremely helpful - and this is his reply:
"It is a problem with Meteohub .. it is not generating a yesterday rain number in the clientraw.txt (realtime) record uploaded to the site.
Here's the contents of the fields with rain in clientraw.txt:
007 Daily Rain M 0.00 mm = 0 in
008 Monthly Rain M 185.70 mm = 7.31 in
009 Yearly Rain M 593.10 mm = 23.35 in
010 Rain Rate M 0.00 mm = 0 in
011 Max Rain Rate M 0.00 mm = 0 in
019 Yesterday Rain M 0.00 mm = 0 in
Why the yesterday rain shows when the page first loads, then disappears is due to the AJAX update.
When the page first loads, the PHP uses MHtags.php values to fill in the page. When the AJAX script begins running in your browser, the values from clientraw.txt are used to replace corresponding values on the PHP-generated page. Since the field 19 (Yesterday rain) has zero in it in clientraw.txt, that's the value that shows when the AJAX routine starts.
I suggest you post that question (why no yesterday rain in
clientraw.txt) on the Meteohub forum and let Boris address the fix.
Best regards,
Ken"
Mr. Pasternak - or anyone - would you know of a fix for this situation.
I am so very sorry to bother you.
Sincerely,
Bob Ingoglia
I wrote Mr. Ken True - who is always extremely helpful - and this is his reply:
"It is a problem with Meteohub .. it is not generating a yesterday rain number in the clientraw.txt (realtime) record uploaded to the site.
Here's the contents of the fields with rain in clientraw.txt:
007 Daily Rain M 0.00 mm = 0 in
008 Monthly Rain M 185.70 mm = 7.31 in
009 Yearly Rain M 593.10 mm = 23.35 in
010 Rain Rate M 0.00 mm = 0 in
011 Max Rain Rate M 0.00 mm = 0 in
019 Yesterday Rain M 0.00 mm = 0 in
Why the yesterday rain shows when the page first loads, then disappears is due to the AJAX update.
When the page first loads, the PHP uses MHtags.php values to fill in the page. When the AJAX script begins running in your browser, the values from clientraw.txt are used to replace corresponding values on the PHP-generated page. Since the field 19 (Yesterday rain) has zero in it in clientraw.txt, that's the value that shows when the AJAX routine starts.
I suggest you post that question (why no yesterday rain in
clientraw.txt) on the Meteohub forum and let Boris address the fix.
Best regards,
Ken"
Mr. Pasternak - or anyone - would you know of a fix for this situation.
I am so very sorry to bother you.
Sincerely,
Bob Ingoglia