Page 1 of 1

PublicTransport not loading

Posted: Saturday 05 January 2019 16:48
by Omemanti
I have recently reinstalled Domoticz and so also Dashticz.

I pull git about 3 weeks ago and I am rebuilding the GUI. Everything seems to work fine except publictransport.

Code: Select all

git clone https://github.com/robgeerts/dashticz_v2 --branch beta
Can someone point me in the right direction?
I followed the installation instructions and also installed PHP etc. (A test.php shows that PHP7 is running)

i use some default entries as a test, but noting comes up/is even loading.

Code: Select all

//example station id: station-eindhoven
var publictransport = {}
publictransport.ovinfobus = { show_via: false, station: 'son-en-breugel/bushalte-penseelkever', provider: '9292-bus', icon: 'bus', width:5, results: 6 }

Code: Select all

columns[3]['blocks'] = ['sunrise','streamplayer',publictransport.ovinfobus]

Re: PublicTransport not loading

Posted: Friday 25 January 2019 18:45
by gdisselkoen
I had the same problem and found a solution. In the config.js add "https://cors-anywhere.herokuapp.com/" as the default CORS URL. The easiest way to do this is via the config button in the dashboard.

Re: PublicTransport not loading

Posted: Friday 25 January 2019 20:05
by Lokonli
gdisselkoen wrote: Friday 25 January 2019 18:45 I had the same problem and found a solution. In the config.js add "https://cors-anywhere.herokuapp.com/" as the default CORS URL. The easiest way to do this is via the config button in the dashboard.
This probably will work, but is not the preferred solution: If you have installed PHP correctly, then with the default settings there is not need for using cors-anywhere, because Dashticz then will use it's internal CORS proxy.
So of course you may use cors-anywhere, but probably there is something wrong with your setup, which may also give issues when using tv-guide, calendar and some garbage providers.

Re: PublicTransport not loading

Posted: Friday 25 January 2019 22:25
by gdisselkoen
TV-Guide and garbage work properly. Calendar haven't I tried yet. Will try that soon.

Re: PublicTransport not loading

Posted: Wednesday 30 January 2019 20:44
by Omemanti
Thnx for the reply, will check it later,,, raspberry died, I'm now waiting for a replacement