Page 2 of 5

Re: Dashticz v3.7.3 beta

Posted: Wednesday 27 January 2021 14:40
by pvklink
Lokonli wrote: Wednesday 27 January 2021 13:13 De eerste is geen ical formaat, maar een embedded Google calendar. Je kan die niet als een calendar block openen. Je kan het wel in een frame laten zien. bv:

Code: Select all

blocks['fr'] = {      
        frameurl: 'https://calendar.google.com/calendar/embed?src=63olkhhf2erjro0mvcdnvqpfqg%40group.calendar.google.com&ctz=Europe%2FAmsterdam',
        height: 400
}
De f1 kalender (2019?) bestaat niet meer. De link wordt doorgestuurd naar een andere website: ook geen ical file.
Strange because the previous dashticz beta did show this in
calendars.ado = {key:'dvado',maxitems: 20, icon: 'fas fa-volleyball-ball', url: 'https://calendar.google.com/calendar/em ... m',icalurl: 'https://calendar.google.com/calendar/ic ... /basic.ics' }
calendars.fam =
ado.jpg
ado.jpg (125.99 KiB) Viewed 1179 times

Re: Dashticz v3.7.3 beta

Posted: Wednesday 27 January 2021 14:49
by RezaRose
Hi there,

I use OMW to show the weather. On my desktop it it showing fine. But on the samsung tab 4 it is showing empy blocks. I tried it in samsung browser and in Chrome. I tried to clear the cache too. Anyone knows why it is not showing?

Re: Dashticz v3.7.3 beta

Posted: Wednesday 27 January 2021 15:23
by Lokonli
pvklink wrote: Wednesday 27 January 2021 14:29 OK, Thanks (bedankt :-)

Dashticz becomes more and more better.
Is the target the get rid of the var parts in custom.js and use block(s) for it?
I still use below vars, and just deleted the calenders and used blocks for it

Are there already alternatives like the calenderblock for below specials that i forgot to migrate?

Code: Select all

var _STREAMPLAYER_TRACKS =	[
var frames = {}
var publictransport = {}
var tvguide = {}
var buttons = {}
Sorry, my previous email was in Dutch :)

Dashticz supports 'inline block objects' as well as a reference to predefined blocks.

The following example will provide two identical frames:

Code: Select all


blocks['frameexample'] = {
   frameurl: 'https://dashticz.readtthedocs.org',
   height: 300
  }
  
 columns[1] = {
   blocks: [
   	'framexample',
   	{ frameurl: 'https://dashticz.readtthedocs.org',height: 300}
   ]
}
Most block types can be detected correctly based on existence of certain keys.

For instance:
frameurl -> frame
icalurl -> calendar
idx -> domoticzblock

If detection is not possible, you have to add the 'type' parameter.

'log' and 'moon' (and a lot more) are defined blocktypes. That means you can add 'moon' to a column directly, without defining blocks['moon'].

Although, via blocks['moon'] you can update the default moon parameters.

I hope it's clear ...

Re: Dashticz v3.7.3 beta

Posted: Wednesday 27 January 2021 15:35
by Lokonli
pvklink wrote: Wednesday 27 January 2021 14:40
Strange because the previous dashticz beta did show this in
calendars.ado = {key:'dvado',maxitems: 20, icon: 'fas fa-volleyball-ball', url: 'https://calendar.google.com/calendar/em ... m',icalurl: 'https://calendar.google.com/calendar/ic ... /basic.ics' }
calendars.fam =

ado.jpg
This is a different icalurl compared to your earlier email. It's working:

Code: Select all

blocks['ado'] = {type: 'calendar',icon: 'fas fa-car',maxitems: 6,layout: 0,weeks: 5,lastweek: false,isoweek: true,width: 12,emptytext: 'Geen afspraken',
		icalurl: 'https://calendar.google.com/calendar/ical/63olkhhf2erjro0mvcdnvqpfqg%40group.calendar.google.com/public/basic.ics',
        }

Re: Dashticz v3.7.3 beta

Posted: Wednesday 27 January 2021 16:31
by pvklink
Yes you are right!
Just read the documentation, saw that you also made a new config for camera's, Great!
My desktop is now migrated, looks great!

Only have small problems on my wall tablet device
which has an own custom2 folder (which i migrated too) and
uses (screens['tablet'] = {maxwidth: 1024,maxheight: 768}

With the desktop version my horizontal swipe works as before
But with the wall tablet i get one long screen and the swiper does not work in that config anymore...

Re: Dashticz v3.7.3 beta

Posted: Wednesday 27 January 2021 17:10
by Lokonli
Can be a caching issue.
can you try with:

http://dashticz ip:port/?folder=custom2

With this url the files in custom2 will be used for your configuration.

What is the tablet resolution?

Re: Dashticz v3.7.3 beta

Posted: Wednesday 27 January 2021 17:21
by pvklink
I did refresh the browser on the rpi
it is an original rpi touchscreen with a rpi 3b attached. Ist about 2-3 years old, one off the first original cap. touchscreens..
It was working with the previous beta...
It uses only the browser from this rpi to do a call to the production rpi with domoticz and dashticz

I use ipadres/dashticz/index2.html
Where do i place ?folder=custom2

When i use ipadres/dashticz/ i get my custom folder, (created for my desktop) and besides this is a mess because i get to much devices, the sliders work with the config in my custom folder...

and this is my settings from custom2

config['enable_swiper'] = 1;
config['auto_swipe_back_to'] = '1';
config['auto_swipe_back_after'] = '60';
config['auto_slide_pages'] = '0';
config['slide_effect'] = 'slide';

css
/* Swiper*/
.swiper-pagination-bullet {width: 35px !important;height: 35px !important;}
.swiper-pagination {text-align: right !important;}

Re: Dashticz v3.7.3 beta

Posted: Wednesday 27 January 2021 17:31
by Lokonli
pvklink wrote: Wednesday 27 January 2021 17:21 I did refresh the browser on the rpi
it is an original rpi touchscreen with a rpi 3b attached. Ist about 2-3 years old, one off the first original cap. touchscreens..
It was working with the previous beta...
It uses only the browser from this rpi to do a call to the production rpi with domoticz and dashticz

I use ipadres/dashticz/index2.html
Where do i place ?folder=custom2

and this is my settings

config['enable_swiper'] = 1;
config['auto_swipe_back_to'] = '1';
config['auto_swipe_back_after'] = '60';
config['auto_slide_pages'] = '0';
config['slide_effect'] = 'slide';

css
/* Swiper*/
.swiper-pagination-bullet {width: 35px !important;height: 35px !important;}
.swiper-pagination {text-align: right !important;}
The url then becomes: ipadres/dashticz/?folder=custom2

Did you already try with:
config['enable_swiper'] = 2;

Re: Dashticz v3.7.3 beta

Posted: Wednesday 27 January 2021 17:38
by pvklink
yes when i use ipadres/dashticz/?folder=custom2
the swipers are there!
Only my screen is a mess :-) and when using index2 the screen is perfect only no swipers and pages below each other

When using index2.html screen is perfect
with enable_swiper = 2 NO swiper

Re: Dashticz v3.7.3 beta

Posted: Wednesday 27 January 2021 17:44
by pvklink
When rename my dashticz folder to dashticz_new and copy back the prevous everything works perfect, custom and custom2
so it must be related to the latest beta

Re: Dashticz v3.7.3 beta

Posted: Wednesday 27 January 2021 19:49
by Lokonli
pvklink wrote: Wednesday 27 January 2021 17:38 yes when i use ipadres/dashticz/?folder=custom2
the swipers are there!
Only my screen is a mess :-) and when using index2 the screen is perfect only no swipers and pages below each other

When using index2.html screen is perfect
with enable_swiper = 2 NO swiper
I see I made a mistake with the link. it should be:
ipadres/dashticz/?folder=custom_2

Can you recheck?

if still not working, try:
ipadres/dashticz/index2.html?enable_swiper=2

Re: Dashticz v3.7.3 beta

Posted: Wednesday 27 January 2021 21:03
by Nefsolive
Hi Lokonli,

I update for the new version, everythink works great!
But in my spotify block, i see upside a bar! Like the image i send.
Iff i take off the spotify block they go out whit!
Sem Título.jpg
Sem Título.jpg (7.34 KiB) Viewed 1139 times
how take out this bar?

Ty and good job!

Re: Dashticz v3.7.3 beta

Posted: Wednesday 27 January 2021 21:30
by Lokonli
Nefsolive wrote: Wednesday 27 January 2021 21:03 Hi Lokonli,

I update for the new version, everythink works great!
But in my spotify block, i see upside a bar! Like the image i send.
Iff i take off the spotify block they go out whit!

Sem Título.jpg

how take out this bar?

Ty and good job!
I see. It was a dummy placeholder. I've removed it in latest beta.

The spotify block needs some more rework: The playlist window is messed up. I"ll fix that later.

Re: Dashticz v3.7.3 beta

Posted: Wednesday 27 January 2021 22:33
by pvklink
Ok, i did a ipadres/dashticz/?folder=custom_2 and i have normal screens now, but vertical and not horizontal and no sliders....

Re: Dashticz v3.7.3 beta

Posted: Wednesday 27 January 2021 23:48
by Nefsolive
Lokonli wrote: Wednesday 27 January 2021 21:30
Nefsolive wrote: Wednesday 27 January 2021 21:03 Hi Lokonli,

I update for the new version, everythink works great!
But in my spotify block, i see upside a bar! Like the image i send.
Iff i take off the spotify block they go out whit!

Sem Título.jpg

how take out this bar?

Ty and good job!
I see. It was a dummy placeholder. I've removed it in latest beta.

The spotify block needs some more rework: The playlist window is messed up. I"ll fix that later.
Yes! Thanks. I ill be waiting.

Re: Dashticz v3.7.3 beta

Posted: Thursday 28 January 2021 15:32
by Chris12
@Lokonli,

Just updated dashticz 5min ago using dashticz latest version from git (92 commits ahead of master).
Same issue also seen in previous 3.7.3 beta, I was running (88 commits ahead of master).

I think I found a bug:
When I use the settings button in dasticz and change nothing and do a save there by pushing the save button.
The dashticz config is then broken, and dashticz won't load anymore.

It seems that it deletes the following line of the garbage config:

Code: Select all

config['garbage_mapping'] = {

Re: Dashticz v3.7.3 beta

Posted: Thursday 28 January 2021 17:52
by Lokonli
Chris12 wrote: Thursday 28 January 2021 15:32 @Lokonli,

Just updated dashticz 5min ago using dashticz latest version from git (92 commits ahead of master).
Same issue also seen in previous 3.7.3 beta, I was running (88 commits ahead of master).

I think I found a bug:
When I use the settings button in dasticz and change nothing and do a save there by pushing the save button.
The dashticz config is then broken, and dashticz won't load anymore.

It seems that it deletes the following line of the garbage config:

Code: Select all

config['garbage_mapping'] = {
The save settings functionality indeed deletes all lines starting with config['
and then adds all config settings, as long as they have been defined in the Dashticz settings.

It's not so easy to fix this.

For the time being: don't save via the Dashticz menu when you have defined garbage_mapping in CONFIG.js.

I'll add this check in the next beta to prevent corruption of CONFIG.js.

Thanks for reporting.

Re: Dashticz v3.7.3 beta

Posted: Thursday 28 January 2021 18:15
by HansieNL
@Chris12 As far as I know you can add a tab before the config lines you don’t want to be deleted.

Re: Dashticz v3.7.3 beta

Posted: Thursday 28 January 2021 23:14
by pvklink
Solved the problem with the vertical scrolling on my rpi touchscreen with the new beta!

I made a test dashticz for this rpi touchscreen with one device per page (i have 7 oages), and i have my swiper back!
So it must have something to do with the fact that my old pages fit on the screen with the previous beta and dont fit anymore on this beta...
Could be 1 pixel ?

Re: Dashticz v3.7.3 beta

Posted: Thursday 28 January 2021 23:39
by Lokonli
There are indeed some minor size changes. I would not expect that they influence the swiper.


Sent from my SM-A320FL using Tapatalk