Page 175 of 184

Re: Dashticz - General Discussions

Posted: Friday 05 October 2018 9:18
by mozo78
heggink wrote: Friday 05 October 2018 9:06 The refreshiframe parameter determines the refresh rate. Just increase. Not sure why you don't get a forecast tho...
Thank you, decreased the refreshiframe to 100000, and it is not blinking now.

The tablet view is very confusing because the owm block is very ugly, the tempereature values are to big in that mode . Thats why I tried the forecast.io.

Re: Dashticz - General Discussions

Posted: Wednesday 10 October 2018 10:36
by GrOOt
Hi

I can't use Sonos on dashticz, it's ok when I used Domoticz (switch selector with play/pause/volume up & down)

no links of Sonos in main.js, normal ?

grep -r "Logitech Media" *
js/main.js: case 'Logitech Media Server':
pi@raspberrypi:~/domoticz/www/dash $ grep -r "Sonos" *
custom/CONFIG.js:// {"track":1,"name":"Sonos","file":"http://xx:5005/salon/play"}, (--> my test with VAR)
custom/CONFIG.js:blocks[18] = {} //Sonos

Re: Dashticz - General Discussions

Posted: Thursday 11 October 2018 9:19
by GrOOt
something is wrong ?
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 101,
"Data" : "Set Level: 20 %",
"Description" : "",
"DimmerType" : "none",
"Favorite" : 1,
"HardwareID" : 4,
"HardwareName" : "Dummy",
"HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal" : 15,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "00014062",
"Image" : "Sonos",
"IsSubDevice" : false,
"LastUpdate" : "2018-10-09 22:25:38",
"Level" : 20,
"LevelActions" : "fGh0dHA6Ly8xOTIuMTY4LjEuNTI6NTAwNS9zYWxvbi9wbGF5fGh0dHA6Ly8xOTIuMTY4LjEuNTI6NTAwNS9zYWxvbi9wYXVzZXxodHRwOi8vMTkyLjE2OC4xLjUyOjUwMDUvc2Fsb24vcGxheWxpc3QvU29ub3N8aHR0cDovLzE5Mi4xNjguMS41Mjo1MDA1L3NhbG9uL3ZvbHVtZS8rNXxodHRwOi8vMTkyLjE2OC4xLjUyOjUwMDUvc2Fsb24vdm9sdW1lLy01",
"LevelInt" : 20,
"LevelNames" : "T2ZmfFBsYXl8UGF1c2V8UGxheWxpc3R8VXB8RG93bg==",
"LevelOffHidden" : true,
"MaxDimLevel" : 100,
"Name" : "Sonos",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"SelectorStyle" : 0,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Set Level: 20 %",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "Selector Switch",
"SwitchType" : "Selector",
"SwitchTypeVal" : 18,
"Timers" : "false",
"Type" : "Light/Switch",
"TypeImg" : "Light",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "18"
},
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 12,
"Data" : "",
"Description" : "",
"DimmerType" : "none",
"Favorite" : 1,
"HardwareID" : 4,
"HardwareName" : "Dummy",
"HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal" : 15,
"HaveDimmer" : false,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "65",
"Image" : "Media",
"IsSubDevice" : false,
"LastUpdate" : "2018-10-09 22:23:10",
"Level" : 0,
"LevelInt" : 0,
"MaxDimLevel" : 0,
"Name" : "Sonos Salon",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "On",
"StrParam1" : "aHR0cDovLzE5Mi4xNjguMS41Mjo1MDA1L3NhbG9uL3BsYXk=",
"StrParam2" : "aHR0cDovLzE5Mi4xNjguMS41Mjo1MDA1L3NhbG9uL3BhdXNl",
"SubType" : "X10",
"SwitchType" : "Media Player",
"SwitchTypeVal" : 17,
"Timers" : "false",
"Type" : "Lighting 1",
"TypeImg" : "Media",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "19"
}

Re: Dashticz - General Discussions

Posted: Thursday 11 October 2018 18:26
by Lokonli
Dashticz should display the switch selector. Domoticz recently switched to a new way of encoding the selector values. Support for this has been added to Dashticz beta some time ago. Are you running the beta version of Dashticz?

Re: Dashticz - General Discussions

Posted: Friday 12 October 2018 9:42
by GrOOt
no i'm running the stable version. you suggest to install the beta version ?

Re: Dashticz - General Discussions

Posted: Friday 12 October 2018 10:07
by heggink
Yes. Stable doesn't have it.

Re: Dashticz - General Discussions

Posted: Friday 12 October 2018 10:53
by GrOOt
Ok thank you

Re: Dashticz - General Discussions

Posted: Saturday 20 October 2018 11:04
by DarkG
When I add those lines, I get an error when I open the webpage. What could be fault?

Code: Select all

blocks['10'] = {}
blocks['10']['width'] = 4;

blocks['8'] = {}
blocks['8']['width'] = 4;

blocks['9'] = {}
blocks['9']['width'] = 4;

blocks['55'] = {}
blocks['55']['width'] = 4;

columns[5] = {}
columns[5]['blocks'] = ['10'.'8','9','55']
columns[5]['width'] = 5;

Re: Dashticz - General Discussions

Posted: Saturday 20 October 2018 11:22
by HansieNL
columns[5]['blocks'] = ['10'.'8','9','55']
Dot should be comma I think and you don't have to use an apostrophe if you only have digits: columns[5]['blocks'] = [10,8,9,55]

Re: Dashticz - General Discussions

Posted: Saturday 20 October 2018 11:27
by DarkG
omg, I looked 100 times over and over. Thank you

Re: Dashticz - General Discussions

Posted: Tuesday 23 October 2018 22:34
by JimmyH1969
Hi all,

I'm trying to make a button change color on a specific value (or even better, when in between values). I added the classes in the custom.css ofcourse. It's a temperature device and i want it to change color when in between specific values :-)

This works:

Code: Select all

function getStatus_2(idx,value,device){
   if(parseFloat(device['Data'])<21){
      $('div.block_2').addClass('yellow');
   } 
}
This does not:

Code: Select all

function getStatus_2(idx,value,device){
   if(parseFloat(device['Data'])>23){
      $('div.block_2').addClass('red');
   }
}
This does not:

Code: Select all

function getStatus_2(idx,value,device){
   if(parseFloat(device['Data'])>=17&&<=19){
      $('div.block_2').addClass('lightblue');
   } 
}
Any ideas? I'm probably doing something wrong but can't seem to find it. Tnx in advance!

Re: Dashticz - General Discussions

Posted: Tuesday 23 October 2018 23:20
by HansieNL
@JimmyH1969 :
Maybe this post can help you: http://www.domoticz.com/forum/viewtopic ... ss#p137692

Re: Dashticz - General Discussions

Posted: Tuesday 23 October 2018 23:32
by Lokonli
JimmyH1969 wrote: Tuesday 23 October 2018 22:34 This does not:

Code: Select all

function getStatus_2(idx,value,device){
   if(parseFloat(device['Data'])>=17&&<=19){
      $('div.block_2').addClass('lightblue');
   } 
}
Any ideas? I'm probably doing something wrong but can't seem to find it. Tnx in advance!
For this part try:

Code: Select all

function getStatus_2(idx,value,device){
   if(parseFloat(device['Data'])>=17 && parseFloat(device['Data'])<=19){
      $('div.block_2').addClass('lightblue');
   } 
}

Re: Dashticz - General Discussions

Posted: Wednesday 24 October 2018 15:20
by JimmyH1969
Thanks to all for pointing me in the right direction. I solved it like this:

Code: Select all

function getStatus_2(idx,value,device){
   if(parseFloat(device['Data'])>22){
      $('div.block_2').removeClass('darkblue').removeClass('lightblue').removeClass('yellow').removeClass('orange').addClass('red');
   }
   else if(parseFloat(device['Data'])>21){
      $('div.block_2').removeClass('darkblue').removeClass('lightblue').removeClass('yellow').removeClass('red').addClass('orange');
   } 
   else if(parseFloat(device['Data'])>20){
      $('div.block_2').removeClass('darkblue').removeClass('lightblue').removeClass('orange').removeClass('red').addClass('yellow');
   }
   else if(parseFloat(device['Data'])>19){
      $('div.block_2').removeClass('darkblue').removeClass('yellow').removeClass('orange').removeClass('red').addClass('lightblue');
   }
   else if(parseFloat(device['Data'])>15){
      $('div.block_2').removeClass('lightblue').removeClass('yellow').removeClass('orange').removeClass('red').addClass('darkblue');
   }
}

Dashticz - General Discussions

Posted: Wednesday 24 October 2018 16:04
by houtumj
Is www.dashticz.nl down???
Garbage not working anymore

Re: Dashticz - General Discussions

Posted: Wednesday 24 October 2018 17:52
by HansieNL
houtumj wrote: Wednesday 24 October 2018 16:04 Is www.dashticz.nl down???
Garbage not working anymore
See viewtopic.php?f=67&t=24907

Re: Dashticz - General Discussions

Posted: Thursday 25 October 2018 9:48
by gielie
After the changes concerning dashticz.nl i cant get the garbage/ical working again but that's another problem, my dashticz is also super super slow.
is anybody having the same problem.

Re: Dashticz - General Discussions

Posted: Thursday 25 October 2018 9:50
by poudenes
gielie wrote: Thursday 25 October 2018 9:48 After the changes concerning dashticz.nl i cant get the garbage/ical working again but that's another problem, my dashticz is also super super slow.
is anybody having the same problem.

http://www.domoticz.com/forum/viewtopic ... 87#p195387

Re: Dashticz - General Discussions

Posted: Friday 26 October 2018 11:19
by edge
I managed to got the scripts working again. But somehow the fontawesome icons aren't working.

fas fa-calendar-alt
fa-calendar-alt
fas.fa-calendar-al

All without luck :(

Re: Dashticz - General Discussions

Posted: Friday 26 October 2018 11:32
by poudenes
edge wrote: Friday 26 October 2018 11:19 I managed to got the scripts working again. But somehow the fontawesome icons aren't working.

fas fa-calendar-alt
fa-calendar-alt
fas.fa-calendar-al

All without luck :(
check https://fontawesome.com/icons?d=gallery

some names are changed. I corrected mine and have icons back