It looks like the SSL/TLS certificate for `rtupdate.wunderground.com` is incorrect or the API has been compromised in some way. Accessing `https://rtupdate.wunderground.com` in a browser such as Chrome yields a security warning: NET::ERR_CERT_COMMON_NAME_INVALID and the `weewx` software used to upload data to wunderground reports `hostname 'rtupdate.wunderground.com' doesn't match either of '*.
prod-pws-ng-546567-997b58a668d15d562a6bed58ea7c5f9e-0000.us-south.containers.appdomain.cloud', 'prod-pws-ng-546567-997b58a668d15d562a6bed58ea7c5f9e-0000.u
s-south.containers.appdomain.cloud', 'prod-pws-ng-546567.us-south.containers.appdomain.cloud'` - maybe the DNS was switched to a new API endpoint but the SSL/TLS certificate that matches the DNS name wasn't configured correctly?
This is blocking all weather station updates to `rtupdate.wunderground.com` that are using secure transport (which should be required because security credentials are passed in the requests).
curl: (60) SSL certificate problem: unable to get local issuer certificate
Jan 31 10:18:28 raspberrypi weewx[9240]: restx: Wunderground-RF: Failed to publish record 2020-01-31 10:18:22 CST (1580487502): Failed upload after 1 tries
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/730af4c4-6fea-446f-ac0a-3ef112d65739%40googlegroups.com.
Jan 31 10:20:44 raspberrypi weewx[9240]: restx: Wunderground-RF: Thread exiting. Reason: hostname 'rtupdate.wunderground.com' doesn't match either of '*.prod-pws-ng-546567-997b58a668d15d562a6bed58ea7c5f9e-0000.us-south.containers.appdomain.cloud', 'prod-pws-ng-546567-997b58a668d15d562a6bed58ea7c5f9e-0000.us-south.containers.appdomain.cloud', 'prod-pws-ng-546567.us-south.containers.appdomain.cloud'
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/6f2decf9-4c1a-48f6-8a88-6eac8f15c62e%40googlegroups.com.
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/42a3d359-85a4-4f52-9e57-c66da178ee9e%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/mYhw6CSKHHg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAFbExW5sQSEDwyWHpgnx5WEwzg3K0FaJ6BAJeSnnmittUyEwYg%40mail.gmail.com.
In the weewx /usr/share/weewx/weewx/restx.py file if you change from "https" to "http" it will resolve the weatherunderground issue:
"https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php" to
"http://weatherstation.wunderground.com/weatherstation/updateweatherstation.php"
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/mYhw6CSKHHg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/f5e5741a-e5f8-419b-9c0d-df1972fe5ced%40googlegroups.com.
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAF_%2Bh57S88%3DZOX1mXK8oZBx-_KEHvDPFP%3Dvtd4u3_1qg7994yg%40mail.gmail.com.
Looking like it's working to me, too.Brice Ruth, FCD
Software Engineer, Madison WI
On Fri, Jan 31, 2020 at 1:31 PM Travis Bully <tbu...@gmail.com> wrote:
Agreed. Seems like I still get one cert error every now and then. Likely still propagating changes through their infrastructure?Jan 31 14:29:25 homeauto03 weewx[3784]: restx: Wunderground-RF: Published record 2020-01-31 14:29:24 EST (1580498964)
Jan 31 14:29:26 homeauto03 weewx[3784]: restx: Wunderground-RF: Failed upload attempt 1: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)>
Jan 31 14:29:31 homeauto03 weewx[3784]: restx: Wunderground-RF: Failed to publish record 2020-01-31 14:29:26 EST (1580498966): Failed upload after 1 tries
Jan 31 14:29:31 homeauto03 weewx[3784]: restx: Wunderground-RF: Published record 2020-01-31 14:29:30 EST (1580498970)
On Fri, Jan 31, 2020 at 2:30 PM Denny Page <splo...@gmail.com> wrote:
It's fixed now.--
On Friday, January 31, 2020 at 8:54:02 AM UTC-8, Denny Page wrote:Wunderground just posted a note about the intermediate certificate issue. Hopefully they will fix it shortly.
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/mYhw6CSKHHg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/f5e5741a-e5f8-419b-9c0d-df1972fe5ced%40googlegroups.com.
--
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 weewx...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/eaa42f60-98fc-4974-8d25-915a4c7e0d80%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/eaa42f60-98fc-4974-8d25-915a4c7e0d80%40googlegroups.com.
On Jan 31, 2020, at 4:16 PM, Thomas Keffer <tke...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zECD1_-w%3D8V5eb5-qYsgMBPcvnNunAOe%2BQbnqpKsOsyGUg%40mail.gmail.com.
On Feb 1, 2020, at 12:40 PM, Leon Shaner <le...@isylum.org> wrote:
Hey, WeeWx'ers.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/eaa42f60-98fc-4974-8d25-915a4c7e0d80%40googlegroups.com.
--
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 weewx...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zECD1_-w%3D8V5eb5-qYsgMBPcvnNunAOe%2BQbnqpKsOsyGUg%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/f134fb8c-e276-4539-a75a-3c0d5a1260d1%40googlegroups.com.
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/321a1732-f7bd-4588-bc39-67e8440d80fd%40googlegroups.com.
start-stop-daemon --start --chuid $WEEWX_USER --pidfile $PIDFILE --exec /usr/bin/env PYTHONHTTPSVERIFY=0 $DAEMON -- $DAEMON_ARGS || return 2Cheers,
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/98106b14-546a-481b-a49c-c8cf3ec19d7c%40googlegroups.com.
For requests to route properly, the
host header must be set correctly
path must be correct
On Feb 1, 2020, at 12:39 PM, Leon Shaner <le...@isylum.org> wrote:
Hey, WeeWx'ers.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CE8C91F5-D61F-4618-A317-7E97B9ECE912%40isylum.org.
Feb 3 14:16:34 nixie weewx[8584] DEBUG weewx.restx: Wunderground-RF: Added Header: 'Host: weatherstation.wunderground.com'That isn't the host that should be used for rapidfire, but it's taken from the URL being used. :-(
$ grep wunderground.com restx.pyIt will take me some time to figure out why restx.py is using the wrong URL.
rf_url = "https://rtupdate.wunderground.com/weatherstation/updateweatherstation.php"
pws_url = "https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php"
le...@isylum.org - Dearborn, Michigan
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAFbExW60hmrJRd1yWJAK8f0H%2BXnZsnYe8%3DxMpvKe9n2ws4sq9w%40mail.gmail.com.
Feb 3 14:36:30 nixie weewx[8747] DEBUG weewx.restx: Wunderground-RF: Added Header: 'Host: rtupdate.wunderground.com'That's what it should have shown if rf_url was getting used for do_rapidfire_post.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/6438f7e3-b03f-4ea3-e324-d89640c88e09%40isylum.org.
$ diff restx.py restx.py_getting404
100d99
< from urllib.parse import urlparse
454,458c453
< _parseduri = urlparse(url)
< _parsedhost = '{uri.netloc}'.format(uri=_parseduri)
< _request.add_header("Host", "%s" % _parsedhost)
< # log.debug("%s: Added Header: 'Host: %s'"
< # % (self.protocol_name, _parsedhost))
---
> _request.add_header("User-Agent", "weewx/%s" % weewx.__version__)
610,611c605Or in case your line numbers don't match mine (likely), here it is in context:
< #pws_url = "https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php"
< pws_url = "https://rtupdate.wunderground.com/weatherstation/updateweatherstation.php"
---
> pws_url = "https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php"
...
# Python 2/3 compatiblity shims
import six
from six.moves import http_client
from six.moves import queue
from six.moves import urllib
from urllib.parse import urlparse
...
def get_request(self, url):
"""Get a request object. This can be overridden to add any special headers."""
_request = urllib.request.Request(url)
_parseduri = urlparse(url)
_parsedhost = '{uri.netloc}'.format(uri=_parseduri)
_request.add_header("Host", "%s" % _parsedhost)
# log.debug("%s: Added Header: 'Host: %s'"
# % (self.protocol_name, _parsedhost))
_request.add_header("User-Agent", "weewx/%s" % weewx.__version__)
return _request
...
# the rapidfire URL:
rf_url = "https://rtupdate.wunderground.com/weatherstation/updateweatherstation.php"
# the personal weather station URL:
#pws_url = "https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php"
pws_url = "https://rtupdate.wunderground.com/weatherstation/updateweatherstation.php"
le...@isylum.org - Dearborn, Michigan
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/c017d408-7abb-695c-8968-9058e22b3389%40isylum.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/45f04b3b-ae67-aaeb-9d25-625ea42b111b%40isylum.org.
On Feb 4, 2020, at 9:15 PM, Thomas Keffer <tke...@gmail.com> wrote:
Quick update: We have some answers for why many of the stations are not sending data. It appears that many of the embedded device controllers don't behave very well with host names, and are sending data to us in a way that is not expected.
We love that enthusiasts building cool stuff send data to Weather Underground, so while we asses how to fix these issues, we have temporarily rolled back to our legacy system.
We will be testing over the next week to see how to fix these problems, and will ask for help from some of you.
I would like to personally apologize for this issue, we felt our testing was robust, but obviously there were gaps. We're still working on a plan and I will try to keep you updated here.
Tim is a regular poster on the site and it's a good source of what's going on.
I think the time coincides with everything correcting itself on your system
Regards
Dave
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/77bd16db-0eed-4598-94ea-f7ca3a0dc945%40googlegroups.com.
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/b2f3448a-dc34-4fa6-a938-2264197c25af%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/mYhw6CSKHHg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEAN71P5ypM9OT0hvtjUxact9UL9m%2BQG_H7MF5xw%2BPwMvw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/17C85818-7A6B-40F6-B28E-E72E034A5B2B%40me.com.