Page 1 of 1

Darksky still in forecast after switch OpenWeather.

Posted: Wednesday 04 November 2020 8:39
by jslegers
Yesterday I have switched from Darksky to OpenWeather for the temperature and forecast. I removed the Darksky weather "hardware" and added the OpenWeahter one. Only if I click Forecast it still wants to go to Darksky. I found that this is done by the forecastcontroller.js in the /www/app directory. I have found the link on OpenWeather for a 5 day forecast. Can I just copy and past it in the js file or must there be some kind of format. Is there an example of an forecastcontroller.js for OpenWeather?

Re: Darksky still in forecast after switch OpenWeather.

Posted: Wednesday 04 November 2020 10:46
by kiddigital
There is Pull Request already for this on Github

https://github.com/domoticz/domoticz/pull/4385

Re: Darksky still in forecast after switch OpenWeather.

Posted: Wednesday 04 November 2020 12:09
by jslegers
Thanks for the info.

Re: Darksky still in forecast after switch OpenWeather.

Posted: Wednesday 04 November 2020 12:14
by jslegers
kiddigital wrote: Wednesday 04 November 2020 10:46 There is Pull Request already for this on Github

https://github.com/domoticz/domoticz/pull/4385
Is this the available in the Beta version of Domoticz?
I'm still running on 4.10717.

Re: Darksky still in forecast after switch OpenWeather.

Posted: Wednesday 04 November 2020 12:40
by kiddigital
Once the PR is accepted and merged (now it is Open) then it becomes available in the Beta.

Re: Darksky still in forecast after switch OpenWeather.

Posted: Monday 06 March 2023 12:15
by edgarhildering
Hi everyone, today I opened the forecast in the domoticz weather screen again and to my surprise I still got a Darksky weather overview :roll: . I just looked at the PR from a few years ago and I couldn't make out what the status is now :?: . I installed the OpenWeatherMap plugin and it works fine, except for the forecast screen.
How do I get the OpenWeatherMap forecast in the forecast screen :? ?

kind regards, --Edgar

Re: Darksky still in forecast after switch OpenWeather.

Posted: Wednesday 22 March 2023 19:55
by pipiche
it is dead today !

Re: Darksky still in forecast after switch OpenWeather.

Posted: Wednesday 22 March 2023 20:33
by kiddigital
pipiche wrote:it is dead today !
What/how do you mean?

Screenshot? Error messages?

Re: Darksky still in forecast after switch OpenWeather.

Posted: Wednesday 22 March 2023 23:39
by waltervl
Darksky seems to be not working from 16:31 today
Screenshot_20230322-233727.png
Screenshot_20230322-233727.png (269.39 KiB) Viewed 1253 times
Also a 502 bad gateway error is shown.

Re: Darksky still in forecast after switch OpenWeather.

Posted: Thursday 23 March 2023 16:34
by lost
waltervl wrote: Wednesday 22 March 2023 23:39 Darksky seems to be not working from 16:31 today
Was back this early morning (around 4h00) on my side... Maybe not for long!

Re: Darksky still in forecast after switch OpenWeather.

Posted: Monday 03 April 2023 18:29
by waltervl
Well, from first of April, Darksky seems not be working anymore...
Somebody has prepared an alternative https://github.com/domoticz/domoticz/pull/5660 with Visual Crissing weather API to be implemented in Domoticz.
For the Netherlands you can also use the Buienradar integration.

Re: Darksky still in forecast after switch OpenWeather.

Posted: Thursday 13 April 2023 15:50
by Toulon7559
Nice to get a new set of virtual devices replacing those for DarkSky,
but if you already apply read-out of DarkSky-values in other scripts etc, e.g. by means of this lua-script,
it means that all those scripts have to be checked & corrected.
The described changing of the datatabase-entry is one way to support a Raspberry running stable-release of Domoticz.
As 'external' alternative I have made a Python-variant of the lua-script (mentioned above) which reads the VC_API for forecasted & current values and provides emulated filling of the DarkSky virtual devices.
Only value presently missing is Ozone (expressed as DobsonUnits), but OpenUV.io can probably serve as alternative data-source for that value:
although the ozone-level in the OpenUV data-file is strangely high and unstable.

;) Not a very 'clean' solution (because the DarkSky-devices visibly seem to remain in operation),
but quick&dirty until time found for proper upgrade to VC-information for those scripts reading DarkSky-devices.

Re: Darksky still in forecast after switch OpenWeather.

Posted: Monday 17 April 2023 9:09
by waltervl
waltervl wrote: Monday 03 April 2023 18:29 Well, from first of April, Darksky seems not be working anymore...
Somebody has prepared an alternative https://github.com/domoticz/domoticz/pull/5660 with Visual Crossing weather API to be implemented in Domoticz.
For the Netherlands you can also use the Buienradar integration.
Visual Crossing Weather lookup DarkSky 1:1 replacement implemented in latest beta
From the PR:

Go to https://www.visualcrossing.com/ and create an account

Copy the API key from account details

Go to your domoticz installation

Add new hardware of type Visual Crossing (Weather Lookup)

OR

Edit hardware type of darksky entry to 127 via DB and change API key to new key