Weather Software > Weather Display
NWS Alerts NOT Updating Correctly Need Assistance
(1/1)
gateway2capecod:
hello.....
I am trying to help Jerry from Victoria Texas get his NWS Alerts working correctly and although at present time it shows 3 watches/warning/advisories on his home page as it should when things are working correctly...when you go to the wxadvisory page here..... http://www.victoriatexasweather.net/wxadvisory.php .....it is stuck at Last updated at 7:04am CST...So somethng is preventing the page/script from getting updated every 10 minutes.
My question is does anyone know what the problem may be?
Just a little more info....his site has worked for many years and the only new changes I did for him was to update all his saratoga template files base usa files... with the newest versions and since I did this we are having hard time getting the NWS alerts to update at regular interval.
Thank you...Chris
Jasiu:
sce=view isn't working properly...
--- Code: ---Warning: Cannot modify header information - headers already sent by (output started at /customers/f/6/f/victoriatexasweather.net/httpd.www/top.php:57) in /customers/f/6/f/victoriatexasweather.net/httpd.www/testtags.php on line 14
--- End code ---
... so it's hard to look at the code to figure out what's going (or not going) on.
saratogaWX:
It looks like the header.php is missing the following
--- Code: ---//Version 1.01 - 28-Jul-2012 - integrated support for nws-alerts scripts
require_once("Settings.php");
require_once("common.php");
// add support for noCron=true fetch of nws-alerts to get current alerts
if(isset($SITE['NWSalertsCodes']) and count($SITE['NWSalertsCodes']) > 0) {
include_once("nws-alerts-config.php"); // load the configuration for nws-alerts
if(isset($noCron) and $noCron) {
print "<!-- nws-alerts noCron=true .. running nws-alerts.php inline -->\n";
include_once("nws-alerts.php");
}
}
############################################################################
if (isset($SITE['uomTemp']) ) {
--- End code ---
which is used to invoke the nws-alerts.php for updates when noCron=true
gateway2capecod:
Hello again.....
well when I updated jerry's file's recently to the newest versions, I purposely omitted the header.php file because for one I didnt think it would effect anything and for 2...I originally edited his header with the code to display his customized banner in main head section, and time of day greeting on subheader.
so now that I did as Ken mentioned and added the newest header with the included code above needed for when no cron, everything is working Wonderful again for the NWS Alerts.
Thank you for the Help...Much Apprectted....Chris
Navigation
[0] Message Index
Go to full version