I have an older version of Weewx and as such, older versions of the plugins. This post references the forecast.inc plugin version 3.2.14 but it might be helpful for later versions also.
My forecast.py plugin stopped working and my syslog showed this
This is what fixed it.
I went to the forecast.py source in
/usr/share/weewx/user
added
import ssl
in the import section of the code and then added this in the
def NWSDownloadForecast(foid, url=NWS_DEFAULT_PFM_URL, max_tries=3):
function
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
response = urllib2.urlopen(u, context=ctx)
"""below is the original now commented out source line"""
"""response = urllib2.urlopen(u)"""
Now my forecast is working perfectly fine.
Bob