USGS will auto-promote the client to https. The error of SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure may indicate that either Python is < 2.7.9 or urllib2 is < 2.7.
This post seems to indicate that 2.7.9 <https://stackoverflow.com/a/30925034/1177153> should resolve the SSL handshake error seen here. Others say upgrading OpenSSL to the latest will resolve it. Maybe upgrading both are the magic sauce. Another fix is to switch to Python requests, but I'm trying to keep dependencies to a minimum. On Monday, September 10, 2018 at 11:54:48 AM UTC-4, Thomas Keffer wrote: > > Try using https (instead of http) > > -tk > > On Mon, Sep 10, 2018 at 7:56 AM Pat <[email protected] <javascript:>> > wrote: > >> Hi John, I know I asked this before but don't think I saw a reply. I may >> have lost it in the shuffle. >> >> This looks like it could be due to an outdated Python module. When was >> the last time you've updated your system? >> >> What is the output when you run this command: >> >> python -c "exec(\"import urllib2\\nprint urllib2.__version__\")" >> >> >> >> >> On Monday, September 10, 2018 at 9:52:08 AM UTC-4, John Clark wrote: >>> >>> Still having "earthquake" problem. I noticed something that may make no >>> difference but not sure how I would fix it. >>> >>> I removed any "Belchertown" file/directory I could find and installed >>> 0.7 with wee install, ran a few syslog loops and came up with the following: >>> >>> Sep 10 08:05:18 OptiPlex weewx[15703]: Belchertown Extension: version >>> 0.7Sep 10 08:05:18 OptiPlex weewx[15703]: forecast: ZambrettiThread: >>> Zambretti: units=1 winddir=346.956499898 pressure=29.834265283 >>> first_p=29.810304082 last_p=29.8495650658Sep 10 08:05:18 OptiPlex >>> weewx[15703]: forecast: ZambrettiThread: Zambretti: pressure=1010.30402681 >>> month=8 winddir=15 trend=0.443176434794 north=TrueSep 10 08:05:18 OptiPlex >>> weewx[15703]: forecast: ZambrettiThread: Zambretti: code is CSep 10 >>> 08:05:18 OptiPlex weewx[15703]: forecast: ZambrettiThread: Zambretti: >>> generated 1 forecast recordSep 10 08:05:18 OptiPlex weewx[15703]: forecast: >>> ZambrettiThread: Zambretti: saving 1 forecast recordsSep 10 08:05:18 >>> OptiPlex weewx[15703]: manager: Added record 2018-09-10 08:05:00 CDT >>> (1536584700) to database 'forecast.sdb'Sep 10 08:05:18 OptiPlex >>> weewx[15703]: forecast: ZambrettiThread: Zambretti: saved 1 forecast >>> recordsSep 10 08:05:18 OptiPlex weewx[15703]: forecast: ZambrettiThread: >>> Zambretti: deleting forecasts prior to 1535979918Sep 10 08:05:18 OptiPlex >>> weewx[15703]: forecast: ZambrettiThread: Zambretti: deleted forecasts prior >>> to 1535979918Sep 10 08:05:18 OptiPlex weewx[15703]: forecast: >>> ZambrettiThread: Zambretti: terminating threadSep 10 08:05:18 OptiPlex >>> weewx[15703]: restx: CWOP: Connected to server cwop.aprs.net:14580Sep 10 >>> 08:05:19 OptiPlex weewx[15703]: restx: PWSWeather: Published record >>> 2018-09-10 08:05:00 CDT (1536584700)Sep 10 08:05:19 OptiPlex weewx[15703]: >>> restx: Wunderground-PWS: Published record 2018-09-10 08:05:00 CDT >>> (1536584700)Sep 10 08:05:19 OptiPlex weewx[15703]: Belchertown Extension: >>> New forecast file downloaded to >>> /var/www/html/weewx/json/darksky_forecast.jsonSep 10 08:05:19 OptiPlex >>> weewx[15703]: restx: WeatherCloud: Published record 2018-09-10 08:05:00 CDT >>> (1536584700)Sep 10 08:05:19 OptiPlex weewx[15703]: reportengine: Caught >>> unrecoverable exception in generator >>> weewx.cheetahgenerator.CheetahGeneratorSep 10 08:05:19 OptiPlex >>> weewx[15703]: **** Error downloading earthquake data. Check the >>> URL and try again. You are trying to use URL: >>> http://earthquake.usgs.gov/fdsnws/event/1/query?limit=1&lat=37.212907&lon=-89.529325&maxradiuskm=1000&format=geojson&nodata=204&minmag=2, >>> and the error is: <urlopen error [Errno 1] _ssl.c:510: error:14077410:SSL >>> routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure>Sep 10 >>> 08:05:19 OptiPlex weewx[15703]: **** Traceback (most recent call >>> last):Sep 10 08:05:19 OptiPlex weewx[15703]: **** File >>> "/usr/share/weewx/weewx/reportengine.py", line 239, in runSep 10 08:05:19 >>> OptiPlex weewx[15703]: **** obj.start()Sep 10 08:05:19 >>> OptiPlex weewx[15703]: **** File >>> "/usr/share/weewx/weewx/reportengine.py", line 273, in startSep 10 08:05:19 >>> OptiPlex weewx[15703]: **** self.run()Sep 10 08:05:19 OptiPlex >>> weewx[15703]: **** File >>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in runSep 10 >>> 08:05:19 OptiPlex weewx[15703]: **** ngen = >>> self.generate(gen_dict[section_name], self.gen_ts)Sep 10 08:05:19 OptiPlex >>> weewx[15703]: **** File >>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generateSep 10 >>> 08:05:19 OptiPlex weewx[15703]: **** ngen += >>> self.generate(section[subsection], gen_ts)Sep 10 08:05:19 OptiPlex >>> weewx[15703]: **** File >>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generateSep 10 >>> 08:05:19 OptiPlex weewx[15703]: **** ngen += >>> self.generate(section[subsection], gen_ts)Sep 10 08:05:19 OptiPlex >>> weewx[15703]: **** File >>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 320, in generateSep 10 >>> 08:05:19 OptiPlex weewx[15703]: **** default_binding)Sep 10 >>> 08:05:19 OptiPlex weewx[15703]: **** File >>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 372, in >>> _getSearchListSep 10 08:05:19 OptiPlex weewx[15703]: **** >>> searchList += obj.get_extension_list(timespan, db_lookup)Sep 10 08:05:19 >>> OptiPlex weewx[15703]: **** File >>> "/usr/share/weewx/user/belchertown.py", line 466, in get_extension_listSep >>> 10 08:05:19 OptiPlex weewx[15703]: **** raise ValueError( >>> "Error downloading earthquake data. Check the URL and try again. You are >>> trying to use URL: %s, and the error is: %s" % ( earthquake_url, error ) >>> )Sep 10 08:05:19 OptiPlex weewx[15703]: **** ValueError: Error >>> downloading earthquake data. Check the URL and try again. You are trying to >>> use *URL: >>> http://earthquake.usgs.gov/fdsnws/event/1/query?limit=1&lat=37.212907&lon=-89.529325&maxradiuskm=1000&format=geojson&nodata=204&minmag=2 >>> >>> <http://earthquake.usgs.gov/fdsnws/event/1/query?limit=1&lat=37.212907&lon=-89.529325&maxradiuskm=1000&format=geojson&nodata=204&minmag=2>*, >>> and the error is: <urlopen error [Errno 1] _ssl.c:510: error:14077410:SSL >>> routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure>Sep 10 >>> 08:05:19 OptiPlex weewx[15703]: **** Generator terminatedSep 10 >>> 08:05:19 OptiPlex weewx[15703]: copygenerator: copied 22 files to >>> /var/www/html/weewxSep 10 08:05:19 OptiPlex weewx[15703]: reportengine: >>> Running report forecastSep 10 08:05:19 OptiPlex weewx[15703]: reportengine: >>> Found configuration file /etc/weewx/skins/forecast/skin.conf for report >>> forecastSep 10 08:05:19 OptiPlex weewx[15703]: cheetahgenerator: using >>> search list ['weewx.cheetahgenerator.Almanac', >>> 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', >>> 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', >>> 'weewx.cheetahgenerator.Extras', 'user.forecast.ForecastVariables']Sep 10 >>> 08:05:19 OptiPlex weewx[15703]: manager: Daily summary version is 2.0Sep 10 >>> 08:05:20 OptiPlex weewx[15703]: cheetahgenerator: Generated 12 files for >>> report forecast in 0.47 secondsSep 10 08:05:20 OptiPlex weewx[15703]: >>> copygenerator: copied 87 files to /var/www/html/weewx/forecastSep 10 >>> 08:05:20 OptiPlex weewx[15703]: reportengine: Running report >>> Highcharts_BelchertownSep 10 08:05:20 OptiPlex weewx[15703]: reportengine: >>> Found configuration file /etc/weewx/skins/Highcharts_Belchertown/skin.conf >>> for report Highcharts_BelchertownSep 10 08:05:20 OptiPlex weewx[15703]: >>> cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', >>> 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', >>> 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', >>> 'weewx.cheetahgenerator.Extras', >>> 'user.belchertown_highchartsSearchX.highchartsDay', >>> 'user.belchertown_highchartsSearchX.highchartsWeek', >>> 'user.belchertown_highchartsSearchX.highchartsMonth', >>> >>> The text in red is what I noticed. If I copy and paste the URL, the >>> website changes it to *https://(etc) <https://(etc)> *and I can read >>> the info without a fuss. If this is the problem, is there something I can >>> do on my end to fix it, and where? Also, as before, as long as earthquakes >>> are activated, no information is updated either locally or remotely (ftp, >>> CWOP, etc) but when I change it back to "0" all seems to work fine. >>> -- >>> *John Clark* >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "weewx-user" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
