WXforum.net

Web Weather => Weather Website PHP/AJAX scripting => Topic started by: miraculon on April 28, 2022, 04:31:06 PM

Title: Current data is a day old, but clientraw.txt is up to date - plus other quirks.
Post by: miraculon on April 28, 2022, 04:31:06 PM
It appears that the internal receiver in my MB Pro failed. I finally have it running using one of my WLIP consoles for a data source.

The problem is that the current data in the header areas show it stuck at 04/27/2022 at 0830.

The clientraw parser shows it as current.

The Davis console emulators at https://www.rogerscityweather.com/davconvp2CW.php (https://www.rogerscityweather.com/davconvp2CW.php) and https://www.rogerscityweather.com/davconvueCW.php (https://www.rogerscityweather.com/davconvueCW.php) show current data.

The Almanac (https://www.rogerscityweather.com/wxtrends.php) trends other the current data look OK. "5 minutes ago", etc show good data.

The other strange thing that I notice is that the actual current temperature (42°F) shows for about a second before reverting to the old data.

Is something overwriting this? Is it a cache problem? I have searched the forum and I checked similar "usual suspects", but I haven't come across anything that helped.

Ken, et al, any ideas on this?

I have the MB Pro running as a basket case on the table outside of the case, so I might put it back together later.

Thanks,

Greg H.

Title: Re: Current data is a day old, but clientraw.txt is up to date - plus other quirks.
Post by: saratogaWX on April 28, 2022, 05:10:35 PM
Your MBrealtime.txt data file was last updated yesterday 27/04/2022 08:30:00 .. It appears that Meteobridge is not successfully executing the HTTP GET for conds.php with new conditions.

You talked about the clientraw parser .. that's only for Weather-Display.  Your current site is set to use Meteobridge for data.
Your status page at https://www.rogerscityweather.com/wxstatus.php shows that the Meteobridge realtime is indeed stale.  The Almanac entries all come from MBtags.php, which appear to be current .. it's only when the ajaxMBwx.js AJAX script cuts in that the old data replaces the 'Current' line in Almanac (and displays on the Gizmo and home page dashboard).

I'd have Meteobridge reload the template for the  HTTP realtime and see if that makes it current.
Title: Re: Current data is a day old, but clientraw.txt is up to date - plus other quirks.
Post by: miraculon on April 28, 2022, 06:25:19 PM
Thanks Ken. I'll try that in the morning tomorrow.

Greg H.
Title: Re: Current data is a day old, but clientraw.txt is up to date - plus other quirks.
Post by: miraculon on April 29, 2022, 08:34:35 AM
I tried setting the HTTP upload of the conds.php with the template string.

I am getting a 404 error (not found), but the error string seems to have current valid data:

Code: [Select]
2022-04-29 08:26:14 Error: 2022-04-29 08:26:12 http://www.sunrisesideweather.com/conds.php?d=29/04/2022,08:26:12,4.8,43,-6.7,0.9,0.4,215.0,0.0,0.0,1027.4,215.0,1,m/s,C,hPa,mm,--,1027.6,0.0,0.0,0.0,-3.1,29.0,4.8,-1.9,4.8,20220429082524,-2.8,20220429070309,2.7,20220429002518,4.5,20220429002139,1027.7,20220429075823,1026.2,20220429013916,5.4,14737,1.8,--,--,0.8,--,329.0,169.0,0.0,--,D,--,169.0,--,m,--,14:13,--,--,0.8: 2022-04-29 08:26:14 ERROR 404: Not Found. (no more tries)
I have my weather data normally uploaded into a /weatherdata file on the server. I wonder if it is looking for these files there. I am going to investigate that.

(optional) Configure Meteobridge Push Services HTTP to create the MBrealtime.txt AJAX data file and MBrealtimegauges.txt Steel Series Gauges JSON data file.

From your https://saratoga-weather.org/wxtemplates/setup-Meteobridge.php (https://saratoga-weather.org/wxtemplates/setup-Meteobridge.php) page. I did not have this setting prior to all the problems I had yesterday and the current data was there.... strange :-k

Greg H.
Title: Re: Current data is a day old, but clientraw.txt is up to date - plus other quirks.
Post by: miraculon on April 29, 2022, 09:24:25 AM
Found it!

I put in "sunrisesidweather.com" instead of "rogerscityweather.com" in that conds.php string. Not sure how I missed that, but "sunrisesideweather.com" is just a redirect.

Its working OK now.

Kind of a "duh" moment, but I am glad that I found it.

Greg H.