Import weather data other than Wunderground

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by Lokonli »

Backlash wrote: Sunday 20 September 2020 18:39 nobody who can point us at the right direction?
If I look at the post of @Sarcas then the link seems to incorrect.
The OWM data is loaded via the CORS proxy, but that part is missing in the url. It should start with:

Code: Select all

http://<domoticz ip:port>/vendor/dashticz/cors.php?https://api.openweathermap.org/data/2.5/weather?id=...
So I think there is something wrong with the CORS setting in CONFIG.js.

On the other hand:
There is no need for using the CORS proxy for the OWM data. In the latest beta I removed the CORS proxy for OWM data. I expect that will solve your issue.
Sarcas
Posts: 86
Joined: Wednesday 11 October 2017 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1ß
Location: Friesland
Contact:

Re: Import weather data other than Wunderground

Post by Sarcas »

I am running beta version 3.5.2. Afaik it is the latest version.
Schermafbeelding 2.png
Schermafbeelding 2.png (393.6 KiB) Viewed 1190 times
--

Domoticz on rPi4 - RFXCOM RFXtrx433 USB - ZW090 Z-Stick Gen5 EU - IKEA Tradfri - Philips HUE - YouLess meter - SolarEdge
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by Lokonli »

I did not update the version number yet. Try to update with git pull, or download from Github.

Sent from my SM-A320FL using Tapatalk

Backlash
Posts: 9
Joined: Sunday 23 August 2020 20:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Nederland
Contact:

Re: Import weather data other than Wunderground

Post by Backlash »

HansieNL wrote: Sunday 20 September 2020 19:29 Just tried my config with Dashticz 3.5 master and the 'weather_owm' block has no problem.
What settings do you use (without API key)?
changed from V3.5 master to V3.5.2 beta and problem solved
git fetch origin
git checkout beta
git pull
Sarcas
Posts: 86
Joined: Wednesday 11 October 2017 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1ß
Location: Friesland
Contact:

Re: Import weather data other than Wunderground

Post by Sarcas »

Lokonli wrote: Monday 21 September 2020 13:02 I did not update the version number yet. Try to update with git pull, or download from Github.

Sent from my SM-A320FL using Tapatalk
Works after the ‘git pull’ :D

Thanks!
--

Domoticz on rPi4 - RFXCOM RFXtrx433 USB - ZW090 Z-Stick Gen5 EU - IKEA Tradfri - Philips HUE - YouLess meter - SolarEdge
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by HansieNL »

Backlash wrote: Monday 21 September 2020 16:16
HansieNL wrote: Sunday 20 September 2020 19:29 Just tried my config with Dashticz 3.5 master and the 'weather_owm' block has no problem.
What settings do you use (without API key)?
changed from V3.5 master to V3.5.2 beta and problem solved
git fetch origin
git checkout beta
git pull
If you like you can change back to master and see if it then works o.k.
Blah blah blah
Backlash
Posts: 9
Joined: Sunday 23 August 2020 20:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Nederland
Contact:

Re: Import weather data other than Wunderground

Post by Backlash »

HansieNL wrote: Monday 21 September 2020 19:09
Backlash wrote: Monday 21 September 2020 16:16
HansieNL wrote: Sunday 20 September 2020 19:29 Just tried my config with Dashticz 3.5 master and the 'weather_owm' block has no problem.
What settings do you use (without API key)?
changed from V3.5 master to V3.5.2 beta and problem solved
git fetch origin
git checkout beta
git pull
If you like you can change back to master and see if it then works o.k.
Back to master again V3.6 since yesterday, and it still works :)
cduijker
Posts: 15
Joined: Thursday 09 August 2018 15:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by cduijker »

I would like to use the weather widget from https://weatherwidget.io/ as it is highly customizable.
Does anybody know how to add the generated code in an iframe for Dashticz?

regards
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by Lokonli »

I could create a custom html block type, in which you can just copy paste the html code. Would that be useful?

Sent from my SM-A320FL using Tapatalk

lzwfkv
Posts: 37
Joined: Sunday 11 August 2019 16:54
Target OS: -
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by lzwfkv »

Lokonli wrote: Sunday 27 September 2020 18:16 I could create a custom html block type, in which you can just copy paste the html code. Would that be useful?

Sent from my SM-A320FL using Tapatalk
Hi Lokonli, yes it would for me.
Thanks.
cduijker
Posts: 15
Joined: Thursday 09 August 2018 15:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by cduijker »

That would be very nice!
Vomera
Posts: 184
Joined: Wednesday 06 September 2017 9:11
Target OS: Linux
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by Vomera »

cduijker wrote: Sunday 27 September 2020 17:56 I would like to use the weather widget from https://weatherwidget.io/ as it is highly customizable.
Does anybody know how to add the generated code in an iframe for Dashticz?

regards

I just made an html page in the same directory as the dashboard and made a refer to the frame

Code: Select all

frames.voorspelling = {
  frameurl:"custom/forcast.html",
  height: 112,     //height of the block in pixels
  width: 12,
  scrollbars:false,
  refreshiframe:300000,
}
Image
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by HansieNL »

Lokonli wrote: Sunday 27 September 2020 18:16 I could create a custom html block type, in which you can just copy paste the html code. Would that be useful?

Sent from my SM-A320FL using Tapatalk
Would be great.
If I now use an iframe the block is not responsive and cuts the info in half.
Is there a way to auto resize the block to the iframe size?
Image
Blah blah blah
Vomera
Posts: 184
Joined: Wednesday 06 September 2017 9:11
Target OS: Linux
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by Vomera »

HansieNL wrote: Monday 28 September 2020 12:59
Lokonli wrote: Sunday 27 September 2020 18:16 I could create a custom html block type, in which you can just copy paste the html code. Would that be useful?

Sent from my SM-A320FL using Tapatalk
Would be great.
If I now use an iframe the block is not responsive and cuts the info in half.
Is there a way to auto resize the block to the iframe size?
Image
You can change the height of the iframe, or you want it at 225px. Then indeed it would be cool to paste the html code
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by Lokonli »

In beta 3.6.1 I've added the custom html block functionality.

See:
https://dashticz.readthedocs.io/en/beta ... /html.html

Give it a try :)
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by HansieNL »

Lokonli wrote: Tuesday 29 September 2020 20:32 In beta 3.6.1 I've added the custom html block functionality.

See:
https://dashticz.readthedocs.io/en/beta ... /html.html

Give it a try :)
Just tried :D Works like a charm.
Blah blah blah
cduijker
Posts: 15
Joined: Thursday 09 August 2018 15:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by cduijker »

Lokonli wrote: Tuesday 29 September 2020 20:32 In beta 3.6.1 I've added the custom html block functionality.

See:
https://dashticz.readthedocs.io/en/beta ... /html.html

Give it a try :)
Thanks a lot!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest