Page 1 of 1

SPC block issue

Posted: Tue Feb 20, 2018 3:04 pm
by stefanbagnato
Is anybody having issues with the SPC block? Data has not been populating for several days now.

Re: SPC block issue

Posted: Tue Feb 20, 2018 9:29 pm
by dmgould
It happens often on my pages. The problem is with the data source not the template.

Re: SPC block issue

Posted: Wed Feb 21, 2018 5:12 am
by Dehatter
dmgould wrote: Tue Feb 20, 2018 9:29 pmmy pages
Hey DMGOULD.

I visited your site and was quite impressed with your page loading. I realized that my decision to not use menuBlocks was costing me a lot of load time and took a hint from you about combining blocks. Half the blocks displayed and my page loads 3 times faster.

Just wanted to give you a shout out.

Tom

Re: SPC block issue

Posted: Wed Feb 21, 2018 7:34 am
by Jachym
Yes I can confirm this, it works "sometimes", but it is because very often the server is overloaded and returns no images

Re: SPC block issue

Posted: Wed Feb 21, 2018 3:25 pm
by stefanbagnato
I know it is the source. Didn't want to make it seem like it was MT. Just wanted to make sure I wasn't the only one dealing with it.

Re: SPC block issue

Posted: Sat Mar 03, 2018 6:43 pm
by dmgould
It looks to me like it has something to do with .$mainImgHour."_prt in the code. I'm having trouble following through the logic getting to that part of the URL. Maybe in the cache code? When I just enter the day, 1, 2, or 3 in the URL in my browser plus the parameter the map pops right up no problem. Yet inside the block I show a broken image much of the time. For example:

http://www.spc.noaa.gov/products/outlook/day1otlk.gif
http://www.spc.noaa.gov/products/outlook/day2otlk.gif
http://www.spc.noaa.gov/products/outlook/day3otlk.gif

http://www.spc.noaa.gov/products/outloo ... k_wind.gif

http://www.spc.noaa.gov/products/outloo ... k_torn.gif

Re: SPC block issue

Posted: Sat Mar 03, 2018 7:22 pm
by Jachym
Looks like NOAA/NWS are changing all their pages.... Im 100% sure that URL worked I would not make it up

Re: SPC block issue

Posted: Sat Mar 03, 2018 7:44 pm
by dmgould
Yes, it seems NWS has caused problems a number of places in MT. We'll all keep looking for the issues they are causing and possible solutions we might find. Thanks Jachym.

Re: SPC block issue

Posted: Sat Mar 03, 2018 9:26 pm
by Jachym
The problem is that:
1. they made no announcement of this anywhere in advance
2. they are still making changes so fixing it at this point is useless, it might break again

Re: SPC block issue

Posted: Mon Mar 19, 2018 6:20 pm
by stefanbagnato
Did they stop making the changes yet? Just wondering if anybody else is still having issues, as my blocks still do not work.

Re: SPC block issue

Posted: Mon Mar 19, 2018 7:31 pm
by dmgould
This block works sometimes, but most of the time no longer works. If you go to the NWS SPC site the maps are there and they display property. There is something in the block code that adds information to the URL that makes the image break. I haven't been able to follow exactly what that extra information does. When that info is left off of the URL in the code the map works.

http://www.spc.noaa.gov/products/outloo ... k_1630.gif

or other SPC maps are here:

http://www.spc.noaa.gov/misc/climograph ... re/079.png

http://www.spc.noaa.gov/misc/climograph ... rn/079.png

http://www.spc.noaa.gov/misc/climograph ... nd/079.png

http://www.spc.noaa.gov/misc/climograph ... il/079.png

Re: SPC block issue

Posted: Mon Mar 19, 2018 11:58 pm
by stefanbagnato
Hm, I get server not found when I try to access those URL's. In fact, when I try to access the SPC website through weather.gov, I get the same thing. Between this block and the other NWS blocks, NWS really messed up what Jachym has created.