Re: Dashticz v2.0, custom positioning and multiple screens
Posted: Sunday 16 April 2017 11:07
by EdwinK
wizjos wrote:Just noticed this. Although it is possible to give an alternative title to a block (blocks[140]['title'] = 'Temperatuur';), this goes for all 'sub-blocks'. In my case I have a 'buienradar-temperatuur' at idx 140 which produces 2 blocks: one for temperature and one for humidity...
I would be nice to give these sub-blocks different titles so I get 'Temperatuur' for the temperature and 'Luchtvochtigheid' for humidity.
Something like
Re: Dashticz v2.0, custom positioning and multiple screens
Posted: Sunday 16 April 2017 11:45
by axelbaas
Maybe this question is already asked. But is it possible to change the size of the icons? On a smaller screen, like a iPad, the icons are too small to click them.
I've tried some custom css, but cannot find the right option (yet).
Re: Dashticz v2.0, custom positioning and multiple screens
Posted: Sunday 16 April 2017 11:49
by repoman
EdKo66 wrote:
wizjos wrote:Just noticed this. Although it is possible to give an alternative title to a block (blocks[140]['title'] = 'Temperatuur';), this goes for all 'sub-blocks'. In my case I have a 'buienradar-temperatuur' at idx 140 which produces 2 blocks: one for temperature and one for humidity...
I would be nice to give these sub-blocks different titles so I get 'Temperatuur' for the temperature and 'Luchtvochtigheid' for humidity.
Something like
//var columns = {}
columns[1] = {}
columns[1]['blocks'] = []
columns[1]['width'] = 5; //this is the width of first column
columns[2] = {}
columns[2]['blocks'] = []
columns[2]['width'] = 5; //this is the width of second column
columns[3] = {}
columns[3]['blocks'] = []
columns[3]['width'] = 2; //this is the width of thirt column
so inside each column you can put the blocks likley the column
each column have width = 12 so you have to divid how many block you want.
block 1 + block 2 + block 3 + block 4 =12 this block will appear in same size
(3) + (3) + (3) + (3) =12
block 1 + block 2 + block 3 =12 will appear 2 with the same size and 1 bigger
(3) + (3) + (6) =12
? I tried both, but I am unable to produce one block combined with the 3 data.
Screen-Shot-2017-04-16-12-35-28.png
And ive you try just 24?
Re: Dashticz v2.0, custom positioning and multiple screens
Posted: Sunday 16 April 2017 13:58
by madrian
SwordFish:
Same as "columns[4]['blocks'] = ['blocktitle_2',48,'24_1','24_2','24_3']" === 3 separate columns.
Re: Dashticz v2.0, custom positioning and multiple screens
Posted: Sunday 16 April 2017 14:51
by madrian
Anyone interested?
Dashticz v2 Internet radio stream plugin
Some code cleaning and going to merge request.
Re: RE: Re: Dashticz v2.0, custom positioning and multiple screens
Posted: Sunday 16 April 2017 14:54
by pkrabben
hpapagaj wrote:Anyone interested?
Dashticz v2 Internet radio stream plugin
Some code cleaning and going to merge request.
This looks nice
Verstuurd vanaf mijn SM-T815 met Tapatalk
Re: RE: Re: Dashticz v2.0, custom positioning and multiple screens
Posted: Sunday 16 April 2017 15:12
by robgeerts
hpapagaj wrote:Anyone interested?
Dashticz v2 Internet radio stream plugin
Some code cleaning and going to merge request.
Can i expect the merge request tonight before the next round of fixes i am going to do?
Re: Dashticz v2.0, custom positioning and multiple screens
Posted: Sunday 16 April 2017 15:29
by madrian
I'll do the best, if you can answer my BME280 temp+hum+barometer question.
Ignoring the joke, I'll do my best, but I found a bug in Safari: auto playing is not working when I hit next, prev buttons. Other browsers are fine (Firefox, Chrome). We'll see If I find any workaround.
Re: Dashticz v2.0, custom positioning and multiple screens
Posted: Sunday 16 April 2017 15:38
by robgeerts
I'll do my best too did you mean chrome instead of safari?
Re: Dashticz v2.0, custom positioning and multiple screens
Posted: Sunday 16 April 2017 15:40
by madrian
robgeerts wrote:I'll do my best too did you mean chrome instead of safari?
Yep, just a typo.
Re: Dashticz v2.0, custom positioning and multiple screens
Posted: Sunday 16 April 2017 18:00
by pvm
For people with the weer.nl issue, you can also use the bigger buienradar screen like the one in part 1.4 you can find here
I have my new tablet now (very happy with the high resolution screen). I however experience the same issue as with my iPad, I do not get any domoticz data on the dashboard. I've been thinking about this and have to test some more for the possible cause. I am running Domoticz on a PI and the dashboard on my synology nas, possibly the remote calls are causing this issue.
My phone started complaining 'Domoticz error! Please, double check the path in _HOST_DOMOTICZ-variable!'. I upgraded today to the latest version (was running a couple of days behind). I tried the URL with and without username/password showing the same result. On my laptop however, I do not experience these issues. Strange.. any other people having a similar setup (PI with dashboard running on NAS) ?
Other issue, after some time i start getting the following errors in my console log:
cross.JPG (23.7 KiB) Viewed 2037 times
Re: Dashticz v2.0, custom positioning and multiple screens
Posted: Sunday 16 April 2017 18:13
by Ierlandfan
Rob, i am scraping some site wich in turns writes out a txt file. Is there any way I can show the content in a block, just like the rss feed?
Re: Dashticz v2.0, custom positioning and multiple screens
Posted: Sunday 16 April 2017 18:19
by b00n
maluko wrote:
b00n wrote:Can someone explain the blocks and columns ?
or show an example of there config.js?
Regards
you have to think like this:
each screen have by horizontal 'width' =12
this 12 you have to divid for column so you can put like this
//var columns = {}
columns[1] = {}
columns[1]['blocks'] = []
columns[1]['width'] = 5; //this is the width of first column
columns[2] = {}
columns[2]['blocks'] = []
columns[2]['width'] = 5; //this is the width of second column
columns[3] = {}
columns[3]['blocks'] = []
columns[3]['width'] = 2; //this is the width of thirt column
so inside each column you can put the blocks likley the column
each column have width = 12 so you have to divid how many block you want.
block 1 + block 2 + block 3 + block 4 =12 this block will appear in same size
(3) + (3) + (3) + (3) =12
block 1 + block 2 + block 3 =12 will appear 2 with the same size and 1 bigger
(3) + (3) + (6) =12
{
FileHelper.readStringFromFileAtPath = function(pathOfFileToReadFrom)
{
var request = new XMLHttpRequest();
request.open("GET", pathOfFileToReadFrom, false);
request.send(null);
var returnValue = request.responseText;
return returnValue;
}
}
var text = FileHelper.readStringFromFileAtPath ( "/localdir/mytext.txt" );
And then i sorta lost it by putting the output in a textblock.
Edit: Found the xml version..no scraping needed. I am gonna modify news.js to suit my needs.
Re: Dashticz v2.0, custom positioning and multiple screens
Posted: Sunday 16 April 2017 19:13
by jake
Please help a starter (me) to update the Wiki with the procedure to download (and for next time) update the files from gitlab. I cant find it online how to do this.
Re: Dashticz v2.0, custom positioning and multiple screens
Posted: Sunday 16 April 2017 19:21
by Blueone
jake wrote:Please help a starter (me) to update the Wiki with the procedure to download (and for next time) update the files from gitlab. I cant find it online how to do this.