gieljnssns / buienalarm-sensor-homeassistant

Buienalarm custom_component for Home-Assistant
MIT License
35 stars 6 forks source link

Error fetching data safely: HTTPSConnectionPool(host='cdn-secure.buienalarm.nl', port=443): #30

Closed pdwonline closed 2 years ago

pdwonline commented 2 years ago

Describe the bug Sometimes I do get this error message in the log. What is it and what can we do to avoid that?

Any errors

 Logger: buienalarm.pybuienalarm
Source: /usr/local/lib/python3.9/site-packages/buienalarm/pybuienalarm.py:158

    Error fetching data safely: HTTPSConnectionPool(host='cdn-secure.buienalarm.nl', port=443): Max retries exceeded with url: /api/3.4/forecast.php?lat=52.590189613575276&lon=6.106075644493103&region=nl&unit=mm%2Fu (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fbbb625cbe0>: Failed to establish a new connection: [Errno -3] Try again'))
    Error fetching data safely: HTTPSConnectionPool(host='cdn-secure.buienalarm.nl', port=443): Max retries exceeded with url: /api/3.4/forecast.php?lat=52.590189613575276&lon=6.106075644493103&region=nl&unit=mm%2Fu (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fbbb635d1c0>: Failed to establish a new connection: [Errno -3] Try again'))
    Error fetching data safely: HTTPSConnectionPool(host='cdn-secure.buienalarm.nl', port=443): Max retries exceeded with url: /api/3.4/forecast.php?lat=52.590189613575276&lon=6.106075644493103&region=nl&unit=mm%2Fu (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fbba6665d00>: Failed to establish a new connection: [Errno -3] Try again'))
    Error fetching data safely: HTTPSConnectionPool(host='cdn-secure.buienalarm.nl', port=443): Max retries exceeded with url: /api/3.4/forecast.php?lat=52.590189613575276&lon=6.106075644493103&region=nl&unit=mm%2Fu (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fbba44661f0>: Failed to establish a new connection: [Errno -3] Try again'))
    Error fetching data safely: HTTPSConnectionPool(host='cdn-secure.buienalarm.nl', port=443): Max retries exceeded with url: /api/3.4/forecast.php?lat=52.590189613575276&lon=6.106075644493103&region=nl&unit=mm%2Fu (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fbbab7fd670>: Failed to establish a new connection: [Errno -3] Try again'))

Config yaml

- platform: buienalarm
  timeframe: 5
  name: buienalarm
  monitored_conditions:
   - temperature
   - precipitation
   - precipitation_forecast_average
   - precipitation_forecast_total 
   - next_rain_forecast
gieljnssns commented 2 years ago

That's because the buien alarm endpoint isn't available

pdwonline commented 2 years ago

ok, thanks