Recently I reinstalled dashticz according to this procedure: https://www.domoticz.com/wiki/Dashticz_ ... stallation
Everything is working fine except the news feed. The news feed is not working when I use the symbolic link URL. (http://IP/dashticz_v2/index.html)
The garbage collector and the google calendar is working with this URL.
When I use the "old" URL(http://IP:portnumber/dashticz_v2/index.html) then the calendar isn't working because of PHP is not active but the newsfeed DOES work.
I checked with my google browser(F12) but saw no errors.
Can someone help me with this problem because I don't know why it isn't working.
News feed not working with symbolic link url Topic is solved
Moderators: leecollings, htilburgs, robgeerts
-
- Posts: 20
- Joined: Tuesday 15 January 2019 11:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
-
- Posts: 2287
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: News feed not working with symbolic link url
The news feed is loaded via a CORS proxy, to prevent cross origin issues. If PHP is installed then a PHP based local CORS proxy will be used.infiltrator88 wrote: ↑Thursday 28 March 2019 15:58 Recently I reinstalled dashticz according to this procedure: https://www.domoticz.com/wiki/Dashticz_ ... stallation
Everything is working fine except the news feed. The news feed is not working when I use the symbolic link URL. (http://IP/dashticz_v2/index.html)
The garbage collector and the google calendar is working with this URL.
When I use the "old" URL(http://IP:portnumber/dashticz_v2/index.html) then the calendar isn't working because of PHP is not active but the newsfeed DOES work.
I checked with my google browser(F12) but saw no errors.
Can someone help me with this problem because I don't know why it isn't working.
Can you try the "new" url with the following additional setting in CONFIG.js:
Code: Select all
config['default_cors_url'] = 'https://cors-anywhere.herokuapp.com/'
(with the 'old' url PHP is not installed. In that case Dashticz will automatically fall back to https://cors-anywhere.herokuapp.com/)
-
- Posts: 20
- Joined: Tuesday 15 January 2019 11:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: News feed not working with symbolic link url
Thanks a lot. that did the trickLokonli wrote: ↑Thursday 28 March 2019 16:22 The news feed is loaded via a CORS proxy, to prevent cross origin issues. If PHP is installed then a PHP based local CORS proxy will be used.
Can you try the "new" url with the following additional setting in CONFIG.js:
This will force Dashticz to use cors-anywhere (external CORS proxy) instead of the local CORS proxy.Code: Select all
config['default_cors_url'] = 'https://cors-anywhere.herokuapp.com/'
(with the 'old' url PHP is not installed. In that case Dashticz will automatically fall back to https://cors-anywhere.herokuapp.com/)
-
- Posts: 2287
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: News feed not working with symbolic link url
Good that it works, although I don't understand why. The internal proxy should work as well.infiltrator88 wrote: ↑Sunday 07 April 2019 13:36Thanks a lot. that did the trickLokonli wrote: ↑Thursday 28 March 2019 16:22 The news feed is loaded via a CORS proxy, to prevent cross origin issues. If PHP is installed then a PHP based local CORS proxy will be used.
Can you try the "new" url with the following additional setting in CONFIG.js:
This will force Dashticz to use cors-anywhere (external CORS proxy) instead of the local CORS proxy.Code: Select all
config['default_cors_url'] = 'https://cors-anywhere.herokuapp.com/'
(with the 'old' url PHP is not installed. In that case Dashticz will automatically fall back to https://cors-anywhere.herokuapp.com/)
Which news url are you using? I'll test it on my system as well.
-
- Posts: 20
- Joined: Tuesday 15 January 2019 11:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: News feed not working with symbolic link url
sorry for the late reply. I was away for a couple of days and forgot to check the site.Good that it works, although I don't understand why. The internal proxy should work as well.
Which news url are you using? I'll test it on my system as well.
The URL is: https://cors-anywhere.herokuapp.com/htt ... /rss/sport
-
- Posts: 2287
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: News feed not working with symbolic link url
If you've setup your system correctly then the news feed will work with the default settings.infiltrator88 wrote: ↑Tuesday 16 April 2019 14:00sorry for the late reply. I was away for a couple of days and forgot to check the site.Good that it works, although I don't understand why. The internal proxy should work as well.
Which news url are you using? I'll test it on my system as well.
The URL is: https://cors-anywhere.herokuapp.com/htt ... /rss/sport
You can define the feed as follows:
Code: Select all
blocks['news_sport'] = {
feed: 'http://www.nu.nl/rss/sport'
}
From your config.js remove config['default_cors_url']
If it's not working then probably you did not install php correctly.
-
- Posts: 20
- Joined: Tuesday 15 January 2019 11:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: News feed not working with symbolic link url
yes That works. Before PHP installation function did not work withou herokuapp.If you've setup your system correctly then the news feed will work with the default settings.
You can define the feed as follows:No need to add herokuapp.Code: Select all
blocks['news_sport'] = { feed: 'http://www.nu.nl/rss/sport' }
From your config.js remove config['default_cors_url']
If it's not working then probably you did not install php correctly.
Now everything works fine. Thanks for all the help!
Who is online
Users browsing this forum: No registered users and 1 guest