Darksky still in forecast after switch OpenWeather.

Moderator: leecollings

Post Reply
jslegers
Posts: 34
Joined: Tuesday 23 February 2016 9:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: NL
Contact:

Darksky still in forecast after switch OpenWeather.

Post 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?
User avatar
kiddigital
Posts: 435
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Darksky still in forecast after switch OpenWeather.

Post by kiddigital »

There is Pull Request already for this on Github

https://github.com/domoticz/domoticz/pull/4385
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
jslegers
Posts: 34
Joined: Tuesday 23 February 2016 9:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: NL
Contact:

Re: Darksky still in forecast after switch OpenWeather.

Post by jslegers »

Thanks for the info.
jslegers
Posts: 34
Joined: Tuesday 23 February 2016 9:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: NL
Contact:

Re: Darksky still in forecast after switch OpenWeather.

Post 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.
User avatar
kiddigital
Posts: 435
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Darksky still in forecast after switch OpenWeather.

Post by kiddigital »

Once the PR is accepted and merged (now it is Open) then it becomes available in the Beta.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
edgarhildering
Posts: 31
Joined: Thursday 11 June 2015 22:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Contact:

Re: Darksky still in forecast after switch OpenWeather.

Post 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
RaspberryPi running Domoticz 2023.2
PIRs + lightswitches
thermometers + heating control
hygrometers + dehumifiers
TUYA switches
pipiche
Posts: 1975
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Darksky still in forecast after switch OpenWeather.

Post by pipiche »

it is dead today !
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
User avatar
kiddigital
Posts: 435
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Darksky still in forecast after switch OpenWeather.

Post by kiddigital »

pipiche wrote:it is dead today !
What/how do you mean?

Screenshot? Error messages?
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Darksky still in forecast after switch OpenWeather.

Post by waltervl »

Darksky seems to be not working from 16:31 today
Screenshot_20230322-233727.png
Screenshot_20230322-233727.png (269.39 KiB) Viewed 1071 times
Also a 502 bad gateway error is shown.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
lost
Posts: 616
Joined: Thursday 10 November 2016 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Darksky still in forecast after switch OpenWeather.

Post 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!
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Darksky still in forecast after switch OpenWeather.

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Toulon7559
Posts: 843
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: Darksky still in forecast after switch OpenWeather.

Post 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.
Last edited by Toulon7559 on Tuesday 18 April 2023 9:58, edited 5 times in total.
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Darksky still in forecast after switch OpenWeather.

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest