Darksky - connection error to api.darksky.net

Hey guys, since a few verisons, my darksky sensor throws an error message and the sensors arent appearing in HA.

Unable to connect to Dark Sky. HTTPSConnectionPool(host=‘api.darksky.net’, port=443): Max retries exceeded with url: /forecast/XXXXXXXXXXXXXXXXXX/xx.4062,x.41?units=ca&lang=de (Caused by NewConnectionError(‘<urllib3.connection.VerifiedHTTPSConnection object at 0x72c07590>: Failed to establish a new connection: [Errno -3] Try again’,))

When i try to open the link in my browser i can access the json file.

Here is my configuration:

- platform: darksky
  api_key: XXXXXXXXXXXX
  latitude: xx.4062
  longitude: x.410
  units: ca
  language: de
  update_interval:
    hours: 1
  monitored_conditions:
    - summary
    - daily_summary
    - temperature
    - apparent_temperature
    - wind_speed
    - cloud_cover
    - humidity

Maybe you have an idea how to fix this. I couldnt figure it out yet.

push

no ideas?

Did you check your API usage at https://darksky.net/dev/account? Just to make sure you are not exceeding your free calls per day.

Yeah i checked it. Zero calls since mid march.

I am having the same issue here

I’m also having the same issue.

If youre using pi hole on hassio, i might have a solution for you: Problem with weather components

Hey all,

i’m having the same problem too. The API hasn’t saturated as i have yet to be able to get it to work and the log outputs this :slight_smile
2018-09-11 21:10:48 ERROR (SyncWorker_4) [homeassistant.components.sensor.darksky] Unable to connect to Dark Sky. 404 Client Error: Not Found for url: https://api.darksky.net/forecast/https://api.darksky.net/forecast/d731b4451e70e5063a7d192768bb2c47/37.8267,-122.4233/45.xxxx,6.xxxxx?units=si&lang=en
(Don’t worry about the apikey, it’s been broken)

Here’s a quick glance at my config file

    - platform: darksky
        api_key: https://api.darksky.net/forecast/xx/37.8267,-122.4233
        forecast: 7
        monitored_conditions:
          -  summary
          -  precip_type
          -  precip_intensity
        update_interval:
          minutes: 5

Any ideas ?
I’m on debian running hassio.
All the other sensors are working fine (zwave, rfling and mysensors)

Regards,

Matthew

You entered the wrong API key. It’s just the “xx” part and not the whole URL

Ah my bad !

Hi everyone. I have similar problem with dark sky. all of a sudden it stopped working and gives me this error:

[homeassistant.components.sensor.darksky] Unable to connect to Dark Sky: HTTPSConnectionPool(host=‘api.darksky.net’, port=443): Max retries exceeded with url: /forecast/xxxxxxxxxxxxxxxxxxxx/44.xxxxxx,8.xxxxxx?units=si&lang=it (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x72ba6ab0>: Failed to establish a new connection: [Errno -3] Try again’,))

do you use the pihole addon?

no, however I solved by deleting the account and redoing another. I have also increased the update interval to 30 ’