Weather forecast: darksky.net refused to connect

Moderator: leecollings

Post Reply
Woody
Posts: 3
Joined: Thursday 12 July 2018 9:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Weather forecast: darksky.net refused to connect

Post by Woody »

Most recent stable build: 4.10717, Aurora theme, zero changes.

I have a darksky dev Secret Key for the API. darksky.net shows that the key is stil valid and I am well under my 1,000 requests a day.

I have a number of weather "devices" which are darksky and they work and update fine and there are no errors in the log file relating to any of them.

However, approx 4 days ago, when I select the forecast page (that has been working fine until now) http://xx.xx.xx.xx:8081/#/Forecast I simply get a page that says darksky.net refused to connect.

This is browser and client machine agnostic - so it is not something that has changed locally, and if I go to the dedicated darksky web page directly - https://darksky.net/forecast/xx.xx,xx,xx/ukxx/en the forecast page loads fine for my correct location.

There is no weird AV involved and while I have PiHole, it is not blocking - so does anyone have any bright ideas?
dobber
Posts: 19
Joined: Saturday 07 May 2016 1:43
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta..
Location: Sweden
Contact:

Re: Weather forecast: darksky.net refused to connect

Post by dobber »

Woody wrote: Friday 06 March 2020 20:40 Most recent stable build: 4.10717, Aurora theme, zero changes.

I have a darksky dev Secret Key for the API. darksky.net shows that the key is stil valid and I am well under my 1,000 requests a day.

I have a number of weather "devices" which are darksky and they work and update fine and there are no errors in the log file relating to any of them.

However, approx 4 days ago, when I select the forecast page (that has been working fine until now) http://xx.xx.xx.xx:8081/#/Forecast I simply get a page that says darksky.net refused to connect.

This is browser and client machine agnostic - so it is not something that has changed locally, and if I go to the dedicated darksky web page directly - https://darksky.net/forecast/xx.xx,xx,xx/ukxx/en the forecast page loads fine for my correct location.

There is no weird AV involved and while I have PiHole, it is not blocking - so does anyone have any bright ideas?
Same problem here. Running beta 11777
doh
Posts: 82
Joined: Monday 01 December 2014 13:28
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: London, UK
Contact:

Re: Weather forecast: darksky.net refused to connect

Post by doh »

Same here on beta 11775
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Weather forecast: darksky.net refused to connect

Post by waaren »

Woody wrote: Friday 06 March 2020 20:40 However, approx 4 days ago, when I select the forecast page (that has been working fine until now) http://xx.xx.xx.xx:8081/#/Forecast I simply get a page that says darksky.net refused to connect.
Seems like a Darksky policy change.
The message I get (using the Edge browse on version V4.11665 (Synology test system ) )
This content cannot be displayed in a frame
There is content, but the publisher does not allow it to be displayed in a frame.
This will better protect the information you may enter on this site.
Try this
Open this in a new window
Report this problem
All other Darksy stuf is working as before.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
wizworks
Posts: 6
Joined: Tuesday 10 March 2020 3:58
Target OS: Linux
Domoticz version:
Contact:

Re: Weather forecast: darksky.net refused to connect

Post by wizworks »

I think this is because Domoticz makes a call to the API over port 80 (HTTP) and not port 443 (HTTPS). When I curled:

curl http://api.darksky.net/forecast/api.key ... 4,-71.3329
{"code":400,"error":"this call requires HTTPS"}

Where do we change the API call from HTTP to HTTPS? It seems Darksky stopped answering HTTP requests.
jimm2
Posts: 3
Joined: Friday 26 January 2018 2:25
Target OS: Windows
Domoticz version:
Contact:

Re: Weather forecast: darksky.net refused to connect

Post by jimm2 »

Same issue here. Anyone have suggestions on how to fix?
Woody
Posts: 3
Joined: Thursday 12 July 2018 9:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Weather forecast: darksky.net refused to connect

Post by Woody »

wizworks wrote: Tuesday 10 March 2020 4:02 I think this is because Domoticz makes a call to the API over port 80 (HTTP) and not port 443 (HTTPS). When I curled:

curl http://api.darksky.net/forecast/api.key ... 4,-71.3329
{"code":400,"error":"this call requires HTTPS"}

Where do we change the API call from HTTP to HTTPS? It seems Darksky stopped answering HTTP requests.
Thanks - and really well spotted! I am hoping that @leecollings can tell us how to update the call to https.
wizworks
Posts: 6
Joined: Tuesday 10 March 2020 3:58
Target OS: Linux
Domoticz version:
Contact:

Re: Weather forecast: darksky.net refused to connect

Post by wizworks »

*bump* we need a fix, or at least someone to point out the script object to modify to allow Domoticz to call this API over HTTPS... please help.
dobber
Posts: 19
Joined: Saturday 07 May 2016 1:43
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta..
Location: Sweden
Contact:

Re: Weather forecast: darksky.net refused to connect

Post by dobber »

wizworks wrote: Tuesday 17 March 2020 2:44 *bump* we need a fix, or at least someone to point out the script object to modify to allow Domoticz to call this API over HTTPS... please help.
Maybe try posting in the "Bugs and Problems" part of the forum? Or on github.
dakarli
Posts: 5
Joined: Monday 16 March 2020 10:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Contact:

Re: Weather forecast: darksky.net refused to connect

Post by dakarli »

Same Problem here. I created an Issue on Github:

https://github.com/domoticz/domoticz/issues/4012

Br
dakarli
Posts: 5
Joined: Monday 16 March 2020 10:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Contact:

Re: Weather forecast: darksky.net refused to connect

Post by dakarli »

User gizmocuz provided a temporally fix for this issue on Github:

https://github.com/domoticz/domoticz/co ... 19a2aecc3e

Br
Woody
Posts: 3
Joined: Thursday 12 July 2018 9:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Weather forecast: darksky.net refused to connect

Post by Woody »

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest