Page 1 of 1
Weather forecast: darksky.net refused to connect
Posted: Friday 06 March 2020 20:40
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?
Re: Weather forecast: darksky.net refused to connect
Posted: Saturday 07 March 2020 1:08
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
Re: Weather forecast: darksky.net refused to connect
Posted: Saturday 07 March 2020 18:25
by doh
Same here on beta 11775
Re: Weather forecast: darksky.net refused to connect
Posted: Saturday 07 March 2020 23:29
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.
Re: Weather forecast: darksky.net refused to connect
Posted: Tuesday 10 March 2020 4:02
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.
Re: Weather forecast: darksky.net refused to connect
Posted: Friday 13 March 2020 17:26
by jimm2
Same issue here. Anyone have suggestions on how to fix?
Re: Weather forecast: darksky.net refused to connect
Posted: Friday 13 March 2020 22:31
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.
Re: Weather forecast: darksky.net refused to connect
Posted: Tuesday 17 March 2020 2:44
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.
Re: Weather forecast: darksky.net refused to connect
Posted: Saturday 21 March 2020 21:36
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.
Re: Weather forecast: darksky.net refused to connect
Posted: Wednesday 25 March 2020 15:16
by dakarli
Same Problem here. I created an Issue on Github:
https://github.com/domoticz/domoticz/issues/4012
Br
Re: Weather forecast: darksky.net refused to connect
Posted: Thursday 26 March 2020 12:41
by dakarli
User gizmocuz provided a temporally fix for this issue on Github:
https://github.com/domoticz/domoticz/co ... 19a2aecc3e
Br
Re: Weather forecast: darksky.net refused to connect
Posted: Tuesday 31 March 2020 23:02
by Woody