Help needed -atom-top-advisory

Finally got a few days in which to work on updating my site from the old RSS to the new Atom system for warning and advisories. And I’ve reached a brick wall. I think I’ve upgraded and changes all the routines needed – atom-advisory.php, atom-top-warning.php, wxadvisory.php. and wxindex.php. I’ve created new atom-advisory.txt, atom-advisory-AZZ028.txt, both with 777 permissions. I’ve also uploaded the new advforecast2.php file.

When I load the main page, I still get the NOAA error message, along with some unknown characters in the box. (I didn’t get these extra chars in the RSS top waring fails)

If I load each page - atom-advisory, atom-top-warning, I get what I expect, the report that there are no advisories for AZZ028.

I’m missing something somewhere (obviously!!), but after several hours of looking, taking a break and looking again, I can’t find it. And, to be honset, my coding skill have slipped back to only a bit above zero.

Will someone please take a look and point me in the right direction.

site is test.azkiwis.net

Thanks so much!
Ken

Possibly some added code was put in place.
What editor do you use?

Have made a little progress… renaming wxindex.php to index.php helped a lot… dumb, oversight, to deep in the forest to see the trees…

So my remaining problem are the strange characters generated in ajax-dashboard.php. Right at the top.

See red below



They are gen’d by ajax-dashboard.php. They do not appear in my old -pre-change - programs, but they do appear after I’ve made the changes for atom etc…

test.azkiwis.net/ajax-dashboard.php

Any pointers?

Thanks

Ken

Hi Curly, no, use the standard notepad to edit.

I’m now looking line-by-line in ajax-dashboard.php … just in case…

Thanks for the reply and pointer, appreciate it.

Ken

There are several topics about those characters…
Do a search for 

Thanks Curly,
I did dig around, very interesting reading.

I’ve been ‘swapping’ new stuff out, old stuff back in in a sequenced manner, and found the issue of those wierd characters to be related to the new version of advforecast2.php. Not sure yet, if it’s something I did, something I didn’t or ???

so, onto chapter 2…

Ken

If you edit it in Notepad, and do File, Save As, there should be an “Encoding” selection box at the bottom of the save window, what option are you using?

Niko, checked it out with save as… Shows ansi, which is the same as all (i hope) the others, both old and new… At least so far as I’m going thru a ‘save as’ check routine, as you mentioned.

Thanks for the help,

Ken

Ken, did you see this thread? weather.gov changes alerts feeds URL

Your advisories point to the old NWS CAP url from what I see

Your site:
http://www.weather.gov/cap/wwaatmget.php?x=AZZ028 :frowning:

New URL:
NWS Alerts :slight_smile:

Tony,

good catch – thank you! Will go through pgms search and change as needed…

It’s kinda nice to have a bit of time to devote to weather, this past year has been v. occupied and busy…

(still running 10.37P B41, and that’s next on the list)

Ken

solved my issue with the funny characters, don’t know which one it was, but all new routines, plus the old routines which interfaced, were opened, saved-as, with ANSI for the format option

Now a happy little camper until I go for the WD update to 10.37Q-B41…

Thanks all for support, and help

Ken