When I bring up Weather->Forecast it puts me 30+ miles south and 1000' lower in elevation. I can enter my address and life is good. Then I go away, eat, store, sleep and when I come back and open Domoticz and -> Forecast I'm back 30+ miles away - again. Is there any way to cache my location?
Thanks
cal
Dark Sky - my location
Moderators: leecollings, remb0
-
- Posts: 10
- Joined: Thursday 06 April 2017 23:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: Dark Sky - my location
Well, in my tests (i live in Italy) i found this:
when i press the forecast button dark sky redirects the url to the default "Country barycenter" (sorry for my bad english, I hope to explain the meaning of the term). Here in Italy is "strada provinciale di Passo Spina, Campiello sul Clitunno, far far far away from my location. My ubuntuphone just lit has the same behavior.
This is due because in ForecastController.js the URL is like this:
e.g
Changing the URL string to
when i press the forecast button dark sky redirects the url to the default "Country barycenter" (sorry for my bad english, I hope to explain the meaning of the term). Here in Italy is "strada provinciale di Passo Spina, Campiello sul Clitunno, far far far away from my location. My ubuntuphone just lit has the same behavior.
This is due because in ForecastController.js the URL is like this:
If i put this URL with the true coordinates in firefox, the site redirects me to the default.//darksky.net/#/ft/' + $scope.config.Latitude + ',' + $scope.config.Longitude
e.g
becomes
with the part next to the # simply ignored.
Changing the URL string to
solves the problem (at least for me). it would be interesting if someone on the team explain the reason of the # /f/ part of the URL, i'm not a programmer and googling here and there i found only references to "fragment identifier" (that in some way explains the reason that the next part is ignored) or AJAX constructs, i don't know anything about angular js.//darksky.net/forecastt/' + $scope.config.Latitude + ',' + $scope.config.Longitude
-
- Posts: 10
- Joined: Thursday 06 April 2017 23:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: Dark Sky - my location
E oh!

This is due because coordinates are stored in cookies in the browser... When them expire...Then I go away, eat, store, sleep and when I come back and open Domoticz and -> Forecast I'm back 30+ miles away - again

Who is online
Users browsing this forum: No registered users and 1 guest