Page 1 of 2
Dashticz - ANWB traffic info
Posted: Wednesday 22 April 2020 21:02
by Lokonli
It seems ANWB traffic info is not working anymore. ANWB currently is not providing traffic info anymore via the API that was used by Dashticz.
Let's wait a few days: maybe it returns.
Otherwise we could switch for instance to the RSS feed of verkeerplaza.nl.
Other suggestions are welcome as well.
Re: Dashticz - ANWB traffic info
Posted: Saturday 25 April 2020 12:03
by BoelShit
As I did the ANWB trafficinfo part I've looked into why its not working anymore. Seems ANWB switched to an other API.
Not so difficult to change to the new API but there are no trafficjams to test on
Re: Dashticz - ANWB traffic info
Posted: Tuesday 28 April 2020 17:42
by Franzie
@BoelShit How to change to the new API?
Re: Dashticz - ANWB traffic info
Posted: Tuesday 28 April 2020 19:58
by BoelShit
It is being worked on atm. It's not just changing the url of the API, they've changed the structure of the data a bit.
Re: Dashticz - ANWB traffic info
Posted: Tuesday 28 April 2020 20:51
by Franzie
BoelShit wrote: ↑Tuesday 28 April 2020 19:58
It is being worked on atm. It's not just changing the url of the API, they've changed the structure of the data a bit.
Top!!
Re: Dashticz - ANWB traffic info
Posted: Wednesday 29 April 2020 10:05
by Lokonli
The ANWB traffic info has been fixed in latest beta. (thanks to @BoelShit!)
Re: Dashticz - ANWB traffic info
Posted: Wednesday 29 April 2020 17:15
by Brinkie
I still have an issue with ANWB traffic. Even on the latest beta version V3.4.5.
cors-anywhere.herokuapp.com/
https://api.anwb.nl/v1/incidents?apikey=xxxx Failed to load resource: the server responded with a status of 400 (Bad Request)
When i run it on the demo site of cors-anywhere i get the following message:
GET
https://cors-anywhere.herokuapp.com/htt ... pikey=xxxx
400 Bad Request
{"errors": [{"title":"Bad Request","message":"Invalid origin.", "code":9}]}
Re: Dashticz - ANWB traffic info
Posted: Wednesday 29 April 2020 18:46
by Lokonli
Try to use the Dashticz internal CORS proxy.
Re: Dashticz - ANWB traffic info
Posted: Thursday 30 April 2020 14:08
by Brinkie
Lokonli wrote: ↑Wednesday 29 April 2020 18:46
Try to use the Dashticz internal CORS proxy.
I do use the internal CORS proxy.
config['default_cors_url'] = '
http://cors-anywhere.herokuapp.com/';
or should it be different?
Re: Dashticz - ANWB traffic info
Posted: Thursday 30 April 2020 15:53
by Lokonli
Brinkie wrote: ↑Thursday 30 April 2020 14:08
Lokonli wrote: ↑Wednesday 29 April 2020 18:46
Try to use the Dashticz internal CORS proxy.
I do use the internal CORS proxy.
config['default_cors_url'] = '
http://cors-anywhere.herokuapp.com/';
or should it be different?
That is the external CORS proxy.
You can remove the default_cors_url setting from CONFIG.js. The default CORS url will then be used automatically.
If you've installed PHP according the installation instructions, the internal PHP based CORS proxy will be used.
Re: Dashticz - ANWB traffic info
Posted: Friday 01 May 2020 15:24
by Brinkie
Lokonli wrote: ↑Thursday 30 April 2020 15:53
Brinkie wrote: ↑Thursday 30 April 2020 14:08
Lokonli wrote: ↑Wednesday 29 April 2020 18:46
Try to use the Dashticz internal CORS proxy.
I do use the internal CORS proxy.
config['default_cors_url'] = '
http://cors-anywhere.herokuapp.com/';
or should it be different?
That is the external CORS proxy.
You can remove the default_cors_url setting from CONFIG.js. The default CORS url will then be used automatically.
If you've installed PHP according the installation instructions, the internal PHP based CORS proxy will be used.
Thanks! I had PHP installed, but did’t set the option OpenSSL. It works now.
Re: Dashticz - ANWB traffic info
Posted: Friday 01 May 2020 17:57
by JanvdW
The anwb traffic info works fine, but the predefined block 'traffic' doesn't show any information either. Has this the same cause?
Re: Dashticz - ANWB traffic info
Posted: Saturday 02 May 2020 15:02
by Brinkie
JanvdW wrote: ↑Friday 01 May 2020 17:57
The anwb traffic info works fine, but the predefined block 'traffic' doesn't show any information either. Has this the same cause?
What do you mean with predefined block traffic. I use this in my config.js file
var trafficinfo = {}
trafficinfo.anwba1 = {
key:'anwba28',
provider: 'anwb',
road:'A1',
trafficJams: true,
roadWorks: true,
radars: true,
show_lastupdate:true,
icon: 'fas fa-car',
width:12,
results: 10 };
Re: Dashticz - ANWB traffic info
Posted: Saturday 02 May 2020 16:01
by HansieNL
- Spoiler: show
Brinkie wrote: ↑Saturday 02 May 2020 15:02
JanvdW wrote: ↑Friday 01 May 2020 17:57
The anwb traffic info works fine, but the predefined block 'traffic' doesn't show any information either. Has this the same cause?
What do you mean with predefined block traffic. I use this in my config.js file
var trafficinfo = {}
trafficinfo.anwba1 = {
key:'anwba28',
provider: 'anwb',
road:'A1',
trafficJams: true,
roadWorks: true,
radars: true,
show_lastupdate:true,
icon: 'fas fa-car',
width:12,
results: 10 };
I think he means this block: 'traffic'. Traffic info from Rijkswaterstaat Verkeersinfo (Netherlands).
Re: Dashticz - ANWB traffic info
Posted: Saturday 02 May 2020 16:07
by JanvdW
Yes, that's right. As far as I know you can't configure anything for the 'traffic' block, so it hardly can't be a configuration issue
Re: Dashticz - ANWB traffic info
Posted: Wednesday 13 May 2020 9:45
by JanvdW
Lokonli wrote: ↑Wednesday 29 April 2020 10:05
The ANWB traffic info has been fixed in latest beta. (thanks to @BoelShit!)
Do you know if this problem is applicable for the predefined block 'traffic' as well? If so,who is able to fix that?
Re: Dashticz - ANWB traffic info
Posted: Wednesday 13 May 2020 16:45
by BoelShit
I've looked at the traffic block for you and the whole source (
http://www.vid.nl/VI/_rss) of information isn't available anymore. So if there is no other similar source I think it will be hard to fix. Can't recall what it showed when it did work.
Re: Dashticz - ANWB traffic info
Posted: Wednesday 13 May 2020 17:59
by Lokonli
BoelShit wrote: ↑Wednesday 13 May 2020 16:45
I've looked at the traffic block for you and the whole source (
http://www.vid.nl/VI/_rss) of information isn't available anymore. So if there is no other similar source I think it will be hard to fix. Can't recall what it showed when it did work.
It showed this:
The first block is the traffic block, the second one the train block.
It was just one line of text, and a clickable button, which opens the Rijkswaterstaat traffic info.
For instance this link:
https://rwsverkeersinfo.nl/actuele-verkeersinfo
Re: Dashticz - ANWB traffic info
Posted: Monday 08 June 2020 23:56
by JanvdW
I see no update on this topic. If it can't be fixed I suppose that the documentation should be updated (
https://dashticz.readthedocs.io/_/downl ... /beta/pdf/)
Re: Dashticz - ANWB traffic info
Posted: Wednesday 10 June 2020 19:23
by HansieNL
@BoelShit Can we use the following url for traffic block:
https://api.rwsverkeersinfo.nl/api/traffic/