<p>Sorry... the WU data for this date is not currently available. Please try again later.</p>[/quote]
It's odd that a 200-OK reply would result in no JSON content. Your
https://www.wunderground.com/dashboard/pws/KARHOTSP16 PWS page shows data. Digging deeper, and running a view-source for WXDailyHistory.php with &debug=y shows
<!-- curl fetching 'https://api.weather.com/v2/pws/history/all?stationId=KARHOTSP16&format=json&units=e&date=20190526&apiKey=**redacted**' -->
<!-- HTTP stats: RC=401 dest=23.63.48.252 port=443 (from sce=50.62.176.52)
Times: dns=0.004 conn=0.014 pxfer=0.047 get=0.046 total=0.093 secs -->
<!-- headers returned:
HTTP/2 401
mime-version: 1.0
content-type: text/html
content-length: 299
expires: Sun, 26 May 2019 22:18:52 GMT
date: Sun, 26 May 2019 22:18:52 GMT
-->
a 401 response. The API is returning content of
Access Denied
You don't have permission to access "http://api.weather.com/v2/pws/history/all?" on this server.
Reference #18.5cef6368.1558909171.1226b63
So I suspect your WU/TWC API Key is in error.. Please double check (by wunderground, Profile, API KEY, show and copy that key to use.
[/quote]
I double checked my key and it is correct, however there may be a problem with the way I placed it in the WXDailyHistory script.
It's there twice, I didn't know what to put in the " 2nd line - print "replacing. I only have the one key, nothing to replace.
if(preg_match('|specify|i',$WCAPIkey)) {
print "<p>Note: the WXDailyHistory script requires an API key from WeatherUnderground to operate.<br/>";
print "Visit <a href=\"
https://www.wunderground.com/member/api-keys\">Weather Underground</a> to ";
print "register for an API key. You must have a PWS submitting data to WU to acquire an API key.</p>\n";
if( isset($SITE['fcsturlWC']) ) {
print "<p>Insert in Settings.php an entry for:<br/><br/>\n";
print "\$SITE['WCAPIkey'] = '<i>**key inserted here**</i>';<br/><br/>\n";
print "replacing <i>**and also here**</i> with your WU/TWC API key.</p>\n";
}
return;
Thanks,
Ralph