Dashticz 2.5.3

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Dashticz 2.5.3

Post by Dave47 »

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:

Re: Dashticz 2.5.3

Post by Lokonli »

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:

Re: Dashticz 2.5.3

Post by Dave47 »

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.

What is the result if you add the following setting to CONFIG.js:
config['default_cors_url']='https://cors-anywhere.herokuapp.com/'
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:

Re: Dashticz 2.5.3

Post by Braadkippie »

I use Synology, how can I update Dashticz for an new version?
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz 2.5.3

Post by HansieNL »

Download latest Beta version from https://github.com/Dashticz/dashticz_v2/tree/beta and overwrite old version.
DON'T FORGET TO BACKUP YOUR CUSTOM FOLDER(S)
Blah blah blah
Braadkippie
Posts: 7
Joined: Monday 04 February 2019 22:16
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz 2.5.3

Post by Braadkippie »

Thanks a lot!
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Dashticz 2.5.3

Post by Dave47 »

Sometimes https://cors-anywhere.herokuapp.com/ gives an error?

What is wrong?
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz 2.5.3

Post by Lokonli »

Dave47 wrote: Sunday 17 February 2019 21:14 Sometimes https://cors-anywhere.herokuapp.com/ gives an error?

What is wrong?
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:

Re: Dashticz 2.5.3

Post by Dave47 »

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:

Re: Dashticz 2.5.3

Post by Lokonli »

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:

Re: Dashticz 2.5.3

Post by Dave47 »

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:

Re: Dashticz 2.5.3

Post by Lokonli »

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:

Re: Dashticz 2.5.3

Post by Dave47 »

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:

Re: Dashticz 2.5.3

Post by Lokonli »

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:

Re: Dashticz 2.5.3

Post by Dave47 »

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:

Re: Dashticz 2.5.3

Post by Lokonli »

No, not really.
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: Dashticz 2.5.3

Post by Dave47 »

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:

Re: Dashticz 2.5.3

Post by silver323 »

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 .
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest