Page 179 of 184

Re: Multiple Screens - button to navigate between screens

Posted: Monday 14 January 2019 22:25
by HenriM
rgroothuis wrote: Monday 14 January 2019 22:07 And secondly, after an X amount of time, the setup is always moving back to the main screen. How can I make this longer or even completely stop this. In other words that I stay on the second screen until I move it myself back to the main screen?
See next settings in your CONFIG.js

Code: Select all

config['auto_swipe_back_to'] = '1';
config['auto_swipe_back_after'] = '60';
config['auto_slide_pages'] = '';
config['slide_effect'] = 'fade';

Re: Dashticz - General Discussions

Posted: Tuesday 15 January 2019 22:22
by janekj
Hi there,
Has anyone faced similar issue with google directions before? I've been googling for days with no luck...
My dashboard consists of single frame with google directions (to check best route to work in the morning).

Code: Select all

frames.directions = {height:500,frameurl:"https://www.google.com/maps/embed/v1/directions?origin=Sosnowiec&destination=Katowice&key=MY_API_KEY",width:12}
When I open dashticz (or refresh browser index page) it works like charm and shows the map with route, but after certain time dashticz enforces frame refresh.
The problem starts during this refresh, when the original request is changed, and for some reason the 't' parameter is added at the very end of the request, so it looks like:

Code: Select all

https://www.google.com/maps/embed/v1/directions?origin=Sosnowiec&destination=Katowice&key=MY_API_KEY&t=1547585442993
(note &t=1547585442993 at the very end of the query)
As a result my map is gone, and the error message pops out:

Google Maps Platform rejected your request. Invalid request. Unexpected parameter 't'.

I do understand the error, but have no idea why '&t=..." parameter is added and how to avoid it.
Any clues? I'd appreciate any hint.

(PI ZERO W, Raspbian, Dashticz v2.5.2 beta, domoticz ver. 4.97, dzVents ver 2.4.6, Python ver. 3.5.1, PHP ver 7.0.30)

Re: Dashticz - General Discussions

Posted: Wednesday 16 January 2019 8:16
by Lokonli
janekj wrote: Tuesday 15 January 2019 22:22 Hi there,
Has anyone faced similar issue with google directions before? I've been googling for days with no luck...
My dashboard consists of single frame with google directions (to check best route to work in the morning).

Code: Select all

frames.directions = {height:500,frameurl:"https://www.google.com/maps/embed/v1/directions?origin=Sosnowiec&destination=Katowice&key=MY_API_KEY",width:12}
When I open dashticz (or refresh browser index page) it works like charm and shows the map with route, but after certain time dashticz enforces frame refresh.
The problem starts during this refresh, when the original request is changed, and for some reason the 't' parameter is added at the very end of the request, so it looks like:

Code: Select all

https://www.google.com/maps/embed/v1/directions?origin=Sosnowiec&destination=Katowice&key=MY_API_KEY&t=1547585442993
(note &t=1547585442993 at the very end of the query)
As a result my map is gone, and the error message pops out:

Google Maps Platform rejected your request. Invalid request. Unexpected parameter 't'.

I do understand the error, but have no idea why '&t=..." parameter is added and how to avoid it.
Any clues? I'd appreciate any hint.

(PI ZERO W, Raspbian, Dashticz v2.5.2 beta, domoticz ver. 4.97, dzVents ver 2.4.6, Python ver. 3.5.1, PHP ver 7.0.30)
The '&t=..." parameter is being added to prevent caching of the page. There are more webpages that don't like when this parameter is being added.

I think the best solution is to make it configurable for each frame. I'll make a fix this weekend.

Re: Dashticz - General Discussions

Posted: Monday 21 January 2019 14:27
by janekj
The '&t=..." parameter is being added to prevent caching of the page. There are more webpages that don't like when this parameter is being added.
I think the best solution is to make it configurable for each frame. I'll make a fix this weekend.
Thanks Lokonli for the quick response. I'd love to test this fix as soon as you release it.

Re: Dashticz - General Discussions

Posted: Monday 21 January 2019 18:59
by Lokonli
janekj wrote: Monday 21 January 2019 14:27
The '&t=..." parameter is being added to prevent caching of the page. There are more webpages that don't like when this parameter is being added.
I think the best solution is to make it configurable for each frame. I'll make a fix this weekend.
Thanks Lokonli for the quick response. I'd love to test this fix as soon as you release it.
It's included in 2.5.3. See https://www.domoticz.com/forum/viewtopi ... 67&t=26643
Can you test?

Re: Dashticz - General Discussions

Posted: Tuesday 22 January 2019 0:21
by janekj
It's included in 2.5.3. See https://www.domoticz.com/forum/viewtopi ... 67&t=26643
Can you test?
I think the fix works pretty well. With forcerefresh:false setting 'Google directions' frame refreshes as expected and "&t..."-parameter issuses for that particular frame are gone. Many thanks for handling this problem in no time. I will report back in case of spotting problems regarding 'forcerefresh' and google directions api.

Re: Multiple Screens - button to navigate between screens

Posted: Tuesday 22 January 2019 22:46
by rgroothuis
HenriM wrote: Monday 14 January 2019 22:25
rgroothuis wrote: Monday 14 January 2019 22:07 And secondly, after an X amount of time, the setup is always moving back to the main screen. How can I make this longer or even completely stop this. In other words that I stay on the second screen until I move it myself back to the main screen?
See next settings in your CONFIG.js

Code: Select all

config['auto_swipe_back_to'] = '1';
config['auto_swipe_back_after'] = '60';
config['auto_slide_pages'] = '';
config['slide_effect'] = 'fade';
Thanks for the suggestion, this improves the behaviour much better.

Still a question, can I add a button on the screen that (when pressed) moves to the next screen? Then I don't have to swipe anymore.

Re: Multiple Screens - button to navigate between screens

Posted: Tuesday 22 January 2019 23:38
by Lokonli
rgroothuis wrote: Tuesday 22 January 2019 22:46
HenriM wrote: Monday 14 January 2019 22:25
rgroothuis wrote: Monday 14 January 2019 22:07 And secondly, after an X amount of time, the setup is always moving back to the main screen. How can I make this longer or even completely stop this. In other words that I stay on the second screen until I move it myself back to the main screen?
See next settings in your CONFIG.js

Code: Select all

config['auto_swipe_back_to'] = '1';
config['auto_swipe_back_after'] = '60';
config['auto_slide_pages'] = '';
config['slide_effect'] = 'fade';
Thanks for the suggestion, this improves the behaviour much better.

Still a question, can I add a button on the screen that (when pressed) moves to the next screen? Then I don't have to swipe anymore.
You can define a button having a 'slide' parameter, and add it to the column you want. Example for a button which will you bring to the second screen:

Code: Select all

buttons.test = { width:6, title:'page 2', slide:2};

Changing Moonphase to use different provider

Posted: Friday 01 February 2019 10:35
by garethhowell
Now that wunderground no longer issues free API keys, has anybody modified the moonphase module to get it's phase info from a different provider?

Re: Changing Moonphase to use different provider

Posted: Saturday 02 February 2019 21:47
by Lokonli
garethhowell wrote: Friday 01 February 2019 10:35 Now that wunderground no longer issues free API keys, has anybody modified the moonphase module to get it's phase info from a different provider?
I'm modifying the moon part of Dashticz. It will be merged in the next beta release. It then will work independently from Domoticz.

Re: Dashticz - Blind slider problem

Posted: Wednesday 20 February 2019 21:17
by toro
I added a switch for a Blind-Percentage. But I'm having a few problems with it.

1. The slider runs underneath the buttons
2. The up-button is for a big part covered by an angle item, making it very hard to use it.

Is it possible to fix this in any way? I read that is it possible to remove the stop-button, but I actually need it.
Thanks

Re: Dashticz - Blind slider problem

Posted: Tuesday 26 February 2019 21:00
by Lokonli
toro wrote: Wednesday 20 February 2019 21:17 I added a switch for a Blind-Percentage. But I'm having a few problems with it.

1. The slider runs underneath the buttons
2. The up-button is for a big part covered by an angle item, making it very hard to use it.

Is it possible to fix this in any way? I read that is it possible to remove the stop-button, but I actually need it.
Thanks
That indeed is not really usable. I'll create a fix.

Re: Dashticz - General Discussions

Posted: Thursday 28 February 2019 19:06
by renerene
is it possible to scale or lower graphs?
my currecnt power usage graph takes to much space, to place 'power delivery' next to it

Re: Dashticz - General Discussions

Posted: Friday 01 March 2019 9:46
by JimmyH1969
Ik know you can use this in custom.css

Code: Select all

#graphoutput76 {
	height:250px;
	width:250px;
}
You need to change it to the correct IDX ofcourse. Works for me

Re: Dashticz - General Discussions

Posted: Monday 04 March 2019 14:05
by Timme88
Quick question:
Is there a way to open a new tab/page when clicking on a button or something else ? I would like to extend my dashboard with links towards usefull pages like grafana dashboard , monitoring system , backup system , .... . Currently I get those pages open in frames but I really would like to open them in new pages/tabs ?

Thanks in advanced

Re: Dashticz - General Discussions

Posted: Monday 04 March 2019 22:21
by Lokonli
Timme88 wrote: Monday 04 March 2019 14:05 Quick question:
Is there a way to open a new tab/page when clicking on a button or something else ? I would like to extend my dashboard with links towards usefull pages like grafana dashboard , monitoring system , backup system , .... . Currently I get those pages open in frames but I really would like to open them in new pages/tabs ?

Thanks in advanced
If you add the newwindow parameter to a button (for instance newwindow:true) then the url of the button will open in a new window.

Re: Dashticz - Blind slider problem

Posted: Tuesday 05 March 2019 23:18
by toro
Lokonli wrote: Tuesday 26 February 2019 21:00 That indeed is not really usable. I'll create a fix.
Lokonli, thank you very much! Very good and speedy fix. Nice!

Re: Dashticz - General Discussions

Posted: Wednesday 06 March 2019 18:59
by ccaru
Loving it! Looks really good :)

Re: Dashticz - General Discussions

Posted: Saturday 16 March 2019 16:34
by SwordFish
I would like to change the selector icon, how can I do that in custum.js?
Now its the Bulb but i have custum on and off icons.

Re: Dashticz - General Discussions

Posted: Wednesday 20 March 2019 17:42
by yfands
Hello,

What happend to the dashticz.nl website ? my garbage service depend on it ?


Regards
Frank