I’ve been using the NOAA tide sensor for about a year, but about 3-4 weeks ago it stopped working. (I’ve tried several different station IDs, both ‘Harmonic’ and ‘Subordinate’.) Anyone using this sensor successfully?
Pertinent log entries:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='tidesandcurrents.noaa.gov', port=80): Max retries exceeded with url: /api/datagetter?begin_date=20200821+08%3A12&end_date=20200823+08%3A12&station=8419317&product=predictions&datum=MLLW&interval=hilo&units=english&time_zone=lst_ldt&application=py_noaa&format=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fca8718f8e0>: Failed to establish a new connection: [Errno 110] Operation timed out'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/noaa_tides/sensor.py", line 56, in setup_platform
noaa_sensor.update()
File "/usr/src/homeassistant/homeassistant/components/noaa_tides/sensor.py", line 118, in update
df_predictions = coops.get_data(
File "/usr/local/lib/python3.8/site-packages/py_noaa/coops.py", line 217, in get_data
df = url2pandas(data_url, product)
File "/usr/local/lib/python3.8/site-packages/py_noaa/coops.py", line 154, in url2pandas
response = requests.get(data_url) # Get JSON data from URL
File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='tidesandcurrents.noaa.gov', port=80): Max retries exceeded with url: /api/datagetter?begin_date=20200821+08%3A12&end_date=20200823+08%3A12&station=8419317&product=predictions&datum=MLLW&interval=hilo&units=english&time_zone=lst_ldt&application=py_noaa&format=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fca8718f8e0>: Failed to establish a new connection: [Errno 110] Operation timed out'))