PublicTransport not loading

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
Omemanti
Posts: 6
Joined: Saturday 06 October 2018 13:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

PublicTransport not loading

Post 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]
User avatar
gdisselkoen
Posts: 5
Joined: Monday 19 May 2014 23:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: PublicTransport not loading

Post 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.
A home is a home when it's an automated home.
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: PublicTransport not loading

Post 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.
User avatar
gdisselkoen
Posts: 5
Joined: Monday 19 May 2014 23:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: PublicTransport not loading

Post by gdisselkoen »

TV-Guide and garbage work properly. Calendar haven't I tried yet. Will try that soon.
A home is a home when it's an automated home.
Omemanti
Posts: 6
Joined: Saturday 06 October 2018 13:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: PublicTransport not loading

Post by Omemanti »

Thnx for the reply, will check it later,,, raspberry died, I'm now waiting for a replacement
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest