Weather forecast: darksky.net refused to connect
Moderator: leecollings
-
- Posts: 3
- Joined: Thursday 12 July 2018 9:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Weather forecast: darksky.net refused to connect
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?
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?
-
- 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
Same problem here. Running beta 11777Woody 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?
-
- 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
Same here on beta 11775
- 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
Seems like a Darksky policy change.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.
The message I get (using the Edge browse on version V4.11665 (Synology test system ) )
All other Darksy stuf is working as before.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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Re: Weather forecast: darksky.net refused to connect
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.
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
Same issue here. Anyone have suggestions on how to fix?
-
- 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
Thanks - and really well spotted! I am hoping that @leecollings can tell us how to update the call to https.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.
Re: Weather forecast: darksky.net refused to connect
*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.
-
- 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
Same Problem here. I created an Issue on Github:
https://github.com/domoticz/domoticz/issues/4012
Br
https://github.com/domoticz/domoticz/issues/4012
Br
-
- 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
User gizmocuz provided a temporally fix for this issue on Github:
https://github.com/domoticz/domoticz/co ... 19a2aecc3e
Br
https://github.com/domoticz/domoticz/co ... 19a2aecc3e
Br
Who is online
Users browsing this forum: No registered users and 1 guest