Buienradar not working in 3.5.1 beta

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
Jimster
Posts: 82
Joined: Tuesday 04 February 2020 11:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands
Contact:

Buienradar not working in 3.5.1 beta

Post by Jimster »

I upgraded to the latest beta and since then buienradar doesn't work anymore.
Any idea what I have to change to get it work again?

Code: Select all

var frames = {}
frames.buienradar = { 
frameurl:'https://gadgets.buienradar.nl/gadget/zoommap/?lat=51.81&lng=4.67361&overname=2&zoom=8&naam=Dordrecht&size=2b&voor=1',
refreshiframe: 600000,
width: 12,
height: 330,
scrollbars: true,
forcerefresh: 2,
key: 'buienradar'
}
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Buienradar not working in 3.5.1 beta

Post by clinkadink »

I think your "refreshiframe" needs updating from milliseconds to seconds. Unless you mean to refresh it once per week ;)

Code: Select all

refreshiframe: 600000 // incorrect
refreshiframe: 60     // correct
https://dashticz.readthedocs.io/en/beta ... parameters
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar not working in 3.5.1 beta

Post by Lokonli »

Jimster wrote:I upgraded to the latest beta and since then buienradar doesn't work anymore.
Any idea what I have to change to get it work again?

Code: Select all

var frames = {}
frames.buienradar = { 
frameurl:'https://gadgets.buienradar.nl/gadget/zoommap/?lat=51.81&lng=4.67361&overname=2&zoom=8&naam=Dordrecht&size=2b&voor=1',
refreshiframe: 600000,
width: 12,
height: 330,
scrollbars: true,
forcerefresh: 2,
key: 'buienradar'
}
Can you try with forcerefresh:0?

Sent from my SM-A320FL using Tapatalk

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

Re: Buienradar not working in 3.5.1 beta

Post by Lokonli »

Jimster wrote: Monday 22 June 2020 12:11 I upgraded to the latest beta and since then buienradar doesn't work anymore.
Any idea what I have to change to get it work again?

Code: Select all

var frames = {}
frames.buienradar = { 
frameurl:'https://gadgets.buienradar.nl/gadget/zoommap/?lat=51.81&lng=4.67361&overname=2&zoom=8&naam=Dordrecht&size=2b&voor=1',
refreshiframe: 600000,
width: 12,
height: 330,
scrollbars: true,
forcerefresh: 2,
key: 'buienradar'
}
and replace refreshiframe:600000 with refresh:600
(the parameter was renamed from refreshiframe to refresh, expressed in sec not msec.)
Jimster
Posts: 82
Joined: Tuesday 04 February 2020 11:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands
Contact:

Re: Buienradar not working in 3.5.1 beta

Post by Jimster »

Lokonli wrote: Wednesday 24 June 2020 23:48
Jimster wrote:I upgraded to the latest beta and since then buienradar doesn't work anymore.
Any idea what I have to change to get it work again?

Code: Select all

var frames = {}
frames.buienradar = { 
frameurl:'https://gadgets.buienradar.nl/gadget/zoommap/?lat=51.81&lng=4.67361&overname=2&zoom=8&naam=Dordrecht&size=2b&voor=1',
refreshiframe: 600000,
width: 12,
height: 330,
scrollbars: true,
forcerefresh: 2,
key: 'buienradar'
}
Can you try with forcerefresh:0?

Sent from my SM-A320FL using Tapatalk
Yes, this did the trick! Thanks!
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar not working in 3.5.1 beta

Post by Lokonli »

Reason:
forcerefresh contained a bug, and was not applied to frames. I fixed this some time ago.
So after the bug fix forcerefresh:2 was applied to your buienradar frame, meaning the CORS proxy will be used.
However, buienradar.nl cannot be loaded via the CORS proxy ..., so that created your issue.

Anyway, good that it's solved :)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest