Weather by You!
Templates and Projects support => Php templates => Topic started by: JohntheR-T on September 10, 2014, 10:13:28 AM
-
Following the failure of my PC hdd and backup hdd I'm having a problem with the gauges page at http://john-the-r-t.vacau.com/weather/ssUV_gauges.php
It is still ahowing details from February when the drives failed. Rest of the pages update correctly.
I would also like to correct the spelling of Febuary at http://john-the-r-t.vacau.com/weather/multirecords.php
-
Hi John,
Problem is with the gauges data file realtimegauges.txt, it is 216 days old.
Verify that is it processed and sent by Cumulus.
Regards,
Jacques
-
Thanks Jacques.
I've downloaded and unzipped a fresh copy of Weather Sunset.
Deleted realtimegauges.txt and realtimegaugesT.txt from Cumulus web folder.
Copied realtimegauges.txt and realtimegaugesT.txt from the newly downloaded file to the web folder.
I'm now getting "HTTP request failed - Trying again in...."
I can't see any reference to realtimegauges in the Cumulus ftp log.
I've tried both of the options in the attached file.
-
Hi John,
You pointed to local filename as realtimegauges.txt
instead of realtimegaugesT.txt and check timestamp
changing in your website.
Regards,
Jacques
-
Ta. Changed to realtimegaugesT.txt. File is updating on the server but still getting the same error.
Regards
-
Hi John,
On your site, check the timestamp on the file wt_data_inc.php
it is supposed to be in your ...weather folder as other pages.
Regards,
Jacques
-
Hi,
Confirmed.
The reason ss_gauges.php is showing is that I went back to the original page. I had the same problem so I've gone back to ssUV_gauges.php in order to show the UV details.
-
Hi John,
Check (processed) file content of realtimegauges.txt on your website
it should be something like that:
"date":"18:32","temp":"13,5","tempTL":"9,6","tempTH":"17,4","intemp":"29,3","dew":"10,9","dewpointTL":"8,2",
...
...
"SolarRad":"0","CurrentSolarMax":"0","domwinddir":"NNE","version":"1.9.3","build":"1051","ver":"8"}Note also "ver":"8"} at end to be sure no mix occured
Regards,
Jacques
-
Hi again,
Looks Ok to me. In fact a little more up to date.
Full details:-
{"date":"16:29","temp":"67.6","tempTL":"50.9","tempTH":"73.9","intemp":"74.3","dew":"55.5","dewpointTL":"48.1","dewpointTH":"60.5","apptemp":"67.2","apptempTL":"50.0","apptempTH":"75.5","wchill":"67.6","wchillTL":"50.9","heatindex":"67.6","heatindexTH":"73.9","humidex":"72.6","wlatest":"3.4","wspeed":"3.7","wgust":"6.0","wgustTM":"11.0","bearing":"22","avgbearing":"19","press":"1009.0","pressTL":"1009.0","pressTH":"1015.0","pressL":"965.0","pressH":"1024.0","rfall":"0.0","rrate":"0.0","rrateTM":"0.0","hum":"65","humTL":"61","humTH":"100","inhum":"53","SensorContactLost":"0","forecast":"Fine weather","tempunit":"F","windunit":"mph","pressunit":"mb","rainunit":"mm","temptrend":"-1.4","TtempTL":"01:52","TtempTH":"14:35","TdewpointTL":"01:52","TdewpointTH":"14:35","TapptempTL":"02:03","TapptempTH":"14:35","TwchillTL":"01:52","TheatindexTH":"14:35","TrrateTM":"00:00","ThourlyrainTH":"00:00","LastRainTipISO":"2014-08-31 07:48","hourlyrainTH":"0.0","ThumTL":"14:37","ThumTH":"06:55","TpressTL":"16:29","TpressTH":"00:00","presstrendval":"-0.3","Tbeaufort":"F2","TwgustTM":"10:33","windTM":"5.4","bearingTM":"338","timeUTC":"2014,9,14,15,29,41","BearingRangeFrom10":"240","BearingRangeTo10":"070","UV":"0","SolarRad":"0","CurrentSolarMax":"326","domwinddir":"N","version":"1.9.4","build":"1088","ver":"8"}
-
Time to move to a new host. I've been getting HTTP REQUEST FAILED on the gauges page.
Reply from my host:
"If any IP access your site too often that IP will be banned or blocked for 24 hours.
Stop access your site then your IP will be unbanned automatically.
Total connection for one day is 2000 times in 24 hours. Each click might generate several connections depends on how your site is coded.
If you have 80 HTTP request per hit then you will hit 2000 connections limit in 25 hits on your site per IP."
So, the problem is setting realtime updates to 30 second.
Fortunately I have space elsewhere.