Author Topic: NWS Alerts NOT Updating Correctly Need Assistance  (Read 530 times)

0 Members and 1 Guest are viewing this topic.

Offline gateway2capecod

  • Senior Member
  • **
  • Posts: 70
    • West Wareham, Ma Weather
NWS Alerts NOT Updating Correctly Need Assistance
« on: September 15, 2018, 08:59:35 AM »
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

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 336
    • LexMAWeather
Re: NWS Alerts NOT Updating Correctly Need Assistance
« Reply #1 on: September 15, 2018, 12:16:00 PM »
sce=view isn't working properly...

Code: [Select]
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
... so it's hard to look at the code to figure out what's going (or not going) on.

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6878
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: NWS Alerts NOT Updating Correctly Need Assistance
« Reply #2 on: September 15, 2018, 12:39:20 PM »
It looks like the header.php is missing the following
Code: [Select]
//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']) ) {
which is used to invoke the nws-alerts.php for updates when noCron=true
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline gateway2capecod

  • Senior Member
  • **
  • Posts: 70
    • West Wareham, Ma Weather
Re: NWS Alerts NOT Updating Correctly Need Assistance
« Reply #3 on: September 15, 2018, 06:46:25 PM »
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

 

anything