Page 1 of 1
Unable to pull data from NWS sites via https
Posted: Wed Apr 04, 2018 5:19 pm
by stefanbagnato
All, after Jachym's updates to the various NWS related blocks, they will will not work for me. Jachym has looked at my site and determined that there is nothing wrong with it from his end, as I knew there would not be. I have tried manually reinstalling the blocks to no avail. I can access all of the NWS and NOAA sites without issue.
I run my own IIS server at home. Nothing is external besides my domain name. For anybody with any of the NWS blocks (forecast, forecast discussion, SPC, ect.), if you are running your own server (whether IIS, Apache, or anything else) and these blocks work for you, could you please let me know and maybe we can discuss what differs between our settings and setups? I certainly don't want to simply no longer use these blocks. It must be something related to my server, but I also understand that the vast majority of people do not run their own physical server, thus may be unaware of how to help.
Re: Unable to pull data from NWS sites via https
Posted: Thu Apr 05, 2018 5:56 pm
by Fraggboy
I run the NWS forecast block on my page and my website is using https. It's working fine. My website is running on my Synology NAS, running Apache 2.4. My link might not work for some Countries. I was getting multiple 'hits'/probes by some, so I decided to block them.
What doesn't 'work'? Doesn't load? incorrect data? Errors? Need more information from your end. URL would be nice with the block installed.
Re: Unable to pull data from NWS sites via https
Posted: Fri Apr 06, 2018 3:00 pm
by stefanbagnato
URL is southwakeweather.com
Take a look in the columns on the page.
The SPC (left column) is just blank besides the option to select which day you want to view.
The forecast discussion (middle) just shows "Area Forecast Discussion N/A"
And the NWS forecast (right column) shows "NWS Forecast currently not available"
Without too much background knowledge, I am guessing that I may need to do something with the server certificates in IIS, or the lack thereof.
I am just hoping to find some common ground on what is missing, and then I can set out on fixing whatever I need, since it is certainly an issue on my server, and not MT or NWS
Re: Unable to pull data from NWS sites via https
Posted: Sat Apr 07, 2018 4:11 am
by josef81
I don't think its a matter of certificates. Your page is loading correctly, but its just loading the incorrect url for NWS images.
For example, the SPC image that you are loading is:
"
https://www.spc.noaa.gov/products/outlo ... 1523072283"
The "valid hour" should be in between the two underscores in that URL, which is pulled from the cache file(s) in the usSPC block's folder.
Can you check if the cache files are being created / updating. I just looked at your site, and it looks like the the files aren't being created / updated.
You should have a file here:
http://southwakeweather.com/template/ho ... Cache1.txt
I wonder if it isn't a permissions problem that occurred when you updated the block.
Re: Unable to pull data from NWS sites via https
Posted: Sat Apr 07, 2018 2:56 pm
by stefanbagnato
The SPC and NWS blocks have cache folders that are empty, and the AFD block does not even have a cache folder. So, no files being created..
Re: Unable to pull data from NWS sites via https
Posted: Sat Apr 07, 2018 9:09 pm
by Jachym
There is one other user with the same issue, I think it is a problem with communication with the new https protocol. It is hard to tell if the communication is blocked on your end or NWS end, but the script tries both the methods available in PHP for retrieving data (file_get_contents + cURL), so Im afraid I cant think of any other solution
Re: Unable to pull data from NWS sites via https
Posted: Sun Apr 08, 2018 11:46 pm
by stefanbagnato
Jachym, any idea if the other user has a similar setup to me? (at minimum, a personally hosted server)
Re: Unable to pull data from NWS sites via https
Posted: Mon Apr 09, 2018 7:39 pm
by Jachym
I cant remember who it was... I think it could have something to do with your provider
Re: Unable to pull data from NWS sites via https
Posted: Mon Apr 09, 2018 9:17 pm
by stefanbagnato
ISP? Guess that is possible. I have AT&T fiber. It's either that or Time Warner Cable around here. I would love to point the finger at them if I had some way to prove it

Re: Unable to pull data from NWS sites via https
Posted: Thu Apr 12, 2018 3:17 am
by josef81
Have you confirmed the permissions are set correctly for that folder? Right now the script isn't able to create the folder or the cache files on your server. You need to get that corrected first or your server wont be able to save the files to parse them.
Re: Unable to pull data from NWS sites via https
Posted: Thu Apr 12, 2018 11:11 pm
by stefanbagnato
Yes. The permissions are the same as always. No changes
Re: Unable to pull data from NWS sites via https
Posted: Thu Apr 12, 2018 11:26 pm
by stefanbagnato
I was just able to get the usSPC block to work. I reinstalled it (yet again), but this time directly from the Admin->blocks page. I tried doing the same thing with the AFD and NWS blocks, but they did not work. I also reinstalled the uvForecast block (did not fix it), because for some reason it always states that the current uv is 0, but shows the forecast correctly...
Re: Unable to pull data from NWS sites via https
Posted: Thu Apr 12, 2018 11:43 pm
by stefanbagnato
And another update...so I was able to find an old nwsforecastcache.txt file (don't ask why I had the copy...). I put it in the cache folder, refreshed the site, and it disappeared. This makes sense since the file was more than 60 minutes (about 18 months..) old. So, I opened it in notepad and then saved it. Refresh the site and the really old forecast shows up. So this has to confirm the idea that my site is not able to pull the NWS and AFD data.
What I do not understand though is why, and why does the SPC data get pulled fine?