Dashticz, alternative dashboard based on HTML, CSS, jQuery
Moderators: leecollings , htilburgs , robgeerts
Dave47
Posts: 136 Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:
Post
by Dave47 » Monday 11 February 2019 14:17
I i use parameter in Dashticz_v2 behind Apache server
Code: Select all
buttons.buienradar = {width:12, isimage:true, refreshimage:60000, image: 'http://api.buienradar.nl/image/1.0/RadarMapNL?w=285&h=256', url: 'http://www.weer.nl/verwachting/nederland/son/189656/'}
or
Code: Select all
buttons.webcam = {width:12, isimage:true, refresh:2000, image: 'http://Myip/snapshot.cgi?user=user&pwd=pwd', url: 'http://Myip/snapshot.cgi?user=user&pwd=pwd'}
dashticz is very slow and sometimes stuck for 20 seconds.
I also have a dashticzv2 running not behind apche server and than it is no problem.
How can i solve the problem behind the Apache server?
Lokonli
Posts: 2291 Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:
Post
by Lokonli » Monday 11 February 2019 19:11
Dave47 wrote: ↑ Monday 11 February 2019 14:17
I i use parameter in Dashticz_v2 behind Apache server
Code: Select all
buttons.buienradar = {width:12, isimage:true, refreshimage:60000, image: 'http://api.buienradar.nl/image/1.0/RadarMapNL?w=285&h=256', url: 'http://www.weer.nl/verwachting/nederland/son/189656/'}
or
Code: Select all
buttons.webcam = {width:12, isimage:true, refresh:2000, image: 'http://Myip/snapshot.cgi?user=user&pwd=pwd', url: 'http://Myip/snapshot.cgi?user=user&pwd=pwd'}
dashticz is very slow and sometimes stuck for 20 seconds.
I also have a dashticzv2 running not behind apche server and than it is no problem.
How can i solve the problem behind the Apache server?
When using Dashticz with Apache:
Which PHP version is reported by Dashticz? (press the settings button in the top bar, and then look at the info tab)
Do you also have a slow Dashticz if you remove buttons.webcam?
What is in CONFIG.js your current setting for config['default_cors_url']?
What is the result if you add the following setting to CONFIG.js:
config['default_cors_url']='
https://cors-anywhere.herokuapp.com/ '
Dave47
Posts: 136 Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:
Post
by Dave47 » Monday 11 February 2019 19:55
Php 7.0.33-0+deb9u1
Do you also have a slow Dashticz if you remove buttons.webcam?
yes, but at the moment i have a solution with forcerefresh:true.... is that ok?
What is in CONFIG.js your current setting for config['default_cors_url']?
I have no config['default_news_url'] at the moment. It is also very slow.
and i use
Code: Select all
columns[1] = {}
columns[1]['blocks'] = ['news']
columns[1]['width'] = 5;
I can see the news!
Braadkippie
Posts: 7 Joined: Monday 04 February 2019 22:16
Target OS: NAS (Synology & others)
Domoticz version:
Contact:
Post
by Braadkippie » Sunday 17 February 2019 17:33
I use Synology, how can I update Dashticz for an new version?
Braadkippie
Posts: 7 Joined: Monday 04 February 2019 22:16
Target OS: NAS (Synology & others)
Domoticz version:
Contact:
Post
by Braadkippie » Sunday 17 February 2019 18:01
Thanks a lot!
Lokonli
Posts: 2291 Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:
Post
by Lokonli » Sunday 17 February 2019 21:56
yes, especially when you call cors-anywhere frequently. (herokuapp uses some kind of rate limiter)
In fact that's the reason an internal CORS proxy was added to Dashticz.
However, it only works if PHP is installed.
You enable the CORS proxy in Dashticz by removing the 'default_cors_url' setting in CONFIG.js, and by removing all other references to cors-anywhere.
Dave47
Posts: 136 Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:
Post
by Dave47 » Monday 18 February 2019 7:19
After remove all references to cors i can also use default_news_url without using cors in the url?
I think PHP is ok?
Lokonli
Posts: 2291 Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:
Post
by Lokonli » Monday 18 February 2019 12:20
Dave47 wrote: ↑ Monday 18 February 2019 7:19
After remove all references to cors i can also use default_news_url without using cors in the url?
yes
Dave47
Posts: 136 Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:
Post
by Dave47 » Monday 18 February 2019 12:53
How does the url look like for News?
Can jou give me a example?
Http://?
Lokonli
Posts: 2291 Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:
Post
by Lokonli » Monday 18 February 2019 20:40
Dave47 wrote: ↑ Monday 18 February 2019 12:53
How does the url look like for News?
Can jou give me a example?
Http://?
You can use:
config['default_news_url'] = '
http://www.nu.nl/rss/Algemeen ';
and then add 'news' to a column definition.
Dave47
Posts: 136 Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:
Post
by Dave47 » Tuesday 19 February 2019 12:56
I can see the news for a while and then I have to refresh the page
Is there a problem in Dashticz at the moment?
Lokonli
Posts: 2291 Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:
Post
by Lokonli » Tuesday 19 February 2019 13:07
Dave47 wrote: ↑ Tuesday 19 February 2019 12:56
I can see the news for a while and then I have to refresh the page
Is there a problem in Dashticz at the moment?
Yes, will be fixed in the next beta.
Dave47
Posts: 136 Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:
Post
by Dave47 » Thursday 21 February 2019 12:39
I see there is a update. Can i update from the settings screen in Dashticz?
Lokonli
Posts: 2291 Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:
Post
by Lokonli » Thursday 21 February 2019 14:00
No, not really.
Dave47
Posts: 136 Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:
Post
by Dave47 » Thursday 21 February 2019 14:22
What is the best to install the latest beta 2.5..4?
silver323
Posts: 28 Joined: Friday 01 December 2017 18:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:
Post
by silver323 » Thursday 21 February 2019 15:12
Well, copied from the wiki page:
cd /home/pi/dashticz_v2
git pull
However, my advise is to store a backup of your existing dashticz-folder, clone the latest release, and copy your previous config files to the fresh Dashticz installation:
cd /home/pi
mv dashticz_v2 dashticz_v2_bak
git clone
https://github.com/robgeerts/dashticz_v2 --branch beta
cd dashticz_v2/custom
cp ../../dashticz_v2_bak/custom/CONFIG.js .
cp ../../dashticz_v2_bak/custom/custom.css .
Users browsing this forum: No registered users and 1 guest